UNPKG

sql-code-generator

Version:

Generate code from your SQL schema and queries for type safety and development speed.

130 lines (129 loc) 5.13 kB
{ "name": "sql-code-generator", "author": "ehmpathy", "description": "Generate code from your SQL schema and queries for type safety and development speed.", "version": "0.10.1", "repository": "ehmpathy/sql-code-generator", "homepage": "https://github.com/ehmpathy/sql-code-generator", "keywords": [ "database", "schema", "sql", "typescript", "generator", "client", "types" ], "bugs": "https://github.com/ehmpathy/sql-code-generator/issues", "engines": { "node": ">=8.0.0" }, "oclif": { "commands": "./dist/contract/commands", "bin": "sql-code-generator", "plugins": [ "@oclif/plugin-help" ] }, "types": "dist/index.d.ts", "bin": { "sql-code-generator": "./bin/run" }, "files": [ "/bin", "/dist", "/schema" ], "license": "MIT", "main": "dist/contract/index.js", "scripts": { "generate:cli-readme": "npm run build && oclif-dev readme", "build:ts": "tsc -p ./tsconfig.build.json", "commit:with-cli": "npx cz", "fix:format:prettier": "prettier --write '**/*.ts' --config ./prettier.config.js", "fix:format:terraform": "echo 'no terraform'", "fix:format": "npm run fix:format:prettier", "fix:lint": "eslint -c ./.eslintrc.js src/**/*.ts --fix", "build:artifact": "echo 'no artifact'", "build:clean": "rm dist/ -rf", "build:compile": "tsc -p ./tsconfig.build.json", "build": "npm run build:clean && npm run build:compile", "provision:docker:up": "docker-compose -f ./provision/docker/integration_test_db/docker-compose.yml up -d --force-recreate --renew-anon-volumes", "provision:docker:await": "docker-compose -f ./provision/docker/integration_test_db/docker-compose.yml exec -T mysql /root/wait-for-mysql.sh", "provision:integration-test-db": "npm run provision:docker:up && npm run provision:docker:await", "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.build.json --noEmit", "test:format:prettier": "prettier --parser typescript --check 'src/**/*.ts' --config ./prettier.config.js", "test:format:terraform": "echo 'no terraform'", "test:format": "npm run test:format:prettier", "test:lint:deps": "npx depcheck -c ./depcheckrc.yml", "test:lint:eslint": "eslint -c ./.eslintrc.js src/**/*.ts", "test:lint": "npm run test:lint:eslint && npm run test:lint:deps", "test:unit": "jest -c ./jest.unit.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')", "test:integration": "jest -c ./jest.integration.config.ts --forceExit --verbose --passWithNoTests $([ -z $THOROUGH ] && echo '--changedSince=main')", "test:acceptance:locally": "npm run build && LOCALLY=true jest -c ./jest.acceptance.config.ts --forceExit --verbose --runInBand --passWithNoTests", "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", "prepush": "npm run test && npm run build", "prepublish": "npm run build", "preversion": "npm run prepush", "postversion": "git push origin HEAD --tags --no-verify", "postinstall": "[ -d .git ] && npx husky install || exit 0" }, "dependencies": { "@ehmpathy/error-fns": "1.0.2", "@oclif/core": "2.0.11", "@oclif/plugin-help": "3.3.1", "chalk": "2.4.2", "change-case": "4.1.1", "domain-objects": "0.22.1", "fast-glob": "3.2.2", "joi": "17.4.0", "oclif": "3.3.1", "pascal-case": "3.1.2", "sql-strip-comments": "0.0.23", "type-fns": "1.16.0", "uuid": "9.0.0", "yaml": "1.6.0" }, "devDependencies": { "@commitlint/cli": "19.3.0", "@commitlint/config-conventional": "13.1.0", "@oclif/dev-cli": "1.26.10", "@trivago/prettier-plugin-sort-imports": "4.3.0", "@tsconfig/node-lts-strictest": "18.12.1", "@types/change-case": "2.3.1", "@types/jest": "29.2.4", "@types/joi": "14.3.2", "@types/uuid": "9.0.0", "@types/yaml": "1.0.2", "@types/yesql": "4.1.1", "@typescript-eslint/eslint-plugin": "7.8.0", "@typescript-eslint/parser": "7.8.0", "core-js": "3.26.1", "cz-conventional-changelog": "3.3.0", "declapract": "0.11.5", "declapract-typescript-ehmpathy": "0.33.6", "depcheck": "1.4.3", "eslint": "8.56.0", "eslint-config-airbnb-typescript": "18.0.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.26.0", "eslint-plugin-prettier": "4.2.1", "husky": "8.0.3", "jest": "29.3.1", "prettier": "2.8.1", "test-fns": "1.4.0", "ts-jest": "29.1.3", "ts-node": "10.9.2", "typescript": "5.4.5" }, "peerDependencies": { "yesql": "3.2.2" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } } }