@soda-gql/cli 0.0.6 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/index.cjs +4 -2
  2. package/package.json +3 -3
package/dist/index.cjs CHANGED
@@ -101,7 +101,8 @@ const parseCodegenArgs = (argv) => {
101
101
  outPath: (0, node_path.resolve)(config.outdir, "index.ts"),
102
102
  format: args.format ?? "human",
103
103
  runtimeAdapters,
104
- scalars
104
+ scalars,
105
+ importExtension: config.styles.importExtension
105
106
  });
106
107
  };
107
108
  const formatMultiSchemaSuccess = (format, success) => {
@@ -142,7 +143,8 @@ const codegenCommand = async (argv) => {
142
143
  outPath: (0, node_path.resolve)(command.outPath),
143
144
  format: command.format,
144
145
  runtimeAdapters: Object.fromEntries(Object.entries(command.runtimeAdapters).map(([name, path]) => [name, (0, node_path.resolve)(path)])),
145
- scalars: Object.fromEntries(Object.entries(command.scalars).map(([name, path]) => [name, (0, node_path.resolve)(path)]))
146
+ scalars: Object.fromEntries(Object.entries(command.scalars).map(([name, path]) => [name, (0, node_path.resolve)(path)])),
147
+ importExtension: command.importExtension
146
148
  });
147
149
  if (result.isErr()) {
148
150
  process.stderr.write(`${formatCodegenError(command.format, result.error)}\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soda-gql/cli",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -28,8 +28,8 @@
28
28
  "./package.json": "./package.json"
29
29
  },
30
30
  "dependencies": {
31
- "@soda-gql/codegen": "0.0.6",
32
- "@soda-gql/builder": "0.0.6",
31
+ "@soda-gql/codegen": "0.0.8",
32
+ "@soda-gql/builder": "0.0.8",
33
33
  "neverthrow": "^8.1.1",
34
34
  "zod": "^4.1.11"
35
35
  },