Skip to content

Commit

Permalink
Fix build-npm task
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Feb 23, 2015
1 parent 07d4b45 commit ab802c0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@
},
"homepage": "https://github.com/rackt/react-router/blob/latest/README.md",
"bugs": "https://github.com/rackt/react-router/issues",
"files": [
"build/npm"
],
"scripts": {
"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\"",
"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",
"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",
"examples": "webpack-dev-server --config examples/webpack.config.js --no-info --content-base examples",
"prepublish": "npm run build-npm",
"test": "jsxhint . && karma start"
},
"authors": [
Expand Down

0 comments on commit ab802c0

Please sign in to comment.