Skip to content

Commit

Permalink
fix: babel build via the workaround https://phabricator.babeljs.io/T2…
Browse files Browse the repository at this point in the history
…877#78089

Huh, it's to tricky to use Map/Set in ES5.
  • Loading branch information
nodkz committed Aug 15, 2016
1 parent 2a40e52 commit 78a064a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{
"env": {
"development": {
"passPerPreset": true,
"presets": [
["es2015", {"modules": "commonjs"}]
{ "plugins": [ "transform-runtime" ] },
{
"passPerPreset": false,
"presets": ["es2015"]
}
],
"plugins": [
"syntax-async-functions",
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## master

## 1.0.9 (August 15, 2016)
- fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089 Huh, it's to tricky to use Map/Set in ES5.

## 1.0.8 (August 13, 2016)
- fix: babel build process

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphql-compose-mongoose",
"version": "1.0.8",
"version": "1.0.9",
"description": "Plugin for `graphql-compose` which derive a graphql type from a mongoose model.",
"files": [
"es",
Expand All @@ -24,6 +24,7 @@
},
"homepage": "https://github.com/nodkz/graphql-compose-mongoose",
"dependencies": {
"babel-runtime": "6.11.6",
"object-path": "^0.11.0"
},
"peerDependencies": {
Expand All @@ -40,6 +41,7 @@
"babel-plugin-transform-flow-strip-types": "6.8.0",
"babel-plugin-transform-object-rest-spread": "6.8.0",
"babel-plugin-transform-regenerator": "6.11.4",
"babel-plugin-transform-runtime": "6.12.0",
"babel-preset-es2015": "6.13.2",
"chai": "3.5.0",
"chai-as-promised": "5.3.0",
Expand All @@ -59,7 +61,7 @@
"build": "npm run build-cjs && npm run build-flow && npm run build-es",
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\\/src\\\//\\\/lib\\\//g'`.flow; done",
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
"lint": "eslint src test *.js",
"prepublish": "npm run test && npm run build",
"test": "babel-node ./node_modules/.bin/_mocha --compilers js:babel-core/register --reporter dot --require ./resources/mocha-bootload src/**/__tests__/**/*-test.js",
Expand Down

0 comments on commit 78a064a

Please sign in to comment.