@lewebsimple/nuxt-graphql 0.7.2 → 0.7.3
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/module.json +1 -1
- package/dist/module.mjs +16 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -16,7 +16,7 @@ import zodPreset from '@lewebsimple/graphql-codegen-zod';
|
|
|
16
16
|
import { createRequire } from 'node:module';
|
|
17
17
|
import { resolveCacheConfig } from '../dist/runtime/app/lib/cache-config.js';
|
|
18
18
|
|
|
19
|
-
const version = "0.7.
|
|
19
|
+
const version = "0.7.3";
|
|
20
20
|
|
|
21
21
|
const buildCache = /* @__PURE__ */ new Map();
|
|
22
22
|
function getCachedLoader(baseKey, loader) {
|
|
@@ -176,7 +176,11 @@ async function generateRegistryArtifacts({
|
|
|
176
176
|
baseOutputDir: "registry.ts",
|
|
177
177
|
schema: parse$1(printSchema(schema)),
|
|
178
178
|
documents,
|
|
179
|
-
config: {
|
|
179
|
+
config: {
|
|
180
|
+
scalars: {
|
|
181
|
+
ZodValue: "unknown"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
180
184
|
pluginMap: {},
|
|
181
185
|
plugins: [],
|
|
182
186
|
presetConfig: {}
|
|
@@ -553,7 +557,16 @@ const module$1 = defineNuxtModule({
|
|
|
553
557
|
const configPath = resolveRoot(options.saveConfig || "graphql.config.json");
|
|
554
558
|
const config = {
|
|
555
559
|
schema: toRelativePath(rootDir, sdlPath),
|
|
556
|
-
documents: documentGlobs.map((glob) => toRelativePath(rootDir, glob))
|
|
560
|
+
documents: documentGlobs.map((glob) => toRelativePath(rootDir, glob)),
|
|
561
|
+
extensions: {
|
|
562
|
+
codegen: {
|
|
563
|
+
config: {
|
|
564
|
+
scalars: {
|
|
565
|
+
ZodValue: "unknown"
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
557
570
|
};
|
|
558
571
|
await writeFile(configPath, JSON.stringify(config, null, 2));
|
|
559
572
|
}
|