fix(angular): normalize path in ng-package.json when moving a library project (#10925)
This commit is contained in:
parent
5c1d69b054
commit
f9bb54db88
@ -1,4 +1,5 @@
|
|||||||
import {
|
import {
|
||||||
|
normalizePath,
|
||||||
readProjectConfiguration,
|
readProjectConfiguration,
|
||||||
Tree,
|
Tree,
|
||||||
updateJson,
|
updateJson,
|
||||||
@ -21,7 +22,9 @@ export function updateNgPackage(tree: Tree, schema: Schema): void {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const rootOffset = relative(join(workspaceRoot, project.root), workspaceRoot);
|
const rootOffset = normalizePath(
|
||||||
|
relative(join(workspaceRoot, project.root), workspaceRoot)
|
||||||
|
);
|
||||||
let output = `dist/${project.root}`;
|
let output = `dist/${project.root}`;
|
||||||
if (project.targets?.build?.outputs?.length > 0) {
|
if (project.targets?.build?.outputs?.length > 0) {
|
||||||
output = project.targets.build.outputs[0];
|
output = project.targets.build.outputs[0];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user