Browse Source

Merge pull request #23942 from abpframework/issue/fix-publish-script

Angular - Fixing the publish script to make the build phase run parallel
pull/24032/head
selman koc 4 months ago
committed by GitHub
parent
commit
fe1d571b30
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 17
      npm/ng-packs/scripts/publish.ts

17
npm/ng-packs/scripts/publish.ts

@ -47,7 +47,22 @@ program.parse(process.argv);
if (program.preview) await replaceWithPreview(program.nextVersion);
await execa('yarn', ['build', '--noInstall'], { stdout: 'inherit' });
const parallel = process.env.NX_PARALLEL || '2';
await execa(
'yarn',
[
'nx',
'run-many',
'--target=build',
'--all',
'--exclude=dev-app,schematics',
'--prod',
'--parallel',
String(parallel),
],
{ stdout: 'inherit', cwd: '../' },
);
await execa('yarn', ['build:schematics'], { stdout: 'inherit' });
} catch (error) {
console.error(error.stderr);

Loading…
Cancel
Save