diff --git a/MAINTAINING.md b/MAINTAINING.md index 3f6f8a2ac..291d33f18 100644 --- a/MAINTAINING.md +++ b/MAINTAINING.md @@ -1,3 +1,9 @@ +### Dependencies + +- `npm install -g rimraf` +- `npm install -g lerna` +- `npm install -g del-cli` + ### Deployment Checklist - `git checkout master && git pull upstream master` diff --git a/package.json b/package.json index f8796e594..9dcffbd73 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "bootstrap-no-i": "lerna bootstrap", "test": "lerna run test", "clean": "rimraf lerna-debug.log && lerna run clean", - "nuke": "npm run clean && lerna clean --yes && rm -r node_modules", + "nuke": "npm run clean && lerna clean --yes && rm -rf node_modules", "changelog": "lerna-changelog", "debug": "cat lerna-debug.log && for d in packages/*/npm-debug.log*; do echo $d; cat $d; done", "postinstall": "npm run bootstrap-no-i", diff --git a/packages/react-server-cli/src/serverSideHotModuleReload.js b/packages/react-server-cli/src/serverSideHotModuleReload.js index edf83efaf..56cedfb77 100644 --- a/packages/react-server-cli/src/serverSideHotModuleReload.js +++ b/packages/react-server-cli/src/serverSideHotModuleReload.js @@ -27,7 +27,7 @@ export default function serverSideHotModuleReload (webpackStats) { // For now, loop through all of the project code to remove require caches so that we ensure the server is most up // to date. Object.keys(require.cache).map((filename) => { - if (/node_modules/.test(filename) === false && require.cache.hasOwnProperty(filename)) { + if (/node_modules/.test(filename) === false && Object.prototype.hasOwnProperty.call(require.cache, filename)) { logger.info(`Reloading file: ${filename}`); delete require.cache[filename]; }