fix: clean command on windows
This commit is contained in:
parent
eb255df35e
commit
ffe443b4e9
@ -10,12 +10,11 @@ module.exports = (cli) => {
|
|||||||
cli
|
cli
|
||||||
.command('clean')
|
.command('clean')
|
||||||
.allowUnknownOption()
|
.allowUnknownOption()
|
||||||
.action(() => {
|
.action(async () => {
|
||||||
if (!isDev()) {
|
if (!isDev()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
run('rimraf', ['-rf', './storage/app-dev']);
|
await run('rimraf', ['-rf', './storage/app-dev']);
|
||||||
run('rimraf', ['-rf', './**/{.umi,.umi-production}']);
|
await run('rimraf', ['-rf', 'packages/*/*/{lib,esm,es,dist,node_modules}']);
|
||||||
run('rimraf', ['-rf', 'packages/*/*/{lib,esm,es,dist,node_modules}']);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user