Skip to content

Commit 47015b2

Browse files
committed
build: apply consistent build paths
1 parent aeaf3bf commit 47015b2

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

scripts/build-lib.mts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,15 @@ async function finalizePackage() {
6666
});
6767
}
6868

69-
const distPackageJson = JSON.parse(
70-
readFileSync(join(rootDir, 'dist/angular-server-side-configuration/package.json'), 'utf8'),
71-
);
69+
const packageJsonPath = join(targetDir, 'package.json');
70+
const distPackageJson = JSON.parse(readFileSync(join(rootDir, packageJsonPath), 'utf8'));
7271
distPackageJson.sideEffects = glob
7372
.sync(['esm*/**/public_api.{mjs,js}', 'fesm*/*{ng-env,process}.{mjs,js}'], {
74-
cwd: 'dist/angular-server-side-configuration',
73+
cwd: targetDir,
7574
dotRelative: true,
7675
})
7776
.sort();
78-
writeFileSync(
79-
join(rootDir, 'dist/angular-server-side-configuration/package.json'),
80-
JSON.stringify(distPackageJson, null, 2),
81-
'utf8',
82-
);
77+
writeFileSync(join(rootDir, packageJsonPath), JSON.stringify(distPackageJson, null, 2), 'utf8');
8378
}
8479

8580
function walk(root: string | string[], fileRegex: RegExp): string[] {

0 commit comments

Comments
 (0)