Skip to content

Commit 2a40e52

Browse files
committed
fix: babel build process
1 parent a942898 commit 2a40e52

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

.babelrc

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{
22
"env": {
33
"development": {
4-
"presets": ["es2015"],
4+
"presets": [
5+
["es2015", {"modules": "commonjs"}]
6+
],
57
"plugins": [
68
"syntax-async-functions",
79
"transform-regenerator",
810
"transform-class-properties",
911
"transform-object-rest-spread",
10-
"transform-flow-strip-types",
11-
"transform-runtime",
12+
"transform-flow-strip-types"
1213
]
1314
},
1415
"es": {
16+
"presets": [
17+
["es2015", {"modules": false}]
18+
],
1519
"plugins": [
1620
"syntax-async-functions",
17-
"transform-regenerator",
21+
["transform-regenerator", {
22+
"async": false
23+
}],
1824
"transform-class-properties",
1925
"transform-object-rest-spread",
2026
"transform-flow-strip-types",

.eslintrc

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
},
99
"env": {
1010
"mocha": true
11-
}
11+
},
12+
"plugins": [
13+
"flowtype"
14+
]
1215
}

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## master
22

3+
## 1.0.8 (August 13, 2016)
4+
- fix: babel build process
5+
36
## 1.0.7 (August 10, 2016)
47
- Update packages, add `babel-plugin-transform-runtime` for build process. Fix [issue](https://github.com/nodkz/graphql-compose-connection/issues/2) for vanilla node.js users without babel (thanks @jacobbubu).
58

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-compose-mongoose",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "Plugin for `graphql-compose` which derive a graphql type from a mongoose model.",
55
"files": [
66
"es",
@@ -28,7 +28,7 @@
2828
},
2929
"peerDependencies": {
3030
"graphql": ">=0.5.0 || >=0.6.0",
31-
"graphql-compose": ">=0.0.6 || >=1.0.0",
31+
"graphql-compose": ">=0.0.16 || >=1.0.0",
3232
"graphql-compose-connection": ">=1.0.0",
3333
"mongoose": ">=4.0.0"
3434
},
@@ -40,14 +40,12 @@
4040
"babel-plugin-transform-flow-strip-types": "6.8.0",
4141
"babel-plugin-transform-object-rest-spread": "6.8.0",
4242
"babel-plugin-transform-regenerator": "6.11.4",
43-
"babel-plugin-transform-runtime": "6.12.0",
4443
"babel-preset-es2015": "6.13.2",
4544
"chai": "3.5.0",
4645
"chai-as-promised": "5.3.0",
4746
"chai-spies": "0.7.1",
4847
"eslint": "3.2.2",
4948
"eslint-config-airbnb": "10.0.0",
50-
"eslint-plugin-flow-vars": "0.5.0",
5149
"eslint-plugin-flowtype": "2.6.1",
5250
"eslint-plugin-import": "1.12.0",
5351
"eslint-plugin-jsx-a11y": "2.0.1",
@@ -65,6 +63,7 @@
6563
"lint": "eslint src test *.js",
6664
"prepublish": "npm run test && npm run build",
6765
"test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",
68-
"watch": "babel-node ./resources/watch.js"
66+
"watch": "babel-node ./resources/watch.js",
67+
"link": "npm link graphql && npm link graphql-compose && npm link graphql-compose-connection && npm link mongoose && npm link"
6968
}
7069
}

0 commit comments

Comments
 (0)