-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
140 lines (140 loc) · 6.36 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"name": "sql-schema-control",
"author": "ehmpathy",
"description": "Declarative database schema management. Provision, track, sync, and modify your database schema with plain, version controlled, sql.",
"version": "1.5.4",
"license": "MIT",
"repository": "ehmpathy/sql-schema-control",
"homepage": "https://github.com/ehmpathy/sql-schema-control",
"keywords": [
"database",
"schema",
"migrations",
"sql",
"mysql",
"liquibase",
"db-migrate"
],
"bugs": "https://github.com/ehmpathy/sql-schema-control/issues",
"main": "dist/contract/index.js",
"types": "dist/index.d.ts",
"bin": {
"sql-schema-control": "./bin/run"
},
"engines": {
"node": ">=8.0.0"
},
"files": [
"/bin",
"/dist",
"/schema"
],
"oclif": {
"commands": "./dist/contract/commands",
"bin": "sql-schema-control",
"plugins": [
"@oclif/plugin-help"
]
},
"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'",
"provision:docker:mysql:down": "docker compose -f ./provision/docker/integration_test_db/mysql/docker-compose.yml down",
"provision:docker:mysql:up": "docker compose -f ./provision/docker/integration_test_db/mysql/docker-compose.yml up -d --force-recreate --build --renew-anon-volumes",
"provision:docker:mysql:await": "docker compose -f ./provision/docker/integration_test_db/mysql/docker-compose.yml exec -T mysql /root/wait-for-mysql.sh",
"provision:integration-test-db:mysql": "npm run provision:docker:mysql:up && npm run provision:docker:mysql:await",
"provision:docker:postgres:down": "docker compose -f ./provision/docker/integration_test_db/postgres/docker-compose.yml down",
"provision:docker:postgres:up": "docker compose -f ./provision/docker/integration_test_db/postgres/docker-compose.yml up -d --force-recreate --build --renew-anon-volumes",
"build:clean": "rm dist/ -rf",
"build:compile": "tsc -p ./tsconfig.build.json",
"build": "npm run build:clean && npm run build:compile",
"provision:docker:postgres:await": "docker compose -f ./provision/docker/integration_test_db/postgres/docker-compose.yml exec -T postgres /root/wait-for-postgres.sh",
"provision:docker:postgres:init": "docker compose -f ./provision/docker/integration_test_db/postgres/docker-compose.yml exec -T postgres /root/provision-init.sh",
"provision:integration-test-db:postgres": "npm run provision:docker:postgres:up && npm run provision:docker:postgres:await && npm run provision:docker:postgres:init",
"provision:integration-test-db": "npm run provision:integration-test-db:postgres && npm run provision:integration-test-db:mysql",
"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 --runInBand $([ -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 ] && npm run prepare:husky || exit 0",
"prepare:husky": "npx husky install && chmod ug+x .husky/*"
},
"dependencies": {
"@ehmpathy/error-fns": "1.0.2",
"@oclif/core": "2.0.11",
"@oclif/plugin-help": "^3.1.0",
"chalk": "^2.4.2",
"domain-objects": "0.22.1",
"indent-string": "^4.0.0",
"jest-diff": "^25.3.0",
"joi": "17.4.0",
"mysql2": "^3.11.0",
"oclif": "^3.3.1",
"pg": "^8.2.1",
"simple-sha256": "^1.0.0",
"sql-formatter": "^2.3.3",
"sql-strip-comments": "0.0.23",
"ts-node": "^10.9.1",
"uuid": "9.0.0",
"yaml": "^1.6.0",
"yesql": "^3.2.2"
},
"devDependencies": {
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "13.1.0",
"@oclif/dev-cli": "^1.22.2",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@tsconfig/node-lts-strictest": "18.12.1",
"@types/jest": "29.2.4",
"@types/joi": "^14.3.2",
"@types/pg": "^7.14.3",
"@types/sql-formatter": "^2.3.0",
"@types/uuid": "9.0.0",
"@types/yaml": "^1.0.2",
"@types/yesql": "^3.2.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.35.4",
"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",
"stdout-stderr": "^0.1.9",
"ts-jest": "29.1.3",
"ts-node": "10.9.2",
"typescript": "5.4.5",
"uuid": "^3.3.2"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}