package.json
{
"name": "@eturino/claims",
"version": "0.3.1",
"author": "Eduardo TuriƱo <eturino@eturino.com>",
"description": "Claim, ClaimSet and Ability for permissions (Typescript port of https://github.com/eturino/claims)",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
"module": "build/module/index.js",
"repository": "https://github.com/eturino/claims.ts",
"homepage": "https://github.com/eturino/claims.ts",
"bugs": "https://github.com/eturino/claims.ts/issues",
"license": "MIT",
"keywords": [
"claims",
"parmissions"
],
"lint-staged": {
"src/**/*.ts": [
"eslint --fix",
"prettier --write"
]
},
"scripts": {
"lint-staged": "lint-staged",
"prepare": "install-peers && husky install",
"install-peers": "install-peers -f",
"describe": "npm-scripts-info",
"build": "run-s clean && run-p build:*",
"build:main": "tsc -p tsconfig.json",
"build:module": "tsc -p tsconfig.module.json",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" --write",
"fix:eslint": "eslint \"src/**/*.ts\" --fix",
"type-check": "tsc --noEmit",
"test": "run-s build test:* type-check",
"test:eslint": "eslint \"src/**/*.ts\"",
"test:prettier": "prettier \"src/**/*.ts\" --list-different",
"test:unit": "jest --coverage --config=\"jest.config.js\"",
"cov": "run-s build cov:html && open-cli coverage/index.html",
"cov:html": "jest --coverage --config=\"jest.html.config.js\"",
"watch": "run-s clean build:main && run-p \"build:main -- -w\" \"test:unit -- --watch\"",
"doc": "run-s doc:html && open-cli build/docs/index.html",
"doc:html": "typedoc --theme default --exclude **/__tests__/**/* --out build/docs src/index.ts",
"doc:json": "typedoc --exclude **/__tests__/**/* --json build/docs/typedoc.json src/index.ts",
"doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs",
"version": "standard-version",
"reset": "git clean -dfx -e .idea && git reset --hard && yarn install",
"clean": "trash build test",
"prepare-release": "run-s reset install-peers test doc:html version doc:publish"
},
"scripts-info": {
"info": "Display information about the package scripts",
"build": "Clean and rebuild the project",
"fix": "Try to automatically fix any linting problems",
"test": "Lint and unit test the project",
"watch": "Watch and rebuild the project on save, then rerun relevant tests",
"doc": "Generate HTML API documentation and open it in a browser",
"doc:json": "Generate API documentation in typedoc JSON format",
"version": "Bump package.json version, update CHANGELOG.md, tag release",
"reset": "Delete all untracked files (except `.idea`) and reset the repo to the last commit",
"prepare-release": "One-step: clean, build, test, publish docs, and prep a release"
},
"engines": {
"node": ">=10.0"
},
"dependencies": {
"lodash": "^4.17.21"
},
"peerDependencies": {
"@eturino/key-set": "^5.6.0"
},
"devDependencies": {
"@bitjson/npm-scripts-info": "^1.0.0",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@types/jest": "^29.5.5",
"@types/lodash": "^4.14.198",
"@typescript-eslint/eslint-plugin": "^6.7.2",
"@typescript-eslint/parser": "^6.7.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-import": "^2.28.1",
"gh-pages": "^6.0.0",
"husky": "^8.0.3",
"install-peers-cli": "^2.2.0",
"jest": "^29.7.0",
"lint-staged": "^14.0.1",
"npm-run-all": "^4.1.5",
"open-cli": "^7.2.0",
"prettier": "^3.0.3",
"standard-version": "^9.5.0",
"trash-cli": "^5.0.0",
"ts-jest": "^29.1.1",
"ts-loader": "^9.4.4",
"ts-node": "^10.9.1",
"typedoc": "^0.25.1",
"typescript": "^5.2.2"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"volta": {
"node": "18.17.1",
"yarn": "1.22.19"
}
}