File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments