|
|
@ -1,5 +1,6 @@ |
|
|
import program from 'commander'; |
|
|
import program from 'commander'; |
|
|
import execa from 'execa'; |
|
|
import execa from 'execa'; |
|
|
|
|
|
import fse from 'fs-extra'; |
|
|
|
|
|
|
|
|
(async () => { |
|
|
(async () => { |
|
|
program.option('-i, --noInstall', 'skip updating package.json and installation', false); |
|
|
program.option('-i, --noInstall', 'skip updating package.json and installation', false); |
|
|
@ -12,6 +13,8 @@ import execa from 'execa'; |
|
|
await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' }); |
|
|
await execa('yarn', ['install'], { stdout: 'inherit', cwd: '../' }); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
await fse.remove('../dist'); |
|
|
|
|
|
|
|
|
await execa( |
|
|
await execa( |
|
|
'yarn', |
|
|
'yarn', |
|
|
[ |
|
|
[ |
|
|
|