Skip to content

Commit 65b8455

Browse files
feat: update package version, refine type definitions, and reintroduce Nitro options for GraphQL Yoga
1 parent 10b1b1a commit 65b8455

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "nitro-graphql",
33
"type": "module",
4-
"version": "0.0.2",
4+
"version": "0.0.4",
55
"packageManager": "pnpm@10.13.1",
66
"description": "GraphQL integration for Nitro",
77
"license": "MIT",
88
"sideEffects": false,
99
"exports": {
1010
".": {
11-
"types": "./dist/index.d.ts",
11+
"types": "./dist/types.d.ts",
1212
"import": "./dist/index.js"
1313
},
1414
"./codegen": {
@@ -33,11 +33,11 @@
3333
},
3434
"./types": {
3535
"types": "./dist/types.d.ts",
36-
"import": "./dist/types.js"
36+
"import": "./dist/types.mjs"
3737
}
3838
},
3939
"main": "./dist/index.js",
40-
"types": "./dist/index.d.ts",
40+
"types": "./dist/types.d.ts",
4141
"files": [
4242
"dist"
4343
],

src/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,6 @@ import { dirname, join, resolve } from 'pathe'
66
import { devmode } from './dev'
77
import { relativeWithDot } from './utils'
88

9-
declare module 'nitropack' {
10-
interface NitroOptions {
11-
graphqlYoga?: NitroGraphQLOptions
12-
}
13-
14-
interface NitroRuntimeConfig {
15-
graphqlYoga?: NitroGraphQLOptions
16-
}
17-
}
18-
199
export default defineNitroModule({
2010
name: 'nitro:graphql-yoga',
2111
async setup(nitro: Nitro) {

src/types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ import type { TypeScriptDocumentsPluginConfig } from '@graphql-codegen/typescrip
33
import type { YogaServerOptions } from 'graphql-yoga'
44
import type { IncomingMessage, ServerResponse } from 'node:http'
55

6+
declare module 'nitropack' {
7+
interface NitroOptions {
8+
graphqlYoga?: NitroGraphQLOptions
9+
}
10+
11+
interface NitroRuntimeConfig {
12+
graphqlYoga?: NitroGraphQLOptions
13+
}
14+
}
15+
616
export interface GraphQLSchemaConfig {
717
typeDefs: string | string[]
818
resolvers: any

0 commit comments

Comments
 (0)