diff --git a/npm/ng-packs/scripts/publish.js b/npm/ng-packs/scripts/publish.js new file mode 100644 index 0000000000..b44210744f --- /dev/null +++ b/npm/ng-packs/scripts/publish.js @@ -0,0 +1,14 @@ +// ESM syntax is supported. +import execa from 'execa'; +import fse from 'fs-extra'; + +(async () => { + try { + await execa('yarn', ['install-new-dependencies'], { stdout: 'inherit' }); + } catch (error) { + console.error(error.stderr); + process.exit(1); + } + + process.exit(0); +})(); diff --git a/npm/publish.ps1 b/npm/publish.ps1 index 540c308cc5..ed22cdce51 100644 --- a/npm/publish.ps1 +++ b/npm/publish.ps1 @@ -3,11 +3,11 @@ & npm run build & cd ../../ & yarn -& yarn lerna publish minor --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version +& yarn lerna publish patch --no-push --yes --no-git-reset --no-commit-hooks --no-git-tag-version & cd ng-packs\scripts & npm run sync & cd ../../ & yarn update:templates & yarn global add gulp & yarn gulp:app -& yarn gulp:module \ No newline at end of file +& yarn gulp:module