@transactional/prisma
Version:
"@transactional/prisma" is an npm package that offers a "@Transactional" method decorator for running your queries inside a transaction seamlessly. It achieves this by leveraging AsyncLocalStorage.
44 lines (43 loc) • 1.4 kB
JSON
{
"name": "@transactional/prisma",
"version": "1.2.0",
"description": "\"@transactional/prisma\" is an npm package that offers a \"@Transactional\" method decorator for running your queries inside a transaction seamlessly. It achieves this by leveraging AsyncLocalStorage.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"test:postgres:setup": "npm exec prisma migrate deploy -- --schema ./test/postgres/prisma/schema.prisma && npm exec prisma generate -- --schema ./test/postgres/prisma/schema.prisma",
"test": "node --require ts-node/register ./test/index.ts",
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.build.json"
},
"keywords": [
"prisma",
"transactional"
],
"repository": {
"type": "git",
"url": "git+https://github.com/Yamanlk/transactional-prisma.git"
},
"bugs": {
"email": "yamanlakis@gmail.com",
"url": "https://github.com/Yamanlk/transactional-prisma/issues"
},
"homepage": "https://github.com/Yamanlk/transactional-prisma",
"files": [
"dist"
],
"author": "Yaman Lakis",
"license": "ISC",
"devDependencies": {
"@types/node": "^20.7.1",
"glob": "^10.3.10",
"prisma": "^6.0.0",
"rimraf": "^5.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.2.2"
},
"peerDependencies": {
"@prisma/client": "^6.0.0",
"@transactional/core": "^1.2.0"
}
}