lib.graphql-prisma
Pothos + Prisma builder factory with injectable client/DMMF
@lssm-tech/lib.graphql-prismabun add @lssm-tech/lib.graphql-prismaManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
Pothos + Prisma builder factory with injectable client/DMMF.
What It Provides
- Layer: lib.
- Consumers: bundles with Prisma.
- Related ContractSpec packages include
@lssm-tech/lib.schema,@lssm-tech/tool.bun,@lssm-tech/tool.typescript. - Related ContractSpec packages include
@lssm-tech/lib.schema,@lssm-tech/tool.bun,@lssm-tech/tool.typescript.
Installation
npm install @lssm-tech/lib.graphql-prisma
or
bun add @lssm-tech/lib.graphql-prisma
Usage
Import the root entrypoint from @lssm-tech/lib.graphql-prisma, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Export
.resolves through./src/index.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— contractspec-bun-build buildbun run typecheck— tsgo --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run prebuild— contractspec-bun-build prebuildbun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build types
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Prisma client injection must stay lazy — eagerly importing the client breaks tree-shaking and test isolation.
- DMMF handling is version-sensitive; Prisma major upgrades require validation here first.
- Depends on graphql-core — keep builder factory usage aligned.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
10 declarations
@lssm-tech/lib.schemaworkspace:^
Read the package manual ↗@pothos/corecatalog:graphql
@pothos/plugin-complexitycatalog:graphql
@pothos/plugin-dataloadercatalog:graphql
@pothos/plugin-prisma^4.17.0
@pothos/plugin-relaycatalog:graphql
Declared capabilities
Pothos + Prisma builder factory with injectable client/DMMF
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build builddevcontractspec-bun-build devcleanrm -rf distprebuildcontractspec-bun-build prebuildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typestypechecktsgo --noEmit