diff --git a/packages/angular/src/generators/move/lib/update-ng-package.ts b/packages/angular/src/generators/move/lib/update-ng-package.ts index 3a6b24ee37..923fd4125f 100644 --- a/packages/angular/src/generators/move/lib/update-ng-package.ts +++ b/packages/angular/src/generators/move/lib/update-ng-package.ts @@ -1,4 +1,5 @@ import { + normalizePath, readProjectConfiguration, Tree, updateJson, @@ -21,7 +22,9 @@ export function updateNgPackage(tree: Tree, schema: Schema): void { return; } - const rootOffset = relative(join(workspaceRoot, project.root), workspaceRoot); + const rootOffset = normalizePath( + relative(join(workspaceRoot, project.root), workspaceRoot) + ); let output = `dist/${project.root}`; if (project.targets?.build?.outputs?.length > 0) { output = project.targets.build.outputs[0];