Skip to content

Commit ab802c0

Browse files
committed
Fix build-npm task
1 parent 07d4b45 commit ab802c0

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,10 @@
99
},
1010
"homepage": "https://github.com/rackt/react-router/blob/latest/README.md",
1111
"bugs": "https://github.com/rackt/react-router/issues",
12-
"files": [
13-
"build/npm"
14-
],
1512
"scripts": {
1613
"build-global": "NODE_ENV=production webpack modules/index.js build/global/ReactRouter.js && NODE_ENV=production COMPRESS=1 webpack modules/index.js build/global/ReactRouter.min.js && echo \"gzipped, the global build is `gzip -c build/global/ReactRouter.min.js | wc -c` bytes\"",
17-
"build-npm": "babel -d build/npm/lib ./modules && cp README.md build/npm && find -X build/npm/lib -type d -name __tests__ | xargs rm -rf && node -p 'p=require(\"./package\");p.main=\"lib\";p.files=p.scripts=p.devDependencies=undefined;JSON.stringify(p,null,2)' > build/npm/package.json",
14+
"build-npm": "babel -d build/npm/lib ./modules && cp README.md build/npm && find -X build/npm/lib -type d -name __tests__ | xargs rm -rf && node -p 'p=require(\"./package\");p.main=\"lib\";p.scripts=p.devDependencies=undefined;JSON.stringify(p,null,2)' > build/npm/package.json",
1815
"examples": "webpack-dev-server --config examples/webpack.config.js --no-info --content-base examples",
19-
"prepublish": "npm run build-npm",
2016
"test": "jsxhint . && karma start"
2117
},
2218
"authors": [

0 commit comments

Comments
 (0)