Browse Source

ci: add remove function for dist folder while publishing

pull/4568/head
mehmet-erim 6 years ago
parent
commit
f2f9db7ca2
  1. 1
      npm/ng-packs/scripts/build.ts
  2. 4
      npm/ng-packs/scripts/publish.ts

1
npm/ng-packs/scripts/build.ts

@ -1,5 +1,6 @@
import program from 'commander';
import execa from 'execa';
import fse from 'fs-extra';
(async () => {
program.option('-i, --noInstall', 'skip updating package.json and installation', false);

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

@ -24,6 +24,8 @@ const publish = async () => {
: 'https://registry.npmjs.org';
try {
await fse.remove('../dist');
await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' });
await fse.rename('../lerna.version.json', '../lerna.json');
@ -50,8 +52,6 @@ const publish = async () => {
await fse.rename('../lerna.publish.json', '../lerna.json');
await fse.remove('../dist/dev-app');
await execa(
'yarn',
[

Loading…
Cancel
Save