Skip to content

Commit 73e15bd

Browse files
committed
Revert "build: update to use npm_package.pack rule (#39636)"
This reverts commit fbfc7df.
1 parent 5a2a907 commit 73e15bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/build/zone-js-builder.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function buildZoneJsPackage(destPath) {
3535
console.info(`${scriptPath}:`);
3636
console.info(' Building zone.js npm package');
3737
console.info('##############################');
38-
exec(`${bazelCmd} run //packages/zone.js:npm_package.pack`);
38+
exec(`${bazelCmd} build //packages/zone.js:npm_package`);
3939

4040
// Create the output directory.
4141
const absDestPath = resolve(baseDir, destPath);
@@ -46,6 +46,10 @@ function buildZoneJsPackage(destPath) {
4646
const buildOutputDir = `${bazelBin}/packages/zone.js/npm_package`;
4747
const distTargetDir = `${absDestPath}/zone.js`;
4848

49+
// Also create an archive so we can test the package itself.
50+
// Currently, the `npm_package.pack` rule does not work on Windows, so run `npm pack` directly.
51+
exec(`npm pack ${buildOutputDir}`, false, {cwd: baseDir});
52+
4953
console.info(`# Copy npm_package artifacts to ${distTargetDir}`);
5054
rm('-rf', distTargetDir);
5155
cp('-R', buildOutputDir, distTargetDir);

0 commit comments

Comments
 (0)