Skip to content
ContractSpec
Start here

Package manual · platform

·Handlers, runtimes and transports

lib.graphql-prisma

Pothos + Prisma builder factory with injectable client/DMMF

platformlibraryv6.1.3stableservernode
@lssm-tech/lib.graphql-prisma
bun add @lssm-tech/lib.graphql-prisma
Package source ↗Manifest ↗

Manifest 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.ts is the root public barrel and package entrypoint.

Public Entry Points

  • Export . resolves through ./src/index.ts.

Local Commands

  • bun run dev — contractspec-bun-build dev
  • bun run build — contractspec-bun-build build
  • bun run typecheck — tsgo --noEmit
  • bun run publish:pkg — bun publish --tolerate-republish --ignore-scripts --verbose
  • bun run publish:pkg:canary — bun publish:pkg --tag canary
  • bun run clean — rm -rf dist
  • bun run prebuild — contractspec-bun-build prebuild
  • bun run build:bundle — contractspec-bun-build transpile
  • bun 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

THIS PACKAGElib.graphql-prisma2 import paths

Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.

10 declarations

  • @lssm-tech/lib.schema
  • @pothos/core

    catalog:graphql

  • @pothos/plugin-complexity

    catalog:graphql

  • @pothos/plugin-dataloader

    catalog:graphql

  • @pothos/plugin-prisma

    ^4.17.0

  • @pothos/plugin-relay

    catalog:graphql

Declared capabilities

Lib Graphql Prisma

Pothos + Prisma builder factory with injectable client/DMMF

Scripts

  • publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
  • publish:pkg:canarybun publish:pkg --tag canary
  • buildcontractspec-bun-build build
  • devcontractspec-bun-build dev
  • cleanrm -rf dist
  • prebuildcontractspec-bun-build prebuild
  • build:bundlecontractspec-bun-build transpile
  • build:typescontractspec-bun-build types
  • typechecktsgo --noEmit