@decaf-ts/db-decorators
Version:
Agnostic database decorators and repository
88 lines (87 loc) • 4.48 kB
JSON
{
"name": "@decaf-ts/db-decorators",
"version": "0.8.19",
"description": "Agnostic database decorators and repository",
"type": "module",
"exports": {
"require": "./lib/index.cjs",
"import": "./lib/esm/index.js"
},
"types": "lib/index.d.ts",
"scripts": {
"do-install": "NPM_TOKEN=$(cat .npmtoken) npm install",
"update-dependencies": "PREFIX=\"decaf-ts\"; npm ls | grep \"$PREFIX\" | awk -F/ '{print $NF}' | sed 's/@.*//' | xargs -I package npm update @\"$PREFIX\"/package",
"update-scripts": "npx update-scripts",
"on-first-run": "npx update-scripts --boot",
"set-git-auth": "git config url.\"https://api:$(cat .token)@github.com/\".insteadOf \"https://github.com/\" && git config url.\"https://ssh:$(cat .token)@github.com/\".insteadOf \"ssh://git@github.com/\" && git config url.\"https://git:$(cat .token)@github.com/\".insteadOf \"git@github.com:\"",
"flash-forward": "npx npm-check-updates -u && npm run do-install",
"reset": "rm -rf * && git checkout . && git pull && npm run do-install",
"build": "npx build-scripts --dev",
"build:prod": "npx build-scripts --prod",
"test": "jest --runInBand --coverage --detectOpenHandles",
"test:unit": "jest --testPathPattern=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
"test:integration": "jest --testPathPattern=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
"test:all": "jest --testPathPattern=\"/tests\" --passWithNoTests --detectOpenHandles",
"test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts",
"coverage": "rimraf ./workdocs/reports/data/*.json && npm run test:all -- --coverage --config=./workdocs/reports/jest.coverage.config.ts",
"lint": "eslint .",
"lint-fix": "eslint --fix .",
"prepare-pr": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs",
"prepare-release": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs",
"release": "./bin/tag-release.sh",
"clean-publish": "npx clean-publish",
"drawings": "for FILE in workdocs/drawings/*.drawio; do echo \"converting $FILE to image...\" && docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE; done && cp -rf workdocs/drawings/export/* workdocs/resources/",
"uml": "cd workdocs/uml && for FILE in ./*.puml; do docker run --rm -v $(pwd):/work -w /work miy4/plantuml -DPLANTUML_LIMIT_SIZE=8192 -tpng $FILE; done && cd ../.. && cp -fr workdocs/uml/*.png workdocs/resources/",
"docs": "npx rimraf ./docs && mkdir docs && npx build-scripts --docs",
"publish-docs": "docker run -it --rm --user $(id -u):$(id -g) -v \"$(pwd)/workdocs/confluence:/content\" -e ATLASSIAN_API_TOKEN=$(cat .confluence-token) ghcr.io/markdown-confluence/publish:latest",
"repo:init": "npm run codex -- \"$(cat ./workdocs/ai/repo-setup.md)\nbase_path is `./`, initialize the repository\"",
"repo:setup": "npm run codex -- \"$(cat ./workdocs/ai/repo-setup.md)\nbase_path is ./\"",
"repo:doc": "npm run codex -- \"$(cat ./workdocs/ai/doc.md) $(cat ./workdocs/ai/bulk-docs.md)\nbase_path is ./\"",
"repo:tests": "npm run codex -- \"$(cat ./workdocs/ai/bulk-tests.md)\nbase_path is ./ and coverage is 95%\"",
"repo:notes": "npm run codex -- \"$(cat ./workdocs/ai/release-notes.md)\nbase_path is ./\"",
"repo:readme": "npm run codex -- \"$(cat ./workdocs/ai/update-readme.md)\nbase_path is ./\"",
"repo:pr": "npm run repo:doc && npm run repo:tests && npm run repo:notes && npm run repo:readme",
"codex": "codex -s workspace-write exec"
},
"repository": {
"type": "git",
"url": "git+https://github.com/decaf-ts/db-decorators.git"
},
"engines": {
"node": ">=20.0.0",
"npm": ">=10.0.0"
},
"files": [
"lib",
"dist",
"workdocs/assets/slogans.json"
],
"keywords": [
"database",
"decorators",
"orm",
"repository",
"types",
"crud",
"decaf",
"typescript",
"hooks",
"persistence",
"model"
],
"author": "Tiago Venceslau and Contributors",
"license": "MIT",
"bugs": {
"url": "https://github.com/decaf-ts/db-decorators/issues"
},
"homepage": "https://github.com/decaf-ts/db-decorators#readme",
"devDependencies": {
"@decaf-ts/utils": "latest"
},
"dependencies": {
"@decaf-ts/decoration": "latest",
"@decaf-ts/decorator-validation": "latest",
"@decaf-ts/injectable-decorators": "latest",
"@decaf-ts/logging": "latest"
}
}