Skip to content

Commit 7450c5e

Browse files
committed
chore(Babel): Return back babel-runtime. Remove es build.
1 parent 10cfb3d commit 7450c5e

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"plugins": [
33
"transform-object-rest-spread",
4-
"transform-flow-strip-types"
4+
"transform-flow-strip-types",
5+
["transform-runtime", { "polyfill": false }]
56
],
67
"presets": [
78
["env", {

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
"version": "0.0.0-semantically-released",
44
"description": "Plugin for `graphql-compose` which derive a graphql types from a mongoose model.",
55
"files": [
6-
"es",
76
"lib"
87
],
98
"main": "lib/index.js",
10-
"jsnext:main": "es/index.js",
119
"repository": {
1210
"type": "git",
1311
"url": "https://github.com/nodkz/graphql-compose-mongoose.git"
@@ -25,6 +23,7 @@
2523
},
2624
"homepage": "https://github.com/nodkz/graphql-compose-mongoose",
2725
"dependencies": {
26+
"babel-runtime": "^6.23.0",
2827
"object-path": "^0.11.4"
2928
},
3029
"peerDependencies": {
@@ -39,6 +38,7 @@
3938
"babel-jest": "^20.0.3",
4039
"babel-plugin-transform-flow-strip-types": "^6.22.0",
4140
"babel-plugin-transform-object-rest-spread": "^6.23.0",
41+
"babel-plugin-transform-runtime": "^6.23.0",
4242
"babel-preset-env": "^1.5.1",
4343
"cz-conventional-changelog": "^2.0.0",
4444
"eslint": "^3.19.0",
@@ -69,9 +69,8 @@
6969
]
7070
},
7171
"scripts": {
72-
"build": "npm run build-cjs && npm run build-flow && npm run build-es",
72+
"build": "npm run build-cjs && npm run build-flow",
7373
"build-cjs": "rimraf lib && babel src --ignore __tests__,__mocks__ -d lib",
74-
"build-es": "rimraf es && BABEL_ENV=es babel src --ignore __tests__,__mocks__ -d es",
7574
"build-flow": "find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/lib\\//g'`.flow; done",
7675
"coverage": "jest --coverage",
7776
"lint": "eslint src test *.js",

yarn.lock

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,12 @@ babel-plugin-transform-regenerator@^6.22.0:
670670
dependencies:
671671
regenerator-transform "0.9.11"
672672

673+
babel-plugin-transform-runtime@^6.23.0:
674+
version "6.23.0"
675+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-runtime/-/babel-plugin-transform-runtime-6.23.0.tgz#88490d446502ea9b8e7efb0fe09ec4d99479b1ee"
676+
dependencies:
677+
babel-runtime "^6.22.0"
678+
673679
babel-plugin-transform-strict-mode@^6.24.1:
674680
version "6.24.1"
675681
resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758"
@@ -1916,15 +1922,15 @@ graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4
19161922
version "1.0.1"
19171923
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"
19181924

1919-
graphql-compose-connection@^2.1.4:
1920-
version "2.1.4"
1921-
resolved "https://registry.yarnpkg.com/graphql-compose-connection/-/graphql-compose-connection-2.1.4.tgz#394f2dd08c4751e11d41038145d4f3db0a9cb210"
1925+
graphql-compose-connection@^2.2.0:
1926+
version "2.2.0"
1927+
resolved "https://registry.yarnpkg.com/graphql-compose-connection/-/graphql-compose-connection-2.2.0.tgz#118acf81254dca2eae04705ff2a76ee33b432c6a"
19221928
dependencies:
19231929
babel-runtime "^6.23.0"
19241930

1925-
graphql-compose@^1.19.3:
1926-
version "1.19.3"
1927-
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-1.19.3.tgz#cea43697378b4da864d34836bbd36376de71649a"
1931+
graphql-compose@^1.20.1:
1932+
version "1.20.1"
1933+
resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-1.20.1.tgz#41a1f35f2c2aded2934bb6568ac762c9e6b9b5ce"
19281934
dependencies:
19291935
babel-runtime "^6.23.0"
19301936
object-path "^0.11.4"
@@ -2313,10 +2319,6 @@ iterall@^1.1.0:
23132319
version "1.1.1"
23142320
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.1.tgz#f7f0af11e9a04ec6426260f5019d9fcca4d50214"
23152321

2316-
jest-babel@^1.0.1:
2317-
version "1.0.1"
2318-
resolved "https://registry.yarnpkg.com/jest-babel/-/jest-babel-1.0.1.tgz#ef659df0e9397b083c0f6aebd4cb8cfaa77df8bf"
2319-
23202322
jest-changed-files@^20.0.3:
23212323
version "20.0.3"
23222324
resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-20.0.3.tgz#9394d5cc65c438406149bef1bf4d52b68e03e3f8"
@@ -2906,9 +2908,9 @@ mongodb-download@^2.2.1:
29062908
request-promise "^4.1.1"
29072909
yargs "^3.26.0"
29082910

2909-
mongodb-memory-server@^1.1.1:
2910-
version "1.1.1"
2911-
resolved "https://registry.yarnpkg.com/mongodb-memory-server/-/mongodb-memory-server-1.1.1.tgz#9cecafe01b3e0f7e12b2a240f706c183b2f4d3c6"
2911+
mongodb-memory-server@^1.1.2:
2912+
version "1.1.2"
2913+
resolved "https://registry.yarnpkg.com/mongodb-memory-server/-/mongodb-memory-server-1.1.2.tgz#7d0a7760d44b692d8b29444b278f4137a7370c8b"
29122914
dependencies:
29132915
get-port "^3.1.0"
29142916
mongodb-prebuilt "^6.2.0"

0 commit comments

Comments
 (0)