chore: async/await on clean.js
This commit is contained in:
parent
8a9764e403
commit
fed3eb1a51
@ -10,11 +10,11 @@ module.exports = (cli) => {
|
|||||||
cli
|
cli
|
||||||
.command('clean')
|
.command('clean')
|
||||||
.allowUnknownOption()
|
.allowUnknownOption()
|
||||||
.action(async () => {
|
.action(() => {
|
||||||
if (!isDev()) {
|
if (!isDev()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
await run('rimraf', ['-rf', './storage/app-dev']);
|
run('rimraf', ['-rf', './storage/app-dev']);
|
||||||
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