@soda-gql/cli 0.0.7 → 0.0.9
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/dist/index.cjs +4 -2
- package/package.json +4 -4
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.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"types": "./dist/index.d.cts",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"
|
|
23
|
+
"@soda-gql": "./src/index.ts",
|
|
24
24
|
"types": "./dist/index.d.cts",
|
|
25
25
|
"require": "./dist/index.cjs",
|
|
26
26
|
"default": "./dist/index.cjs"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"./package.json": "./package.json"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@soda-gql/codegen": "0.0.
|
|
32
|
-
"@soda-gql/builder": "0.0.
|
|
31
|
+
"@soda-gql/codegen": "0.0.9",
|
|
32
|
+
"@soda-gql/builder": "0.0.9",
|
|
33
33
|
"neverthrow": "^8.1.1",
|
|
34
34
|
"zod": "^4.1.11"
|
|
35
35
|
},
|