From 40447cdfc8b3167bf65a7b69b40511043e67ebfd Mon Sep 17 00:00:00 2001 From: mehmet-erim Date: Mon, 9 Dec 2019 15:33:55 +0300 Subject: [PATCH] ci(scripts): create publish script --- npm/ng-packs/scripts/publish.js | 14 ++++++++++++++ npm/publish.ps1 | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 npm/ng-packs/scripts/publish.js 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