Skip to content

Commit e42a4ad

Browse files
committed
[changed] Stop using npm prepublish script
It just doesn't do what it says it does. npm/npm#3059 Besides, we already have a postinstall script that generates the lib dir for people installing from GitHub. And we have scripts/build.sh for creating the lib dir prior to a release.
1 parent 3be6a2d commit e42a4ad

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
"build": "babel ./modules -d lib --ignore '__tests__'",
1414
"build-umd": "NODE_ENV=production webpack modules/index.js umd/ReactRouter.js",
1515
"build-min": "NODE_ENV=production webpack -p modules/index.js umd/ReactRouter.min.js",
16+
"lint": "eslint modules examples",
1617
"start": "node examples/server.js",
1718
"test": "npm run lint && karma start",
18-
"lint": "eslint modules examples",
19-
"postinstall": "node -e \"require('fs').stat('lib', function (e, s) { process.exit(e || !s.isDirectory() ? 1 : 0) })\" || npm run build",
20-
"prepublish": "npm run build"
19+
"postinstall": "node -e \"require('fs').stat('lib', function (e, s) { process.exit(e || !s.isDirectory() ? 1 : 0) })\" || npm run build"
2120
},
2221
"authors": [
2322
"Ryan Florence",

0 commit comments

Comments
 (0)