From 78a064a1e07e120496be0010a6605efcd3b62580 Mon Sep 17 00:00:00 2001 From: nodkz Date: Mon, 15 Aug 2016 19:36:16 +0600 Subject: [PATCH] fix: babel build via the workaround https://phabricator.babeljs.io/T2877#78089 Huh, it's to tricky to use Map/Set in ES5. --- .babelrc | 7 ++++++- CHANGELOG.md | 3 +++ package.json | 6 ++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.babelrc b/.babelrc index eadad74a..3da64a4c 100644 --- a/.babelrc +++ b/.babelrc @@ -1,8 +1,13 @@ { "env": { "development": { + "passPerPreset": true, "presets": [ - ["es2015", {"modules": "commonjs"}] + { "plugins": [ "transform-runtime" ] }, + { + "passPerPreset": false, + "presets": ["es2015"] + } ], "plugins": [ "syntax-async-functions", diff --git a/CHANGELOG.md b/CHANGELOG.md index 52983271..6ab7e08e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index 62a50ad4..c7ff8772 100644 --- a/package.json +++ b/package.json @@ -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", @@ -24,6 +24,7 @@ }, "homepage": "https://github.com/nodkz/graphql-compose-mongoose", "dependencies": { + "babel-runtime": "6.11.6", "object-path": "^0.11.0" }, "peerDependencies": { @@ -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", @@ -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",