-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
190 lines (190 loc) · 6.85 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"name": "lookup-service",
"version": "5.0.1",
"main": "server.js",
"homepage": "https://github.com/politics-rewired/switchboard",
"repository": {
"type": "git",
"url": "git+https://github.com/politics-rewired/switchboard.git"
},
"bugs": {
"url": "https://github.com/politics-rewired/switchboard/issues"
},
"author": "ben-pr-p <[email protected]>",
"scripts": {
"dev": "NODE_ENV=development yarn tsnode ./src/server.ts",
"dev:watch": "NODE_ENV=development nodemon -w ./src --exec yarn tsnode ./src/server.ts",
"migrate:worker": "yarn tsnode ./src/dev-tools/migrate-worker.ts",
"test": "run-s test:*",
"test:lint": "tslint --project . && prettier --no-editorconfig \"src/**/*.ts\" --list-different",
"test:unit": "NODE_ENV=test jest --forceExit --detectOpenHandles",
"build": "tsc",
"majestic": "majestic",
"migrate": "NODE_ENV=${NODE_ENV:-development} dotenv -- db-migrate",
"remigrate": "NODE_ENV=${NODE_ENV:-development} dotenv -- db-migrate reset && db-migrate up",
"bootstrap-db": "yarn migrate:worker && yarn migrate up",
"heroku-postbuild": "npm run build",
"start": "MODE=DUAL node ./dist/src/server.js",
"start-server": "MODE=SERVER node ./dist/src/server.js",
"start-worker": "MODE=WORKER node ./dist/src/server.js",
"commit": "git-cz",
"commit:retry": "git-cz --retry",
"danger": "danger",
"release": "standard-version",
"fix": "run-s fix:*",
"fix:prettier": "prettier --no-editorconfig \"src/**/*.ts\" --write",
"fix:tslint": "tslint --fix --project .",
"update-dump": "./update-dump.sh",
"build-docker": "docker build . -t us-east4-docker.pkg.dev/assemble-services/switchboard/core:$(git rev-parse HEAD)",
"push-docker": "docker push us-east4-docker.pkg.dev/assemble-services/switchboard/core:$(git rev-parse HEAD)",
"codegen:pg": "dotenv -- bash -c 'yarn schemats postgres \"$POSTGRES_URL\" -s sms --no-write-header --no-throw-on-missing-type -e -o src/lib/db-types.ts'",
"tsnode": "ts-node --project tsconfig.json --files"
},
"scripts-info": {
"dev": "NODE_ENV=development yarn tsnode ./src/server.ts",
"dev:watch": "NODE_ENV=development nodemon -r ts-node/register ./src/server.ts",
"migrate:worker": "yarn tsnode ./src/dev-tools/migrate-worker.ts",
"migrate": "db-migrate",
"remigrate": "Run all down migrations followed by all up migrations",
"bootstrap-db": "yarn migrate:worker && yarn migrate up",
"start": "MODE=DUAL node ./dist/src/server.js",
"start-server": "MODE=SERVER node ./dist/src/server.js",
"start-worker": "MODE=WORKER node ./dist/src/server.js",
"commit": "git-cz",
"commit:retry": "git-cz --retry",
"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",
"cov": "Rebuild, run tests, then create and open the coverage report",
"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 and reset the repo to the last commit",
"prepare-release": "One-step: clean, build, test, publish docs, and prep a release"
},
"engines": {
"node": ">=16"
},
"dependencies": {
"@bandwidth/messaging": "^4.0.3",
"@bandwidth/numbers": "^1.9.0",
"@graphile-contrib/pg-simplify-inflector": "^5.0.0-beta.1",
"@rewired/telnyx-10dlc": "^1.1.0",
"@supercharge/promise-pool": "^1.5.0",
"@trt2/gsm-charset-utils": "^1.0.13",
"@types/db-migrate-base": "^0.0.10",
"@vramework/schemats": "^1.0.5",
"body-parser": "^1.19.0",
"body-parser-xml": "^2.0.3",
"connect-datadog-graphql": "^0.0.12",
"cors": "^2.8.5",
"cryptr": "^4.0.2",
"db-migrate": "^0.11.13",
"db-migrate-pg": "^1.2.2",
"envalid": "^5.0.0",
"express": "^4.17.1",
"express-winston": "^3.3.0",
"faker": "^4.1.0",
"google-libphonenumber": "^3.2.2",
"graphile-build": "^4.12.2",
"graphile-build-pg": "^4.12.2",
"graphile-utils": "^4.12.2",
"graphile-worker": "^0.14.0-rc.0",
"graphile-worker-rate-limiter": "^1.0.2",
"graphql": "^15.8.0",
"hot-shots": "^7.6.0",
"ioredis": "^5.2.3",
"ioredis-mock": "^8.2.2",
"lodash": "^4.17.11",
"majestic": "^1.6.0",
"memoizee": "^0.4.14",
"pg": "^8.7.3",
"pg-connection-string": "^2.5.0",
"postgraphile": "^4.12.8",
"promise-retry": "^2.0.1",
"redis-lock": "^0.1.4",
"slonik": "^27.1.0",
"superagent": "^5.0.6",
"supertest": "^4.0.2",
"telnyx": "^1.7.2",
"twilio": "^4.18.1",
"us-zips": "^2021.11.4",
"winston": "^3.2.1",
"xml2js": "^0.4.23",
"yargs": "^15.3.1",
"zip-state": "^1.0.1",
"zod": "^3.21.4"
},
"devDependencies": {
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@rewired/commitlint-circle": "^3.1.1",
"@types/cors": "^2.8.13",
"@types/cryptr": "^4.0.0",
"@types/express": "^4.17.17",
"@types/express-winston": "^3.0.4",
"@types/faker": "^4.1.5",
"@types/google-libphonenumber": "^7.4.23",
"@types/ioredis": "^4.28.10",
"@types/ioredis-mock": "^8.2.2",
"@types/jest": "^25.2.1",
"@types/lodash": "^4.14.135",
"@types/memoizee": "^0.4.8",
"@types/nock": "^11.1.0",
"@types/node": "^16.14",
"@types/pg": "^8.6.4",
"@types/promise-retry": "^1.1.3",
"@types/slonik": "^18.6.1",
"@types/superagent": "^4.1.3",
"@types/supertest": "^2.0.8",
"@types/winston": "^2.4.4",
"@types/xml2js": "^0.4.11",
"assemble-numbers-client": "^1.2.1",
"commitizen": "^4.0.3",
"danger": "^10.6.6",
"dotenv-cli": "^3.2.0",
"husky": "^4.2.3",
"jest": "^25.5.4",
"lint-staged": "^10.1.2",
"nock": "^11.3.5",
"nodemon": "^2.0.15",
"npm-run-all": "^4.1.5",
"parse-multipart-data": "^1.2.0",
"prettier": "^2.3.2",
"standard-version": "^7.1.0",
"superagent-graphql": "^0.1.2",
"ts-jest": "^25.5.1",
"ts-node": "^10.9.1",
"tslint": "^5.20.0",
"tslint-config-airbnb": "^5.11.1",
"tslint-config-prettier": "^1.18.0",
"typedoc": "^0.15.0",
"typescript": "^4.6.2"
},
"resolutions": {
"ioredis": "^5.2.3"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged",
"pre-push": "danger local --base main --failOnErrors --dangerfile dangerfile.ts"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"tslint --fix",
"prettier --write"
],
"*.{css,json,md}": [
"prettier --write"
]
}
}