@lewebsimple/nuxt-graphql 0.7.1 → 0.7.2
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 +3 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { mkdir, writeFile } from 'node:fs/promises';
|
|
2
2
|
import { relative, resolve, parse, dirname } from 'node:path';
|
|
3
3
|
import { stitchSchemas } from '@graphql-tools/stitch';
|
|
4
|
+
import { extendSchemaWithZodDirectives } from '@lewebsimple/graphql-codegen-zod/extend-schema';
|
|
4
5
|
import { createResolver, addTemplate, addTypeTemplate, defineNuxtModule, useLogger, addServerImports, updateTemplates, addServerHandler, addPlugin, addImportsDir, addServerImportsDir } from '@nuxt/kit';
|
|
5
6
|
import { defu } from 'defu';
|
|
6
7
|
import { parse as parse$1, printSchema, lexicographicSortSchema, getIntrospectionQuery, buildClientSchema, GraphQLSchema, buildSchema } from 'graphql';
|
|
@@ -15,7 +16,7 @@ import zodPreset from '@lewebsimple/graphql-codegen-zod';
|
|
|
15
16
|
import { createRequire } from 'node:module';
|
|
16
17
|
import { resolveCacheConfig } from '../dist/runtime/app/lib/cache-config.js';
|
|
17
18
|
|
|
18
|
-
const version = "0.7.
|
|
19
|
+
const version = "0.7.2";
|
|
19
20
|
|
|
20
21
|
const buildCache = /* @__PURE__ */ new Map();
|
|
21
22
|
function getCachedLoader(baseKey, loader) {
|
|
@@ -501,6 +502,7 @@ const module$1 = defineNuxtModule({
|
|
|
501
502
|
throw new Error("Failed to load GraphQL schema");
|
|
502
503
|
}
|
|
503
504
|
}
|
|
505
|
+
schema = extendSchemaWithZodDirectives(schema);
|
|
504
506
|
if (nuxt.options.dev) {
|
|
505
507
|
const sdl = getSchemaSDL(schema);
|
|
506
508
|
await writeFile(sdlPath, sdl);
|