packages/casl-angular/package.json
{
"name": "@casl/angular",
"version": "8.2.8",
"description": "Angular module for CASL which makes it easy to add permissions in any Angular app",
"main": "dist/umd/index.js",
"module": "dist/es5m/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/umd/index.js"
}
},
"repository": {
"type": "git",
"url": "https://github.com/stalniy/casl.git",
"directory": "packages/casl-angular"
},
"homepage": "https://casl.js.org",
"publishConfig": {
"access": "public"
},
"scripts": {
"prebuild": "rm -rf dist/*",
"build": "npm run build.types && npm run build.es5m && npm run build.es6 && npm run build.umd",
"build.es5m": "TARGET=es5 BUILD=es5m npm run rollup",
"build.es6": "TARGET=es2015 BUILD=es6m npm run rollup",
"build.umd": "TARGET=es5 BUILD=umd npm run rollup",
"build.types": "ngc -p tsconfig.types.json && rm -rf dist/types/*.js",
"prerollup": "ngc -p tsconfig.build.json --target $TARGET --outDir dist/$BUILD/tmp",
"rollup": "IGNORE_SUBPATH=1 LIB_MINIFY=false BUILD_TYPES=$BUILD ES_TRANSFORM=false dx rollup -i dist/$BUILD/tmp/index.js -n casl.ng -g @angular/core:ng.core,@casl/ability:casl,tslib:tslib,rxjs:rxjs",
"postrollup": "rm -rf dist/$BUILD/tmp",
"test": "dx jest --config ./jest.config.js",
"lint": "dx eslint src/ spec/",
"prerelease": "npm run lint && NODE_ENV=production npm run build && npm test",
"release": "dx semantic-release"
},
"keywords": [
"casl",
"angular",
"authorization",
"acl",
"permissions"
],
"author": "Sergii Stotskyi <sergiy.stotskiy@gmail.com>",
"license": "MIT",
"peerDependencies": {
"@angular/core": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
"@casl/ability": "^3.0.0 || ^4.0.0 || ^5.1.0 || ^6.0.0",
"rxjs": "^7.5.5",
"tslib": "^2.0.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^18.0.0",
"@angular/common": "^18.0.0",
"@angular/compiler": "^18.0.0",
"@angular/compiler-cli": "^18.0.0",
"@angular/core": "^18.0.0",
"@angular/platform-browser": "^18.0.0",
"@angular/platform-browser-dynamic": "^18.0.0",
"@casl/ability": "^6.0.0",
"@casl/dx": "workspace:^1.0.0",
"@types/jest": "^29.0.0",
"jest": "^29.0.0",
"jest-preset-angular": "^14.0.0",
"rxjs": "^7.5.5",
"tslib": "^2.0.0",
"typescript": "~5.5.0",
"zone.js": "~0.15.0"
},
"files": [
"dist",
"*.d.ts"
]
}