Skip to content

Commit

Permalink
fix(#2630): use posix to compute path for outputPath (#2634)
Browse files Browse the repository at this point in the history
## Proposed change
use posix to compute path for `outputPath`

## Related issues

<!--
Please make sure to follow the [contribution
guidelines](https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md)
-->

<!-- * 🐛 Fix #issue -->
 * 🐛 Fix resolves #2630
<!-- * 🚀 Feature #issue -->
<!-- * 🚀 Feature resolves #issue -->
<!-- * :octocat: Pull Request #issue -->
  • Loading branch information
matthieu-crouzet authored Dec 19, 2024
2 parents 21efca9 + 71ffca3 commit fae0dd1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {
join,
posix,
} from 'node:path';
import type {
Expand Down Expand Up @@ -81,7 +80,7 @@ export function updateOtterEnvironmentAdapter(

// override angular's dist/webapp output path with apps/webapp/dist
if (workspaceProject.architect?.build?.options?.outputPath) {
workspaceProject.architect.build.options.outputPath = join(workspaceProject.root, 'dist');
workspaceProject.architect.build.options.outputPath = posix.join(workspaceProject.root, 'dist');
}

workspace.projects[options.projectName!] = workspaceProject;
Expand Down

0 comments on commit fae0dd1

Please sign in to comment.