File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 0.13.0" ,
4
4
"description" : " A Query Language and Runtime which can target any service." ,
5
5
"license" : " MIT" ,
6
- "main" : " index.js " ,
7
- "module" : " module/ index.js " ,
6
+ "main" : " index" ,
7
+ "module" : " index.mjs " ,
8
8
"homepage" : " https://github.com/graphql/graphql-js" ,
9
9
"bugs" : {
10
10
"url" : " https://github.com/graphql/graphql-js/issues"
34
34
"build:package-json" : " node ./resources/copy-package-json.js" ,
35
35
"build:npm" : " babel src --optional runtime --ignore __tests__ --out-dir dist/" ,
36
36
"build:npm-flow" : " find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\ /src\\ //\\ /dist\\ //g'`.flow; done" ,
37
- "build:module" : " BABEL_MODULES=1 babel src --optional runtime --ignore __tests__ --out-dir dist/module/" ,
38
- "build:module-flow" : " find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\ /src\\ //\\ /dist\\ /module\\ //g'`. flow; done" ,
37
+ "build:module" : " BABEL_MODULES=1 babel src --optional runtime --ignore __tests__ --out-dir dist/module/ && for file in $(find dist/module -name '*.js'); do mv \" $file \" \" ${file%.js}.mjs \" ; done && echo \" export * from './module'; /*:: export type * from './module'; */ \" > dist/index.mjs " ,
38
+ "build:module-flow" : " find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\ /src\\ //\\ /dist\\ /module\\ //g; s/.js$/.mjs. flow/g'` ; done" ,
39
39
"preversion" : " . ./resources/checkgit.sh && npm test" ,
40
40
"prepublish" : " . ./resources/prepublish.sh" ,
41
41
"gitpublish" : " . ./resources/gitpublish.sh"
You can’t perform that action at this time.
0 commit comments