This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
61 lines (61 loc) · 2.14 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
{
"name": "db",
"version": "0.0.0",
"private": true,
"type": "commonjs",
"types": "types.d.ts",
"scripts": {
"db:create": "babel-node --root-mode=upward -o .,../api -x .ts ./scripts/create.ts && knex migrate:latest",
"db:version": "knex migrate:currentVersion",
"db:change": "knex migrate:make",
"db:migrate": "knex migrate:latest",
"db:rollback": "knex migrate:rollback",
"db:seed": "knex seed:run",
"db:reset": "babel-node --root-mode=upward -o .,../api -x .ts ./scripts/reset.ts",
"db:reset-test": "knex migrate:rollback --env=test 001_initial && knex migrate:latest --env=test && yarn db:restore --env=test",
"db:reset-prod": "knex migrate:rollback --env=prod 001_initial && knex migrate:latest --env=prod && yarn db:restore --env=prod",
"db:backup": "babel-node --root-mode=upward -x .ts ./scripts/backup.ts",
"db:restore": "babel-node --root-mode=upward -x .ts ./scripts/restore.ts",
"db:import-seeds": "babel-node --root-mode=upward -o .,../api -x .ts ./scripts/import-seeds.ts",
"db:update-types": "babel-node --root-mode=upward -o .,../api -x .ts ./scripts/update-types.ts",
"db:repl": "babel-node --root-mode=upward -o .,../api -x .ts --experimental-repl-await ./scripts/repl.ts",
"db:psql": "babel-node --root-mode=upward -o .,../api -x .ts ./scripts/psql.ts"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/node": "^7.16.8",
"@babel/register": "^7.17.0",
"@faker-js/faker": "^6.0.0-beta.0",
"@types/babel__core": "^7.1.18",
"@types/cross-spawn": "^6.0.2",
"@types/lodash": "^4.14.179",
"@types/minimist": "^1.2.2",
"@types/prettier": "^2.4.4",
"chalk": "^4.1.2",
"cross-spawn": "^7.0.3",
"envars": "^0.4.0",
"knex": "^1.0.3",
"knex-types": "^0.3.2",
"lodash": "^4.17.21",
"minimist": "^1.2.5",
"nanoid": "^3.3.1",
"ora": "^5.4.1",
"pg": "^8.7.3",
"prettier": "^2.5.1"
},
"envars": {
"cwd": "../env"
},
"eslintConfig": {
"overrides": [
{
"files": [
"types.d.ts"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off"
}
}
]
}
}