@soda-gql/builder 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -44,8 +44,7 @@ const builder = await createBuilder({
44
44
  schemas: {
45
45
  default: {
46
46
  schema: "./schema.graphql",
47
- runtimeAdapter: "./runtime-adapter.ts",
48
- scalars: "./scalars.ts",
47
+ inject: "./default.inject.ts",
49
48
  },
50
49
  },
51
50
  },
package/dist/index.cjs CHANGED
@@ -724,7 +724,8 @@ function executeGraphqlSystemModule(modulePath) {
724
724
  sandbox.global = sandbox;
725
725
  sandbox.globalThis = sandbox;
726
726
  new node_vm.Script(bundledCode, { filename: modulePath }).runInNewContext(sandbox);
727
- const exportedGql = moduleExports.gql ?? moduleExports.default;
727
+ const finalExports = sandbox.module.exports;
728
+ const exportedGql = finalExports.gql ?? finalExports.default;
728
729
  if (exportedGql === undefined) {
729
730
  throw new Error(`No 'gql' export found in GraphQL system module: ${modulePath}`);
730
731
  }