UNPKG

@tsed/prisma

Version:

Generate Ts.ED JsonSchema based on Prisma models

83 lines 2.62 kB
{ "name": "@tsed/prisma", "description": "Generate Ts.ED JsonSchema based on Prisma models", "type": "module", "version": "8.28.2", "source": "./src/index.ts", "main": "./lib/esm/index.js", "module": "./lib/esm/index.js", "typings": "./lib/types/index.d.ts", "exports": { ".": { "tsed-source": "./src/index.ts", "types": "./lib/types/index.d.ts", "import": "./lib/esm/index.js", "default": "./lib/esm/index.js" } }, "bin": { "tsed-prisma": "lib/esm/generator.js", "tsed-prisma-esm": "lib/esm/generator.js" }, "scripts": { "prebuild": "cd ../../core && yarn build", "build": "rm -rf lib && yarn build:ts && monorepo build-hybrid", "build:ts": "tsc --build tsconfig.esm.json", "test": "vitest run", "generate:enums": "yarn build && cd test/enums && DATABASE_URL=postgres://localhost:8000/db prisma generate", "generate:postgres:esm": "yarn build && cd test/postgres-esm && DATABASE_URL=postgres://localhost:8000/db prisma generate", "generate:mongo:esm": "yarn build && cd test/mongo-esm && DATABASE_URL=postgres://localhost:8000/db prisma generate", "generate:circular:esm": "yarn build && cd test/circular-ref && DATABASE_URL=postgres://localhost:8000/db prisma generate", "test:ci": "vitest run --coverage.thresholds.autoUpdate=true" }, "dependencies": { "@prisma/generator-helper": "^7.3.0", "@prisma/internals": "^7.3.0", "change-case": "^5.4.4", "fs-extra": "^11.2.0", "pluralize": "^8.0.0", "ts-morph": "^12.2.0", "tslib": ">=2.7.0" }, "devDependencies": { "@prisma/client": "^7.3.0", "@tsed/barrels": "8.28.2", "@tsed/core": "8.28.2", "@tsed/di": "8.28.2", "@tsed/json-mapper": "8.28.2", "@tsed/monorepo-utils": "3.0.0", "@tsed/schema": "8.28.2", "@tsed/typescript": "8.28.2", "@types/change-case": "^2.3.1", "@types/pluralize": "0.0.33", "eslint": "9.12.0", "prisma": "^7.3.0", "typescript": "6.0.2", "vitest": "4.1.4" }, "peerDependencies": { "@prisma/client": ">=6.0.0", "@tsed/core": ">=8.0.0", "@tsed/di": ">=8.0.0", "@tsed/json-mapper": ">=8.0.0", "@tsed/schema": ">=8.0.0" }, "keywords": [ "TypeScript", "decorators", "models", "json schema", "JsonSchema", "class", "classes", "tsed", "prisma" ], "repository": "https://github.com/tsedio/tsed", "bugs": { "url": "https://github.com/tsedio/tsed/issues" }, "homepage": "https://github.com/tsedio/tsed/tree/production/packages/orm/prisma", "author": "Romain Lenzotti", "license": "MIT" }