-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync package building process with 'graphql-js' (#316)
- Loading branch information
1 parent
11e6288
commit 87e62e7
Showing
8 changed files
with
44 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"plugins": ["@babel/plugin-transform-flow-strip-types"], | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ "modules": "commonjs", "targets": { "node": "12" } } | ||
] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,4 @@ | ||
{ | ||
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]], | ||
"plugins": ["@babel/plugin-transform-flow-strip-types"], | ||
"overrides": [ | ||
{ | ||
"exclude": ["**/__tests__/**/*"], | ||
"presets": ["@babel/preset-env"], | ||
"plugins": [ | ||
["@babel/plugin-transform-classes", { "loose": true }], | ||
["@babel/plugin-transform-destructuring", { "loose": true }], | ||
["@babel/plugin-transform-spread", { "loose": true }], | ||
["@babel/plugin-transform-for-of", { "assumeArray": true }] | ||
], | ||
"env": { | ||
"cjs": { | ||
"presets": [["@babel/preset-env", { "modules": "commonjs" }]] | ||
}, | ||
"mjs": { | ||
"presets": [["@babel/preset-env", { "modules": false }]], | ||
"plugins": [ | ||
[ | ||
"./resources/add-extension-to-import-paths", | ||
{ "extension": "mjs" } | ||
] | ||
] | ||
} | ||
} | ||
} | ||
] | ||
"presets": [["@babel/preset-env", { "targets": { "node": "current" } }]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Copied from '.gitignore', please keep it in sync. | ||
node_modules | ||
coverage | ||
dist | ||
npmDist | ||
|
||
# Ignore Flow typings for 3rd-party libraries | ||
/flow-typed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,4 @@ | |
|
||
node_modules | ||
coverage | ||
dist | ||
npmDist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copied from '.gitignore', please keep it in sync. | ||
node_modules | ||
coverage | ||
dist | ||
npmDist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters