UNPKG

declapract

Version:

A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.

135 lines (134 loc) 5.48 kB
{ "name": "declapract", "author": "ehmpathy", "description": "A tool to declaratively define best practices, maintainable evolve them, and scalably enforce them.", "version": "0.13.14", "repository": "ehmpathy/declapract", "homepage": "https://github.com/ehmpathy/declapract", "keywords": [ "declarative", "best", "practice", "best-practice", "best-practices", "maintainable", "scalable", "repository", "linting", "fix" ], "bugs": "https://github.com/ehmpathy/declapract/issues", "engines": { "node": ">=18.19.0" }, "types": "dist/contract/index.d.ts", "bin": { "declapract": "./bin/run" }, "files": [ "/bin", "/dist" ], "license": "MIT", "main": "dist/contract/index.js", "scripts": { "generate:cli-readme": "echo 'no oclif readme generation'", "build:ts": "tsc -p ./tsconfig.build.json", "commit:with-cli": "npx cz", "fix:format:biome": "biome check --write", "fix:format:terraform": "echo 'no terraform'", "fix:format": "npm run fix:format:biome", "fix:lint": "biome check --write", "provision:integration-test-db": "echo 'no integration test db'", "fix": "npm run fix:format && npm run fix:lint", "build:artifact": "echo 'no artifact'", "build:clean": "chmod -R u+w dist 2>/dev/null; rm -rf dist/", "build:compile": "tsc -p ./tsconfig.build.json && tsc-alias -p ./tsconfig.build.json", "build": "npm run build:clean && npm run build:compile && npm run build:complete --if-present", "test:commits": "LAST_TAG=$(git describe --tags --abbrev=0 @^ 2> /dev/null || git rev-list --max-parents=0 HEAD) && npx commitlint --from $LAST_TAG --to HEAD --verbose", "test:types": "tsc -p ./tsconfig.json --noEmit", "test:format:terraform": "echo 'no terraform'", "test:format:biome": "biome format", "test:format": "npm run test:format:biome", "test:lint:deps": "npx depcheck -c ./.depcheckrc.yml", "test:lint:biome": "biome check --diagnostic-level=error", "test:lint:biome:all": "biome check", "test:lint": "npm run test:lint:biome && npm run test:lint:deps", "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')", "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main') $([ -n $RESNAP ] && echo '--updateSnapshot')", "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')", "test": "npm run test:commits && npm run test:types && npm run test:format && npm run test:lint && npm run test:unit && npm run test:integration && npm run test:acceptance:locally", "test:acceptance": "npm run build && jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests $([ -n $RESNAP ] && echo '--updateSnapshot')", "prepush": "npm run test && npm run build", "prepublish": "npm run build", "preversion": "npm run prepush", "postversion": "git push origin HEAD --tags --no-verify", "prepare:husky": "husky install && chmod ug+x .husky/*", "prepare:rhachet": "rhachet init && rhachet roles link --repo ehmpathy --role mechanic && rhachet roles link --repo bhuild --role behaver && rhachet roles link --repo bhrain --role reviewer && rhachet roles init --role mechanic && rhachet roles init --role behaver", "prepare": "if [ -e .git ] && [ -z $CI ]; then npm run prepare:husky && npm run prepare:rhachet; fi" }, "dependencies": { "chalk": "2.4.2", "commander": "12.1.0", "cross-path-sort": "1.0.0", "domain-objects": "0.31.9", "expect": "29.4.3", "fast-glob": "3.2.2", "find-nearest-package-json": "2.0.1", "flat": "5.0.2", "helpful-errors": "1.5.3", "indent-string": "4.0.0", "jest-diff": "29.4.3", "joi": "17.4.0", "json5": "2.2.3", "lodash.uniqby": "4.7.0", "shelljs": "0.8.5", "simple-log-methods": "0.6.9", "tsx": "4.20.6", "type-fns": "1.21.0", "uuid": "9.0.0", "yaml": "1.6.0" }, "devDependencies": { "@biomejs/biome": "2.3.8", "@commitlint/cli": "19.5.0", "@commitlint/config-conventional": "19.5.0", "@swc/core": "1.15.3", "@swc/jest": "0.2.39", "@tsconfig/node20": "20.1.5", "@tsconfig/strictest": "2.0.5", "@types/flat": "5.0.2", "@types/jest": "30.0.0", "@types/joi": "17.2.3", "@types/lodash.uniqby": "4.7.7", "@types/node": "22.15.21", "@types/shelljs": "0.8.9", "@types/uuid": "9.0.0", "@types/yaml": "1.0.2", "cz-conventional-changelog": "3.3.0", "declapract": "0.13.11", "declapract-typescript-ehmpathy": "0.47.14", "declastruct": "1.7.3", "declastruct-github": "1.3.0", "depcheck": "1.4.3", "esbuild-register": "3.6.0", "husky": "8.0.3", "jest": "30.2.0", "rhachet": "1.19.12", "rhachet-roles-bhrain": "0.5.8", "rhachet-roles-bhuild": "0.5.1", "rhachet-roles-ehmpathy": "1.17.10", "test-fns": "1.4.2", "tsc-alias": "1.8.10", "tsx": "4.20.6", "typescript": "5.4.5", "uuid": "3.3.2", "yalc": "1.0.0-pre.53" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "packageManager": "pnpm@10.24.0" }