diff --git a/npm/ng-packs/scripts/publish.js b/npm/ng-packs/scripts/publish.js index 084b84e99c6..fe7d44b6ef1 100644 --- a/npm/ng-packs/scripts/publish.js +++ b/npm/ng-packs/scripts/publish.js @@ -27,6 +27,17 @@ if (versions.indexOf(nextSemanticVersion) < 0) { ); await fse.rename('../lerna.json', '../lerna.version.json'); + + await execa('yarn', ['build', '--noInstall'], { stdout: 'inherit' }); + + await fse.rename('../lerna.exec.json', '../lerna.json'); + + await execa('yarn', ['lerna', 'exec', '--', 'npm', 'publish'], { + stdout: 'inherit', + cwd: '../', + }); + + await fse.rename('../lerna.json', '../lerna.exec.json'); } catch (error) { console.error(error.stderr); process.exit(1);