eletrotupi / tcc/ api/package.json86b807288e7e3138f09761dcc61fdf84ba213b13
1.7 KB | 51 lines Raw
1
{
2
  "name": "orbit-api",
3
  "version": "0.0.0",
4
  "description": "",
5
  "license": "ISC",
6
  "author": "Pedro Lucas Porcellis <porcellis@eletrotupi.com>",
7
  "main": "src/index.ts",
8
  "directories": {
9
    "test": "tests"
10
  },
11
  "scripts": {
12
    "build": "tsc && tsc-alias",
13
    "start": "ts-node -r tsconfig-paths/register src/index.ts",
14
    "test": "npm run test:setup && NODE_ENV=test npx ava tests/database.test.ts",
15
    "test:setup": "npm run test:setup:generate && npm run test:setup:migrate",
16
    "test:setup:generate": "DATABASE_URL='postgres://user:password@orbit_db:5432/orbit_test' npx prisma generate",
17
    "test:setup:migrate": "DATABASE_URL='postgres://user:password@orbit_db:5432/orbit_test' npx prisma migrate deploy",
18
    "test:watch": "npm run test:setup && NODE_ENV=test npx ava --watch",
19
    "dev": "prisma generate && prisma migrate deploy && npm run start"
20
  },
21
  "dependencies": {
22
    "@prisma/adapter-better-sqlite3": "^7.5.0",
23
    "@prisma/adapter-pg": "^7.7.0",
24
    "@prisma/client": "^7.5.0",
25
    "@types/cors": "^2.8.19",
26
    "@types/jsonwebtoken": "^9.0.10",
27
    "bcryptjs": "^3.0.3",
28
    "better-sqlite3": "^12.5.0",
29
    "cors": "^2.8.6",
30
    "date-fns": "^4.1.0",
31
    "express": "^5.2.1",
32
    "jsonwebtoken": "^9.0.3",
33
    "morgan": "^1.10.1",
34
    "pg": "^8.20.0"
35
  },
36
  "devDependencies": {
37
    "@ava/typescript": "^6.0.0",
38
    "@types/better-sqlite3": "^7.6.13",
39
    "@types/express": "^5.0.6",
40
    "@types/morgan": "^1.9.10",
41
    "@types/node": "^25.5.2",
42
    "ava": "^6.4.1",
43
    "prisma": "^7.5.0",
44
    "supertest": "^7.1.4",
45
    "ts-node": "^10.9.2",
46
    "tsc-alias": "^1.8.16",
47
    "tsconfig-paths": "^4.2.0",
48
    "tsx": "^4.21.0",
49
    "typescript": "^6.0.2"
50
  }
51
}