mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:06:06 +00:00
chore: async/await on clean.js
This commit is contained in:
parent
8a9764e403
commit
fed3eb1a51
@ -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}']);
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user