Skip to content

Commit fa46586

Browse files
committed
Enable install from remote (git)
1 parent e6941e3 commit fa46586

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.npmignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
examples
22
scripts
3-
website
43
__tests__
5-
bower.json
64
karma.conf.js
75
tests.webpack.js
86
webpack.config.js
9-
.babelrc

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
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",
1616
"start": "webpack-dev-server --config examples/webpack.config.js --content-base examples --inline",
17-
"test": "eslint modules && karma start",
17+
"test": "npm run lint && karma start",
1818
"lint": "eslint modules",
19+
"postinstall": "node -e \"require('fs').stat('lib', function (e, s) { process.exit(e || !s.isDirectory() ? 1 : 0) })\" || npm run build",
1920
"prepublish": "npm run build"
2021
},
2122
"authors": [

0 commit comments

Comments
 (0)