Revert "build: update to use npm_package.pack rule (#39636)"
This reverts commit fbfc7dff48
.
This commit is contained in:
parent
5a2a907adf
commit
73e15bd78f
|
@ -35,7 +35,7 @@ function buildZoneJsPackage(destPath) {
|
||||||
console.info(`${scriptPath}:`);
|
console.info(`${scriptPath}:`);
|
||||||
console.info(' Building zone.js npm package');
|
console.info(' Building zone.js npm package');
|
||||||
console.info('##############################');
|
console.info('##############################');
|
||||||
exec(`${bazelCmd} run //packages/zone.js:npm_package.pack`);
|
exec(`${bazelCmd} build //packages/zone.js:npm_package`);
|
||||||
|
|
||||||
// Create the output directory.
|
// Create the output directory.
|
||||||
const absDestPath = resolve(baseDir, destPath);
|
const absDestPath = resolve(baseDir, destPath);
|
||||||
|
@ -46,6 +46,10 @@ function buildZoneJsPackage(destPath) {
|
||||||
const buildOutputDir = `${bazelBin}/packages/zone.js/npm_package`;
|
const buildOutputDir = `${bazelBin}/packages/zone.js/npm_package`;
|
||||||
const distTargetDir = `${absDestPath}/zone.js`;
|
const distTargetDir = `${absDestPath}/zone.js`;
|
||||||
|
|
||||||
|
// Also create an archive so we can test the package itself.
|
||||||
|
// Currently, the `npm_package.pack` rule does not work on Windows, so run `npm pack` directly.
|
||||||
|
exec(`npm pack ${buildOutputDir}`, false, {cwd: baseDir});
|
||||||
|
|
||||||
console.info(`# Copy npm_package artifacts to ${distTargetDir}`);
|
console.info(`# Copy npm_package artifacts to ${distTargetDir}`);
|
||||||
rm('-rf', distTargetDir);
|
rm('-rf', distTargetDir);
|
||||||
cp('-R', buildOutputDir, distTargetDir);
|
cp('-R', buildOutputDir, distTargetDir);
|
||||||
|
|
Loading…
Reference in New Issue