do `yarn cache clean --all` in clean-all.js

This commit is contained in:
tamaina 2023-01-03 14:58:10 +00:00
parent 4903af9598
commit 63d8b7986b
1 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,4 @@
const { execSync } = require('child_process');
const fs = require('fs');
(async () => {
@ -12,5 +13,9 @@ const fs = require('fs');
fs.rmSync(__dirname + '/../built', { recursive: true, force: true });
fs.rmSync(__dirname + '/../node_modules', { recursive: true, force: true });
fs.rmSync(__dirname + '/../.yarn/cache', { recursive: true, force: true });
execSync('yarn cache clean --all', {
cwd: __dirname + '/../',
stdio: 'inherit',
});
})();