chore: async/await on clean.js

This commit is contained in:
chareice 2023-09-04 10:38:14 +08:00
parent 8a9764e403
commit fed3eb1a51

View File

@ -10,11 +10,11 @@ module.exports = (cli) => {
cli
.command('clean')
.allowUnknownOption()
.action(async () => {
.action(() => {
if (!isDev()) {
return;
}
await run('rimraf', ['-rf', './storage/app-dev']);
await run('rimraf', ['-rf', 'packages/*/*/{lib,esm,es,dist,node_modules}']);
run('rimraf', ['-rf', './storage/app-dev']);
run('rimraf', ['-rf', 'packages/*/*/{lib,esm,es,dist,node_modules}']);
});
};