Skip to content

Commit 49828ac

Browse files
committed
Skip inInstall checks during build
We can do this since we're using prepublishOnly. However, it requires npm 4+.
1 parent d04a034 commit 49828ac

File tree

8 files changed

+0
-20
lines changed

8 files changed

+0
-20
lines changed

packages/react-router-config/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"eslint-plugin-react": "^5.2.2",
4040
"expect": "^1.20.1",
4141
"gzip-size": "^3.0.0",
42-
"in-publish": "^2.0.0",
4342
"karma": "^0.13.22",
4443
"karma-browserstack-launcher": "^1.0.1",
4544
"karma-chrome-launcher": "^1.0.1",

packages/react-router-config/tools/build.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
const fs = require('fs')
22
const execSync = require('child_process').execSync
3-
const inInstall = require('in-publish').inInstall
43
const prettyBytes = require('pretty-bytes')
54
const gzipSize = require('gzip-size')
65

7-
if (inInstall())
8-
process.exit(0)
9-
106
const exec = (command, extraEnv) =>
117
execSync(command, {
128
stdio: 'inherit',

packages/react-router-dom/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"eslint-plugin-react": "^5.2.2",
6060
"expect": "^1.20.1",
6161
"gzip-size": "^3.0.0",
62-
"in-publish": "^2.0.0",
6362
"karma": "^0.13.22",
6463
"karma-browserstack-launcher": "^1.0.1",
6564
"karma-chrome-launcher": "^1.0.1",

packages/react-router-dom/tools/build.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
const fs = require('fs')
22
const execSync = require('child_process').execSync
3-
const inInstall = require('in-publish').inInstall
43
const prettyBytes = require('pretty-bytes')
54
const gzipSize = require('gzip-size')
65

7-
if (inInstall())
8-
process.exit(0)
9-
106
const exec = (command, extraEnv) =>
117
execSync(command, {
128
stdio: 'inherit',

packages/react-router-redux/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"eslint-plugin-import": "^2.2.0",
4949
"eslint-plugin-react": "^6.3.0",
5050
"gzip-size": "^3.0.0",
51-
"in-publish": "^2.0.0",
5251
"jest": "^20.0.0",
5352
"pretty-bytes": "^4.0.2",
5453
"react": "^15.4.2",

packages/react-router-redux/tools/build.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
const fs = require('fs')
22
const execSync = require('child_process').execSync
3-
const inInstall = require('in-publish').inInstall
43
const prettyBytes = require('pretty-bytes')
54
const gzipSize = require('gzip-size')
65

7-
if (inInstall())
8-
process.exit(0)
9-
106
const exec = (command, extraEnv) =>
117
execSync(command, {
128
stdio: 'inherit',

packages/react-router/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"eslint-plugin-react": "^6.10.3",
5959
"expect": "^1.20.1",
6060
"gzip-size": "^3.0.0",
61-
"in-publish": "^2.0.0",
6261
"karma": "^0.13.22",
6362
"karma-browserstack-launcher": "^1.0.1",
6463
"karma-chrome-launcher": "^1.0.1",

packages/react-router/tools/build.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
const fs = require('fs')
22
const execSync = require('child_process').execSync
3-
const inInstall = require('in-publish').inInstall
43
const prettyBytes = require('pretty-bytes')
54
const gzipSize = require('gzip-size')
65

7-
if (inInstall())
8-
process.exit(0)
9-
106
const exec = (command, extraEnv) =>
117
execSync(command, {
128
stdio: 'inherit',

0 commit comments

Comments
 (0)