Skip to content

Commit

Permalink
No MSJ - it is tricky and experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkisiela committed Apr 14, 2020
1 parent 4c2f6aa commit 1fb614a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -11,7 +11,7 @@
- Add transform to filter object fields [#819](https://github.com/apollographql/graphql-tools/issues/819)
- Exports visitSchema, SchemaVisitor, healSchema, healTypes, cloneSchema, cloneType, cloneDirective to enable more custom transforms. [#1070](https://github.com/apollographql/graphql-tools/issues/1070)
- Allow removing extra delegation layers by passing fetcher/link options directly to delegateToSchema, mergeSchemas, and transformSchema and by filtering directly with filterSchema without additional transformation round [#1165](https://github.com/apollographql/graphql-tools/issues/1165)
- Support CJS, ESM and `.mjs` [#913](https://github.com/apollographql/graphql-tools/issues/913) [PR #1320](https://github.com/apollographql/graphql-tools/pull/1320) [PR #1329](https://github.com/apollographql/graphql-tools/pull/1329)
- Support CJS and ESM [#913](https://github.com/apollographql/graphql-tools/issues/913) [PR #1320](https://github.com/apollographql/graphql-tools/pull/1320) [PR #1329](https://github.com/apollographql/graphql-tools/pull/1329)
- Add TransformQuery transform to allow delegating to subfields with error preservation [#543](https://github.com/apollographql/graphql-tools/issues/543) [PR #1307](https://github.com/apollographql/graphql-tools/pull/1307)
- add WrapType transform to namespace subschema root queries (not for use with mutations) [#961](https://github.com/apollographql/graphql-tools/issues/961) [#439](https://github.com/apollographql/graphql-tools/issues/439) [PR #1307](https://github.com/apollographql/graphql-tools/pull/1307)
- Add HoistFields transform to hoist subfields from field to parent type [#781](https://github.com/apollographql/graphql-tools/issues/781) [PR #1307](https://github.com/apollographql/graphql-tools/pull/1307)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "graphql-tools",
"version": "5.0.0-rc.3",
"version": "5.0.0-rc.4",
"description": "Useful tools to create and manipulate GraphQL schemas.",
"sideEffects": false,
"main": "dist/index.cjs.js",
Expand Down
10 changes: 1 addition & 9 deletions rollup.config.js
Expand Up @@ -36,11 +36,6 @@ export default {
file: 'dist/index.esm.js',
format: 'esm',
},
{
...commonOutputOptions,
file: 'dist/index.mjs',
format: 'esm',
},
],
};

Expand All @@ -52,6 +47,7 @@ function rewritePackageJson(pkg) {
'description',
'sideEffects',
'peerDependencies',
'dependencies',
'repository',
'homepage',
'keywords',
Expand All @@ -73,10 +69,6 @@ function rewritePackageJson(pkg) {
newPkg.typescript = {
definition: newPkg.typings,
};
newPkg.exports = {
require: newPkg.main,
default: 'index.mjs',
};

return newPkg;
}
Expand Down

0 comments on commit 1fb614a

Please sign in to comment.