Skip to content

Commit 78a064a

Browse files
committed
fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089
Huh, it's to tricky to use Map/Set in ES5.
1 parent 2a40e52 commit 78a064a

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.babelrc

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"env": {
33
"development": {
4+
"passPerPreset": true,
45
"presets": [
5-
["es2015", {"modules": "commonjs"}]
6+
{ "plugins": [ "transform-runtime" ] },
7+
{
8+
"passPerPreset": false,
9+
"presets": ["es2015"]
10+
}
611
],
712
"plugins": [
813
"syntax-async-functions",

CHANGELOG.md

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

3+
## 1.0.9 (August 15, 2016)
4+
- fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089 Huh, it's to tricky to use Map/Set in ES5.
5+
36
## 1.0.8 (August 13, 2016)
47
- fix: babel build process
58

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-compose-mongoose",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Plugin for `graphql-compose` which derive a graphql type from a mongoose model.",
55
"files": [
66
"es",
@@ -24,6 +24,7 @@
2424
},
2525
"homepage": "https://github.com/nodkz/graphql-compose-mongoose",
2626
"dependencies": {
27+
"babel-runtime": "6.11.6",
2728
"object-path": "^0.11.0"
2829
},
2930
"peerDependencies": {
@@ -40,6 +41,7 @@
4041
"babel-plugin-transform-flow-strip-types": "6.8.0",
4142
"babel-plugin-transform-object-rest-spread": "6.8.0",
4243
"babel-plugin-transform-regenerator": "6.11.4",
44+
"babel-plugin-transform-runtime": "6.12.0",
4345
"babel-preset-es2015": "6.13.2",
4446
"chai": "3.5.0",
4547
"chai-as-promised": "5.3.0",
@@ -59,7 +61,7 @@
5961
"build": "npm run build-cjs && npm run build-flow && npm run build-es",
6062
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
6163
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
62-
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\\/src\\\//\\\/lib\\\//g'`.flow; done",
64+
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
6365
"lint": "eslint src test *.js",
6466
"prepublish": "npm run test && npm run build",
6567
"test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",

0 commit comments

Comments
 (0)