stalniy/casl

View on GitHub
packages/casl-prisma/package.json

Summary

Maintainability
Test Coverage
{
  "name": "@casl/prisma",
  "version": "1.5.1",
  "description": "Allows to query accessible records using Prisma client based on CASL rules",
  "main": "dist/es6c/index.js",
  "es2015": "dist/es6m/index.mjs",
  "typings": "dist/types/index.d.ts",
  "exports": {
    ".": {
      "types": "./dist/types/index.d.ts",
      "import": "./dist/es6m/index.mjs",
      "require": "./dist/es6c/index.js"
    },
    "./runtime": {
      "types": "./dist/types/runtime.d.ts",
      "import": "./dist/es6m/runtime.mjs",
      "require": "./dist/es6c/runtime.js"
    }
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/stalniy/casl.git",
    "directory": "packages/casl-prisma"
  },
  "publishConfig": {
    "access": "public"
  },
  "homepage": "https://casl.js.org",
  "scripts": {
    "build.prepare": "rm -rf dist/* && npm run build.types && npm run build.runtime",
    "build.runtime": "BUILD_TYPES=es6m,es6c dx rollup -i src/runtime.ts -e @casl/ability/extra,@casl/ability,@prisma/client,@ucast/core,@ucast/js",
    "build": "npm run build.prepare && BUILD_TYPES=es6m,es6c dx rollup -e @casl/ability/extra,@casl/ability,@prisma/client,@ucast/core,@ucast/js,./runtime",
    "build.types": "dx tsc",
    "lint": "dx eslint src/ spec/",
    "test": "dx jest",
    "release.prepare": "npm run lint && npm test && NODE_ENV=production npm run build",
    "release": "npm run release.prepare && dx semantic-release",
    "prepare": "prisma generate"
  },
  "keywords": [
    "casl",
    "sql",
    "authorization",
    "acl",
    "permissions"
  ],
  "author": "Sergii Stotskyi <sergiy.stotskiy@gmail.com>",
  "license": "MIT",
  "peerDependencies": {
    "@casl/ability": "^5.3.0 || ^6.0.0",
    "@prisma/client": "^2.14.0 || ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0"
  },
  "devDependencies": {
    "@casl/ability": "^6.0.0",
    "@casl/dx": "workspace:^1.0.0",
    "@prisma/client": "^6.0.0",
    "@types/jest": "^29.0.0",
    "prisma": "^6.0.0"
  },
  "files": [
    "dist",
    "*.d.ts",
    "runtime.js"
  ],
  "dependencies": {
    "@ucast/core": "^1.10.0",
    "@ucast/js": "^3.0.1"
  }
}