{ "name": "@pothos/plugin-prisma", "version": "4.17.3", "description": "A Pothos plugin for more efficient integration with prisma", "main": "./lib/index.js", "types": "./dts/index.d.ts", "module": "./esm/index.js", "exports": { ".": { "import": { "default": "./esm/index.js" }, "require": { "types": "./dts/index.d.ts", "default": "./lib/index.js" } }, "./generated": { "import": { "types": "./esm/generated.d.ts", "default": "./esm/generated.js" }, "require": { "types": "./generated.d.ts", "default": "./generated.js" } } }, "scripts": { "generate": "prisma generate && prisma generate --schema=./tests/prisma-types-from-client/schema.prisma", "type": "tsc --project tsconfig.type.json && tsc --project tsconfig.missing-plugins.json && node tests/declarations/emit.mts tsc", "type:compat": "for v in 5.9.3 6.0.2; do for p in type missing-plugins; do echo \"typescript@$v tsconfig.$p.json\" && pnpm dlx --package=typescript@$v tsc --project tsconfig.$p.json --noEmit --composite false --incremental false || exit 1; done; echo \"typescript@$v declarations\" && node tests/declarations/emit.mts pnpm dlx --package=typescript@$v tsc || exit 1; done", "build": "pnpm build:clean && pnpm build:cjs && pnpm build:dts && pnpm build:esm", "build:clean": "git clean -dfX esm lib", "build:cjs": "swc src -d lib --config-file ../../.swcrc -C module.type=commonjs --strip-leading-paths", "build:esm": "cp -r dts/* esm/ && swc src -d esm --config-file ../../.swcrc -C module.type=es6 --strip-leading-paths", "build:dts": "tsc", "test": "pnpm vitest run" }, "repository": { "type": "git", "url": "git+https://github.com/hayes/pothos.git", "directory": "packages/plugin-prisma" }, "bin": { "prisma-pothos-types": "./bin/generator.js" }, "author": "Michael Hayes", "license": "ISC", "keywords": [ "pothos", "graphql", "schema", "typescript", "prisma", "db", "postgres", "mysql", "sql", "sqlite", "mongo" ], "publishConfig": { "access": "public", "provenance": true }, "dependencies": { "@pothos/selection-mapper": "workspace:*", "@prisma/generator-helper": "^7.7.0" }, "prisma": { "seed": "node prisma/seed.mjs" }, "peerDependencies": { "@pothos/core": "*", "@prisma/client": "*", "graphql": "^16.10.0 || ^17.0.0" }, "devDependencies": { "@graphql-tools/executor": "^1.5.2", "@pothos/core": "workspace:*", "@pothos/plugin-complexity": "workspace:*", "@pothos/plugin-errors": "workspace:*", "@pothos/plugin-relay": "workspace:*", "@pothos/plugin-simple-objects": "workspace:*", "@pothos/test-utils": "workspace:*", "@prisma/adapter-better-sqlite3": "^7.7.0", "@prisma/client": "^7.7.0", "@prisma/client-runtime-utils": "7.7.0", "graphql-scalars": "^1.25.0", "graphql-tag": "^2.12.6", "prisma": "^7.7.0", "vitest": "^4.1.4" } }