Skip to content
This repository was archived by the owner on Nov 26, 2018. It is now read-only.

Commit e8bb090

Browse files
committed
fix: fix npm package export format
Also fix peerDependencies
1 parent 6b44c2f commit e8bb090

File tree

4 files changed

+363
-301
lines changed

4 files changed

+363
-301
lines changed

.babelrc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"transform-object-rest-spread"
55
],
66
"presets": [
7-
["latest", {
8-
"es2015": { "loose": true }
9-
}],
7+
["env", { "loose": true }],
108
"react"
119
],
1210
}

package.json

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@
1010
"scripts": {
1111
"build": "yarn build:doc && yarn build:site && yarn build:lib",
1212
"build:doc": "NODE_ENV=production babel-node ./scripts/build-doc",
13-
"build:lib": "rm -rf lib/ && NODE_ENV=production babel --ignore src/__tests__ src -d lib && cp package.json lib/package.json && rm -rf lib/__benchmarks__",
13+
"build:lib": "rm -rf lib/ && NODE_ENV=production babel --ignore src/__tests__ src -d lib && webpack && cp package.json lib/package.json && rm -rf lib/__benchmarks__",
1414
"build:site": "optional-dev-dependency marky-markdown@^9.0.1 && babel-node ./scripts/build-website",
15-
"examples": "webpack-dev-server --config examples/webpack.config.babel.js",
1615
"release": "mversion `conventional-recommended-bump -p angular` -m",
1716
"test": "eslint . && jest --runInBand --coverage && codecov"
1817
},
@@ -36,7 +35,7 @@
3635
"recompose"
3736
],
3837
"peerDependencies": {
39-
"react": "^15.5.4"
38+
"react": "^15.0.0"
4039
},
4140
"dependencies": {
4241
"fbjs": "^0.8.12",
@@ -52,13 +51,13 @@
5251
"babel-loader": "^7.0.0",
5352
"babel-plugin-transform-class-properties": "^6.24.1",
5453
"babel-plugin-transform-object-rest-spread": "^6.23.0",
55-
"babel-preset-latest": "^6.24.1",
54+
"babel-preset-env": "^1.4.0",
5655
"babel-preset-react": "^6.24.1",
5756
"benchmark": "^2.1.4",
58-
"codecov": "^2.1.0",
57+
"codecov": "^2.2.0",
5958
"conventional-github-releaser": "^1.1.3",
6059
"conventional-recommended-bump": "^1.0.0",
61-
"create-react-class": "^15.5.2",
60+
"create-react-class": "^15.5.3",
6261
"docdown": "neoziro/docdown#multiple-files-support",
6362
"ejs": "^2.5.6",
6463
"enzyme": "^2.8.2",
@@ -67,22 +66,22 @@
6766
"eslint-plugin-import": "^2.2.0",
6867
"eslint-plugin-jsx-a11y": "^4.0.0",
6968
"eslint-plugin-react": "^6.10.3",
70-
"fs-extra": "^3.0.0",
69+
"fs-extra": "^3.0.1",
7170
"html-webpack-plugin": "^2.28.0",
72-
"jest": "^19.0.2",
71+
"jest": "^20.0.1",
7372
"jsdom": "^10.1.0",
7473
"microtime": "^2.1.3",
7574
"mversion": "^1.10.1",
7675
"optional-dev-dependency": "^2.0.1",
77-
"prop-types": "^15.5.8",
76+
"prop-types": "^15.5.9",
7877
"react": "^15.5.4",
7978
"react-dom": "^15.5.4",
8079
"react-test-renderer": "^15.5.4",
8180
"reassemble": "^0.5.6",
8281
"recompose": "^0.23.1",
83-
"rxjs": "^5.3.0",
82+
"rxjs": "^5.4.0",
8483
"sinon": "^2.2.0",
85-
"webpack": "^2.4.1",
84+
"webpack": "^2.5.1",
8685
"webpack-dev-server": "^2.4.5"
8786
}
8887
}

webpack.config.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
'transform-object-rest-spread',
2121
],
2222
presets: [
23-
['latest', { es2015: { loose: true, modules: false } }],
23+
['env', { loose: true, modules: false }],
2424
'react',
2525
],
2626
},

0 commit comments

Comments
 (0)