@lssm/lib.graphql-prisma 1.10.0 → 1.11.0

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/README.md CHANGED
@@ -40,3 +40,14 @@ builder.prismaObject('User', {
40
40
 
41
41
 
42
42
 
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;UAeiB,oBAAA;EAAA,UAAA,CAAA,EAAA;IAuBD,iBAAA,CAAA,EAAA,MAAyB;IAK9B,qBAAA,CAAA,EAAA,MAAA;EAaM,CAAA;EACJ,OAAA,CAAA,EAAA;IACA,eAAA,CAAA,EAAA,OAAA;IAGQ,UAAA,CAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAc,CAAA;EAK3B,UAAA,CAAA,EAAA,OAAA;EAvBuB,MAAA,EAAA;IAAA,MAAA,EAbnB,YAamB;IAAA,IAAA,CAAA,EAAA,OAAA;IAgHd,kBAAU,CAAA,EAAA,OAAA;IAGX,0BAAmB,CAAA,EAAS,OAAA;;;;iBAxH5B,kJAKL,uBAAoB,iBAAA,CAAA,cAAA,iBAAA,CAAA;;eAad;WACJ;WACA;;;;;;;aAGQ;cAAc;;;;;;;;;;;;;;;;;;MAK3B;;;;;;;UAyFS,UAAA;;;iBAGD,mBAAA,SAA4B,+BAWrC"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;UAeiB,oBAAA;EAAA,UAAA,CAAA,EAAA;IAuBD,iBAAA,CAAA,EAAA,MAAyB;IAK9B,qBAAA,CAAA,EAAA,MAAA;EAeM,CAAA;EACJ,OAAA,CAAA,EAAA;IACA,eAAA,CAAA,EAAA,OAAA;IAGQ,UAAA,CAAA,EAAA,CAAA,UAAA,EAAA,MAAA,EAAA,SAAA,EAAA,MAAA,EAAA,UAAA,EAAA,MAAA,EAAA,GAAA,IAAA;EAAc,CAAA;EAK3B,UAAA,CAAA,EAAA,OAAA;EAzBuB,MAAA,EAAA;IAAA,MAAA,EAbnB,YAamB;IAAA,IAAA,CAAA,EAAA,OAAA;IAmId,kBAAU,CAAA,EAAA,OAAA;IAGX,0BAAmB,CAAA,EAAS,OAAA;;;;iBA3I5B,kJAKL,uBAAoB,iBAAA,CAAA,cAAA,iBAAA,CAAA;;eAed;WACJ;WACA;;;;;;;aAGQ;cAAc;;;;;;;;;;;;;;;;;;MAK3B;;;;;;;UA0GS,UAAA;;;iBAGD,mBAAA,SAA4B,+BAWrC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{l as e}from"./schema/dist/ScalarTypeEnum.js";import"./schema/dist/index.js";import t from"@pothos/core";import n from"@pothos/plugin-prisma";import r from"@pothos/plugin-complexity";import i from"@pothos/plugin-dataloader";import a from"@pothos/plugin-relay";import o,{isRootField as s,wrapResolver as c}from"@pothos/plugin-tracing";import{GeoJSONResolver as l}from"graphql-scalars";function u(u){let d=new t({defaultInputFieldRequiredness:!0,plugins:[a,r,o,i,n],relay:{},prisma:{client:u.prisma.client,...u.prisma.dmmf?{dmmf:u.prisma.dmmf}:{},exposeDescriptions:u.prisma.exposeDescriptions??!0,filterConnectionTotalCount:u.prisma.filterConnectionTotalCount??!0,onUnusedQuery:u.prisma.onUnusedQuery??null},complexity:{defaultComplexity:u.complexity?.defaultComplexity??1,defaultListMultiplier:u.complexity?.defaultListMultiplier??10},tracing:{default:e=>u.tracing?.enableByDefault??!0?s(e):!1,wrap:(e,t,n)=>c(e,(e,t)=>{u.tracing?.onResolved?.(n.parentType,n.name,t)})}});return Object.entries(e).forEach(([e,t])=>{[`ID`,`Boolean`].includes(e)||d.addScalarType(e,t())}),d.addScalarType(`GeoJSON`,l),d.queryType({fields:e=>({})}),d.mutationType({fields:e=>({})}),d}function d(e,t=`gql.field`){return{enableByDefault:!0,onResolved:(e,t,n,...r)=>{}}}export{d as createLoggerTracing,u as createPrismaSchemaBuilder};
1
+ import{l as e}from"./schema/dist/ScalarTypeEnum.js";import"./schema/dist/index.js";import t from"@pothos/core";import n from"@pothos/plugin-prisma";import r from"@pothos/plugin-complexity";import i from"@pothos/plugin-dataloader";import a from"@pothos/plugin-relay";import o,{isRootField as s,wrapResolver as c}from"@pothos/plugin-tracing";import{GeoJSONResolver as l}from"graphql-scalars";function u(u){let d=process.env.CONTRACTSPEC_DEBUG_GRAPHQL_BUILDER===`true`,f=new t({defaultInputFieldRequiredness:!0,plugins:[a,r,o,i,n],relay:{},prisma:{client:u.prisma.client,...u.prisma.dmmf?{dmmf:u.prisma.dmmf}:{},exposeDescriptions:u.prisma.exposeDescriptions??!0,filterConnectionTotalCount:u.prisma.filterConnectionTotalCount??!0,onUnusedQuery:u.prisma.onUnusedQuery??null},complexity:{defaultComplexity:u.complexity?.defaultComplexity??1,defaultListMultiplier:u.complexity?.defaultListMultiplier??10},tracing:{default:e=>u.tracing?.enableByDefault??!0?s(e):!1,wrap:(e,t,n)=>c(e,(e,t)=>{u.tracing?.onResolved?.(n.parentType,n.name,t)})}});return d&&console.log(`[graphql-prisma] initializing schema builder`),Object.entries(e).forEach(([e,t])=>{if(![`ID`,`Boolean`].includes(e)){if(typeof t!=`function`)throw Error(`ScalarTypeEnum entry "${e}" must be a function but received ${typeof t}`);d&&console.log(`[graphql-prisma] registering scalar ${e}`),f.addScalarType(e,t())}}),f.addScalarType(`GeoJSON`,l),f.queryType({fields:e=>({})}),f.mutationType({fields:e=>({})}),d&&console.log(`[graphql-prisma] schema builder ready`),f}function d(e,t=`gql.field`){return{enableByDefault:!0,onResolved:(e,t,n,...r)=>{}}}export{d as createLoggerTracing,u as createPrismaSchemaBuilder};
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ScalarTypeEnum"],"sources":["../src/index.ts"],"sourcesContent":["import SchemaBuilder, { type SchemaTypes } from '@pothos/core';\nimport PrismaPlugin, { type PrismaClient } from '@pothos/plugin-prisma';\nimport ComplexityPlugin from '@pothos/plugin-complexity';\nimport DataloaderPlugin from '@pothos/plugin-dataloader';\nimport RelayPlugin from '@pothos/plugin-relay';\nimport TracingPlugin, {\n isRootField,\n wrapResolver,\n} from '@pothos/plugin-tracing';\nimport '@pothos/plugin-prisma';\nimport '@pothos/plugin-relay';\nimport '@pothos/plugin-complexity';\nimport { GeoJSONResolver } from 'graphql-scalars';\nimport { ScalarTypeEnum } from '@lssm/lib.schema';\n\nexport interface PrismaBuilderOptions {\n complexity?: {\n defaultComplexity?: number;\n defaultListMultiplier?: number;\n };\n tracing?: {\n enableByDefault?: boolean;\n onResolved?: (\n parentType: string,\n fieldName: string,\n durationMs: number\n ) => void;\n };\n federation?: boolean;\n prisma: {\n client: PrismaClient;\n dmmf?: unknown;\n exposeDescriptions?: boolean;\n filterConnectionTotalCount?: boolean;\n onUnusedQuery?: 'warn' | null;\n };\n}\n\nexport function createPrismaSchemaBuilder<\n C extends object,\n PT extends {} | undefined,\n Objects extends object = object,\n Scalars extends object = object,\n>(options: PrismaBuilderOptions) {\n // const plugins: (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[] = [\n const plugins = [\n RelayPlugin,\n ComplexityPlugin,\n TracingPlugin,\n DataloaderPlugin,\n PrismaPlugin,\n ] satisfies (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[];\n // if (options.federation) plugins.push(FederationPlugin);\n\n const builder = new SchemaBuilder<{\n DefaultInputFieldRequiredness: true;\n PrismaTypes: PT;\n Context: C;\n Objects: Objects;\n Scalars: {\n JSON: { Input: unknown; Output: unknown };\n Date: { Input: Date; Output: Date };\n EmailAddress: { Input: string; Output: string };\n Locale: { Input: string; Output: string };\n URL: { Input: string; Output: string };\n GeoJSON: { Input: string; Output: string };\n } & Scalars;\n ObjectType: { CommunityRule: { id: string } };\n }>({\n defaultInputFieldRequiredness: true,\n plugins,\n relay: {},\n prisma: {\n client: options.prisma.client,\n ...(options.prisma.dmmf ? { dmmf: options.prisma.dmmf as any } : {}),\n exposeDescriptions: options.prisma.exposeDescriptions ?? true,\n filterConnectionTotalCount:\n options.prisma.filterConnectionTotalCount ?? true,\n onUnusedQuery: options.prisma.onUnusedQuery ?? null,\n },\n complexity: {\n defaultComplexity: options.complexity?.defaultComplexity ?? 1,\n defaultListMultiplier: options.complexity?.defaultListMultiplier ?? 10,\n },\n tracing: {\n default: (cfg) =>\n (options.tracing?.enableByDefault ?? true) ? isRootField(cfg) : false,\n wrap: (resolver, _opts, cfg) =>\n wrapResolver(resolver, (_err, dur) => {\n options.tracing?.onResolved?.(cfg.parentType, cfg.name, dur);\n }),\n },\n });\n\n Object.entries(ScalarTypeEnum).forEach(([name, type]) => {\n if (!['ID', 'Boolean'].includes(name)) {\n builder.addScalarType(name as any, type());\n }\n });\n builder.addScalarType('GeoJSON', GeoJSONResolver);\n\n builder.queryType({\n fields: (t) => ({}),\n });\n\n // Mutation Type (reduced, moved fields into modules)\n builder.mutationType({\n fields: (t) => ({}),\n });\n\n return builder;\n}\n\n// export async function loadDmmfFromClient(\n// client: any\n// ): Promise<PrismaDMMF.Document> {\n// const dmmf: PrismaDMMF.Document | undefined = (client as any)?._dmmf;\n// if (dmmf) return dmmf;\n// if (typeof (client as any).$extends === 'function') {\n// const ext = await (client as any).$extends({});\n// if (ext && ext._dmmf) return ext._dmmf as PrismaDMMF.Document;\n// }\n// throw new Error('Unable to load Prisma DMMF from client');\n// }\n\n// export type PrismaSchemaBuilder<\n// C extends object,\n// PT extends {} | undefined,\n// > = PothosSchemaTypes.SchemaBuilder<\n// PothosSchemaTypes.ExtendDefaultTypes<{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>\n// >;\n\n// export type PrismaSchemaBuilder<C, PT> = InstanceType<typeof SchemaBuilder><{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>;\n\n// export function createTypedPrismaBuilder<PT extends {}>() {\n// return function create<C extends object>(options: PrismaBuilderOptions<C>) {\n// return createPrismaSchemaBuilder<C, PT>(options);\n// };\n// }\n\n// Tracing helper that integrates with a logger-like object\nexport interface LoggerLike {\n info: (msg: string, meta?: unknown) => void;\n}\nexport function createLoggerTracing(logger: LoggerLike, opLabel = 'gql.field') {\n return {\n enableByDefault: true,\n onResolved: (\n parentType: string,\n fieldName: string,\n durationMs: number,\n ...others: any[]\n ) => {\n // logger.info(opLabel, { parentType, fieldName, durationMs, others });\n },\n } as PrismaBuilderOptions['tracing'];\n}\n"],"mappings":"sYAsCA,SAAgB,EAKd,EAA+B,CAW/B,IAAM,EAAU,IAAI,EAcjB,CACD,8BAA+B,GAC/B,QAzBc,CACd,EACA,EACA,EACA,EACA,EACD,CAoBC,MAAO,EAAE,CACT,OAAQ,CACN,OAAQ,EAAQ,OAAO,OACvB,GAAI,EAAQ,OAAO,KAAO,CAAE,KAAM,EAAQ,OAAO,KAAa,CAAG,EAAE,CACnE,mBAAoB,EAAQ,OAAO,oBAAsB,GACzD,2BACE,EAAQ,OAAO,4BAA8B,GAC/C,cAAe,EAAQ,OAAO,eAAiB,KAChD,CACD,WAAY,CACV,kBAAmB,EAAQ,YAAY,mBAAqB,EAC5D,sBAAuB,EAAQ,YAAY,uBAAyB,GACrE,CACD,QAAS,CACP,QAAU,GACP,EAAQ,SAAS,iBAAmB,GAAQ,EAAY,EAAI,CAAG,GAClE,MAAO,EAAU,EAAO,IACtB,EAAa,GAAW,EAAM,IAAQ,CACpC,EAAQ,SAAS,aAAa,EAAI,WAAY,EAAI,KAAM,EAAI,EAC5D,CACL,CACF,CAAC,CAkBF,OAhBA,OAAO,QAAQA,EAAe,CAAC,SAAS,CAAC,EAAM,KAAU,CAClD,CAAC,KAAM,UAAU,CAAC,SAAS,EAAK,EACnC,EAAQ,cAAc,EAAa,GAAM,CAAC,EAE5C,CACF,EAAQ,cAAc,UAAW,EAAgB,CAEjD,EAAQ,UAAU,CAChB,OAAS,IAAO,EAAE,EACnB,CAAC,CAGF,EAAQ,aAAa,CACnB,OAAS,IAAO,EAAE,EACnB,CAAC,CAEK,EAgDT,SAAgB,EAAoB,EAAoB,EAAU,YAAa,CAC7E,MAAO,CACL,gBAAiB,GACjB,YACE,EACA,EACA,EACA,GAAG,IACA,GAGN"}
1
+ {"version":3,"file":"index.js","names":["ScalarTypeEnum"],"sources":["../src/index.ts"],"sourcesContent":["import SchemaBuilder, { type SchemaTypes } from '@pothos/core';\nimport PrismaPlugin, { type PrismaClient } from '@pothos/plugin-prisma';\nimport ComplexityPlugin from '@pothos/plugin-complexity';\nimport DataloaderPlugin from '@pothos/plugin-dataloader';\nimport RelayPlugin from '@pothos/plugin-relay';\nimport TracingPlugin, {\n isRootField,\n wrapResolver,\n} from '@pothos/plugin-tracing';\nimport '@pothos/plugin-prisma';\nimport '@pothos/plugin-relay';\nimport '@pothos/plugin-complexity';\nimport { GeoJSONResolver } from 'graphql-scalars';\nimport { ScalarTypeEnum } from '@lssm/lib.schema';\n\nexport interface PrismaBuilderOptions {\n complexity?: {\n defaultComplexity?: number;\n defaultListMultiplier?: number;\n };\n tracing?: {\n enableByDefault?: boolean;\n onResolved?: (\n parentType: string,\n fieldName: string,\n durationMs: number\n ) => void;\n };\n federation?: boolean;\n prisma: {\n client: PrismaClient;\n dmmf?: unknown;\n exposeDescriptions?: boolean;\n filterConnectionTotalCount?: boolean;\n onUnusedQuery?: 'warn' | null;\n };\n}\n\nexport function createPrismaSchemaBuilder<\n C extends object,\n PT extends {} | undefined,\n Objects extends object = object,\n Scalars extends object = object,\n>(options: PrismaBuilderOptions) {\n const debugBuilder =\n process.env.CONTRACTSPEC_DEBUG_GRAPHQL_BUILDER === 'true';\n // const plugins: (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[] = [\n const plugins = [\n RelayPlugin,\n ComplexityPlugin,\n TracingPlugin,\n DataloaderPlugin,\n PrismaPlugin,\n ] satisfies (keyof PothosSchemaTypes.Plugins<SchemaTypes>)[];\n // if (options.federation) plugins.push(FederationPlugin);\n\n const builder = new SchemaBuilder<{\n DefaultInputFieldRequiredness: true;\n PrismaTypes: PT;\n Context: C;\n Objects: Objects;\n Scalars: {\n JSON: { Input: unknown; Output: unknown };\n Date: { Input: Date; Output: Date };\n EmailAddress: { Input: string; Output: string };\n Locale: { Input: string; Output: string };\n URL: { Input: string; Output: string };\n GeoJSON: { Input: string; Output: string };\n } & Scalars;\n ObjectType: { CommunityRule: { id: string } };\n }>({\n defaultInputFieldRequiredness: true,\n plugins,\n relay: {},\n prisma: {\n client: options.prisma.client,\n ...(options.prisma.dmmf ? { dmmf: options.prisma.dmmf as any } : {}),\n exposeDescriptions: options.prisma.exposeDescriptions ?? true,\n filterConnectionTotalCount:\n options.prisma.filterConnectionTotalCount ?? true,\n onUnusedQuery: options.prisma.onUnusedQuery ?? null,\n },\n complexity: {\n defaultComplexity: options.complexity?.defaultComplexity ?? 1,\n defaultListMultiplier: options.complexity?.defaultListMultiplier ?? 10,\n },\n tracing: {\n default: (cfg) =>\n (options.tracing?.enableByDefault ?? true) ? isRootField(cfg) : false,\n wrap: (resolver, _opts, cfg) =>\n wrapResolver(resolver, (_err, dur) => {\n options.tracing?.onResolved?.(cfg.parentType, cfg.name, dur);\n }),\n },\n });\n\n if (debugBuilder) {\n console.log('[graphql-prisma] initializing schema builder');\n }\n\n Object.entries(ScalarTypeEnum).forEach(([name, type]) => {\n if (['ID', 'Boolean'].includes(name)) {\n return;\n }\n if (typeof type !== 'function') {\n throw new Error(\n `ScalarTypeEnum entry \"${name}\" must be a function but received ${typeof type}`\n );\n }\n if (debugBuilder) {\n console.log(`[graphql-prisma] registering scalar ${name}`);\n }\n builder.addScalarType(name as any, type());\n });\n builder.addScalarType('GeoJSON', GeoJSONResolver);\n\n builder.queryType({\n fields: (t) => ({}),\n });\n\n // Mutation Type (reduced, moved fields into modules)\n builder.mutationType({\n fields: (t) => ({}),\n });\n\n if (debugBuilder) {\n console.log('[graphql-prisma] schema builder ready');\n }\n\n return builder;\n}\n\n// export async function loadDmmfFromClient(\n// client: any\n// ): Promise<PrismaDMMF.Document> {\n// const dmmf: PrismaDMMF.Document | undefined = (client as any)?._dmmf;\n// if (dmmf) return dmmf;\n// if (typeof (client as any).$extends === 'function') {\n// const ext = await (client as any).$extends({});\n// if (ext && ext._dmmf) return ext._dmmf as PrismaDMMF.Document;\n// }\n// throw new Error('Unable to load Prisma DMMF from client');\n// }\n\n// export type PrismaSchemaBuilder<\n// C extends object,\n// PT extends {} | undefined,\n// > = PothosSchemaTypes.SchemaBuilder<\n// PothosSchemaTypes.ExtendDefaultTypes<{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>\n// >;\n\n// export type PrismaSchemaBuilder<C, PT> = InstanceType<typeof SchemaBuilder><{\n// PrismaTypes: PT;\n// Context: C;\n// Scalars: {\n// JSON: { Input: unknown; Output: unknown };\n// Date: { Input: Date; Output: Date };\n// };\n// }>;\n\n// export function createTypedPrismaBuilder<PT extends {}>() {\n// return function create<C extends object>(options: PrismaBuilderOptions<C>) {\n// return createPrismaSchemaBuilder<C, PT>(options);\n// };\n// }\n\n// Tracing helper that integrates with a logger-like object\nexport interface LoggerLike {\n info: (msg: string, meta?: unknown) => void;\n}\nexport function createLoggerTracing(logger: LoggerLike, opLabel = 'gql.field') {\n return {\n enableByDefault: true,\n onResolved: (\n parentType: string,\n fieldName: string,\n durationMs: number,\n ...others: any[]\n ) => {\n // logger.info(opLabel, { parentType, fieldName, durationMs, others });\n },\n } as PrismaBuilderOptions['tracing'];\n}\n"],"mappings":"sYAsCA,SAAgB,EAKd,EAA+B,CAC/B,IAAM,EACJ,QAAQ,IAAI,qCAAuC,OAW/C,EAAU,IAAI,EAcjB,CACD,8BAA+B,GAC/B,QAzBc,CACd,EACA,EACA,EACA,EACA,EACD,CAoBC,MAAO,EAAE,CACT,OAAQ,CACN,OAAQ,EAAQ,OAAO,OACvB,GAAI,EAAQ,OAAO,KAAO,CAAE,KAAM,EAAQ,OAAO,KAAa,CAAG,EAAE,CACnE,mBAAoB,EAAQ,OAAO,oBAAsB,GACzD,2BACE,EAAQ,OAAO,4BAA8B,GAC/C,cAAe,EAAQ,OAAO,eAAiB,KAChD,CACD,WAAY,CACV,kBAAmB,EAAQ,YAAY,mBAAqB,EAC5D,sBAAuB,EAAQ,YAAY,uBAAyB,GACrE,CACD,QAAS,CACP,QAAU,GACP,EAAQ,SAAS,iBAAmB,GAAQ,EAAY,EAAI,CAAG,GAClE,MAAO,EAAU,EAAO,IACtB,EAAa,GAAW,EAAM,IAAQ,CACpC,EAAQ,SAAS,aAAa,EAAI,WAAY,EAAI,KAAM,EAAI,EAC5D,CACL,CACF,CAAC,CAmCF,OAjCI,GACF,QAAQ,IAAI,+CAA+C,CAG7D,OAAO,QAAQA,EAAe,CAAC,SAAS,CAAC,EAAM,KAAU,CACnD,KAAC,KAAM,UAAU,CAAC,SAAS,EAAK,CAGpC,IAAI,OAAO,GAAS,WAClB,MAAU,MACR,yBAAyB,EAAK,oCAAoC,OAAO,IAC1E,CAEC,GACF,QAAQ,IAAI,uCAAuC,IAAO,CAE5D,EAAQ,cAAc,EAAa,GAAM,CAAC,GAC1C,CACF,EAAQ,cAAc,UAAW,EAAgB,CAEjD,EAAQ,UAAU,CAChB,OAAS,IAAO,EAAE,EACnB,CAAC,CAGF,EAAQ,aAAa,CACnB,OAAS,IAAO,EAAE,EACnB,CAAC,CAEE,GACF,QAAQ,IAAI,wCAAwC,CAG/C,EAgDT,SAAgB,EAAoB,EAAoB,EAAU,YAAa,CAC7E,MAAO,CACL,gBAAiB,GACjB,YACE,EACA,EACA,EACA,GAAG,IACA,GAGN"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lssm/lib.graphql-prisma",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Pothos + Prisma builder factory with injectable client/DMMF",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -9,12 +9,13 @@
9
9
  "README.md"
10
10
  ],
11
11
  "scripts": {
12
+ "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
12
13
  "build": "tsdown",
13
14
  "dev": "tsup --watch",
14
15
  "clean": "rm -rf dist"
15
16
  },
16
17
  "dependencies": {
17
- "@lssm/lib.schema": "^1.10.0",
18
+ "@lssm/lib.schema": "^1.11.0",
18
19
  "@pothos/core": "^4.9.1",
19
20
  "@pothos/plugin-complexity": "^4.1.2",
20
21
  "@pothos/plugin-dataloader": "^4.4.2",
@@ -28,7 +29,8 @@
28
29
  "graphql": ">=16.0.0"
29
30
  },
30
31
  "devDependencies": {
31
- "@lssm/tool.tsdown": "*",
32
+ "@lssm/tool.typescript": "0.11.0",
33
+ "@lssm/tool.tsdown": "0.12.0",
32
34
  "tsdown": "^0.16.6",
33
35
  "typescript": "^5.9.3"
34
36
  },
@@ -39,6 +41,7 @@
39
41
  "./*": "./*"
40
42
  },
41
43
  "publishConfig": {
44
+ "access": "public",
42
45
  "exports": {
43
46
  ".": "./dist/index.js",
44
47
  "./*": "./*"