-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 3.7 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
{
"name": "pix-api-data",
"type": "module",
"version": "0.11.2",
"license": "AGPL-3.0",
"engines": {
"node": "22.11.0",
"npm": "^10.7.0"
},
"scripts": {
"build": "tsc --project tsconfig.build.json",
"clean": "rm -rf node_modules build",
"db:new-migration": "npx knex --knexfile ./lib/common/db/knexfile_api.js migrate:make $migrationname",
"db:create": "tsx ./lib/common/db/create-database.js",
"db:delete": "tsx ./lib/common/db/drop-database.js",
"db:empty": "tsx ./lib/common/db/empty-database.js",
"db:migrate": "knex --knexfile ./lib/common/db/knexfile_api.js migrate:latest",
"db:rollback:latest": "knex --knexfile ./lib/common/db/knexfile_api.js migrate:down",
"db:prepare": "npm run db:delete && npm run db:create && npm run db:migrate",
"db:seed": "knex --knexfile ./lib/common/db/knexfile_api.js seed:run",
"db:reset": "npm run db:prepare && npm run db:seed",
"lint": "run-p --continue-on-error 'lint:!(fix)'",
"lint:fix": "run-p --continue-on-error lint:*:fix",
"lint:dependencies": "depcheck",
"lint:js": "eslint .",
"lint:js:fix": "npm run lint:js -- --fix",
"lint:js:uncached": "eslint .",
"postdeploy": "DEBUG=knex:* npm run db:migrate",
"preinstall": "npx check-engine",
"start": "tsx ./lib/index.ts",
"start:prod": "npm run build && node ./build/lib",
"start:watch": "tsx --watch ./lib/index.ts",
"test": "NODE_ENV=test npm run db:prepare && npm run test:api",
"test:api": "for testType in 'unit' 'integration' 'acceptance'; do npm run test:api:$testType || status=1 ; done ; exit $status",
"test:api:path": "NODE_ENV=test mocha --config .mocharc.json --exit --recursive --reporter=${MOCHA_REPORTER:-dot}",
"test:api:unit": "TEST_DATABASE_DATAMART_URL=postgres://should.not.reach.db.in.unit.tests TEST_DATABASE_API_URL=postgres://should.not.reach.db.in.unit.tests npm run test:api:path -- tests/unit",
"test:api:integration": "npm run test:api:path -- tests/integration",
"test:api:acceptance": "npm run test:api:path -- tests/acceptance",
"test:api:debug": "NODE_ENV=test mocha --inspect-brk=9229 --recursive --exit --reporter dot tests",
"test:api:watch": "NODE_ENV=test nodemon --exec 'mocha --recursive tests --reporter dot'",
"test:api:bail": "npm run test:api:unit -- --bail && npm run test:api:integration -- --bail && npm run test:api:acceptance -- --bail",
"test:lint": "npm test && npm run lint"
},
"dependencies": {
"@1024pix/oppsy": "^1.0.1",
"@hapi/boom": "^10.0.1",
"@hapi/hapi": "^21.3.2",
"@hapi/inert": "^7.0.0",
"@hapi/vision": "^7.0.0",
"@json2csv/node": "^7.0.6",
"bcrypt": "^5.1.0",
"dotenv": "^16.3.1",
"hapi-swagger": "^17.2.1",
"joi": "^17.13.3",
"jsonwebtoken": "^9.0.1",
"knex": "^3.0.0",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"ms": "^2.1.3",
"nodemon": "^3.0.1",
"papaparse": "^5.4.1",
"pg": "^8.11.1",
"pg-query-stream": "^4.6.0",
"pino": "^9.0.0",
"pino-pretty": "^13.0.0",
"yargs": "^17.7.2"
},
"devDependencies": {
"@antfu/eslint-config": "^3.0.0",
"@tsconfig/recommended": "^1.0.7",
"@types/bcrypt": "^5.0.0",
"@types/chai": "^5.0.0",
"@types/jsonwebtoken": "^9.0.2",
"@types/mocha": "^10.0.1",
"@types/node": "^22.0.0",
"@types/papaparse": "^5.3.7",
"@types/sinon": "^17.0.0",
"@types/sinon-chai": "^4.0.0",
"@types/yargs": "^17.0.24",
"chai": "^5.0.0",
"depcheck": "^1.4.3",
"eslint": "^9.0.0",
"eslint-plugin-format": "^0.1.2",
"eslint-plugin-mocha": "^10.1.0",
"mocha": "^10.2.0",
"npm-run-all2": "^7.0.0",
"sinon": "^19.0.0",
"sinon-chai": "^4.0.0",
"tsx": "^4.15.7",
"typescript": "^5.1.6"
}
}