mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #268 from frankcalise/master
Fixed build chrome not working on Windows due to rm command not existing
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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:'));
|
||||
|
||||
Reference in New Issue
Block a user