Skip to content

Commit

Permalink
fix scrub
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed May 1, 2021
1 parent 6c420a1 commit aaeab53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/scrub.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ async function run() {

// do these before deleting node_nodules
console.log('\nClearing Jest cache...');
spawn(os.platform() === 'win32' ? 'npx.cmd' : 'npx', ['jest', '--clearCache']);
try {
spawn(os.platform() === 'win32' ? 'npx.cmd' : 'npx', ['jest', '--clearCache']);
} catch (err) {
console.error('Clearing jest cache failed, likely due to it or a dep not being installed.');
}
try {
console.log('\nAttempting to clear gulp-cache...');
const cache = require('gulp-cache');
Expand Down

0 comments on commit aaeab53

Please sign in to comment.