diff --git a/package.json b/package.json index 3834cacd63..9f3ba27b2e 100644 --- a/package.json +++ b/package.json @@ -140,6 +140,7 @@ "react-virtualized-auto-sizer": "^1.0.2", "react-window": "^1.8.0", "request-promise": "^4.2.4", + "rimraf": "^2.6.3", "scheduler": "^0.0.0-6da04b5d8", "semver": "^5.5.1", "style-loader": "^0.23.1", diff --git a/shells/browser/chrome/build.js b/shells/browser/chrome/build.js index 0f5905e2de..331dcc0c21 100644 --- a/shells/browser/chrome/build.js +++ b/shells/browser/chrome/build.js @@ -6,6 +6,7 @@ const { join } = require('path'); const rp = require('request-promise'); const convert = require('xml-js'); const build = require('../shared/build'); +const rimraf = require('rimraf'); const main = async () => { const manifestVersion = await rp( @@ -29,7 +30,7 @@ const main = async () => { execSync('crx pack ./unpacked -o ReactDevTools.crx -p ../../../../key.pem', { cwd, }); - execSync('rm packed.zip', { cwd }); + rimraf.sync(join(cwd, 'packed.zip')); console.log(chalk.green('\nThe Chrome extension has been built!')); console.log(chalk.green('You can test this build by running:'));