-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 2.88 KB
/
package.json
File metadata and controls
93 lines (93 loc) · 2.88 KB
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
{
"name": "@slashfi/query-builder",
"version": "0.1.0",
"description": "A type-safe SQL query builder for TypeScript with CockroachDB support",
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/slashfi/query-builder.git"
},
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"exports": {
".": {
"import": "./esm/index.js",
"require": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"./lib/functions": {
"import": "./esm/functions/index.js",
"require": "./lib/functions/index.js",
"types": "./lib/functions/index.d.ts"
},
"./lib/sql-string": {
"import": "./esm/sql-string/index.js",
"require": "./lib/sql-string/index.js",
"types": "./lib/sql-string/index.d.ts"
},
"./lib/*.js": {
"import": "./esm/*.js",
"require": "./lib/*.js",
"types": "./lib/*.d.ts"
},
"./lib/*": {
"import": "./esm/*.js",
"require": "./lib/*.js",
"types": "./lib/*.d.ts"
}
},
"files": [
"lib",
"esm",
"bin",
"src"
],
"bin": {
"qb": "./bin/qb"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:tsc",
"build:cjs": "swc src --out-dir lib",
"build:esm": "swc src --out-dir esm -C module.type=es6 && echo '{\"type\":\"module\"}' > esm/package.json",
"build:tsc": "tsc",
"clean": "rm -rf lib esm",
"prepublishOnly": "npm run build",
"format": "biome format .",
"format:fix": "biome format . --write",
"lint": "biome check .",
"lint:ci": "biome ci . && npm run lint",
"lint:fix": "biome check . --write",
"test": "vitest run",
"test:ci": "vitest run --exclude '**/examples/index-query-builder.test.ts' --exclude '**/examples/migrations.test.ts' --exclude '**/examples/sql-updates.test.ts' --exclude '**/introspection.test.ts' --exclude '**/run-in-transaction.test.ts'",
"test:all": "npm run db:up && npm run db:wait && vitest run; npm run db:down",
"db:up": "docker compose up -d",
"db:down": "docker compose down -v",
"db:wait": "echo 'Waiting for CockroachDB...' && until docker compose exec crdb curl -sf http://localhost:8080/health?ready=1 > /dev/null 2>&1; do sleep 1; done && echo 'CockroachDB ready'",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@sinclair/typebox": "~0.34.0",
"@swc-node/register": "~1.9.2",
"chalk": "^4.1.2",
"cmd-ts": "~0.13.0",
"glob": "~8.0.3",
"pg": "^8.11.3",
"typescript": "~5.9.2"
},
"devDependencies": {
"@biomejs/biome": "2.2.5",
"@swc/cli": "^0.1.62",
"@swc/core": "~1.4.17",
"@types/chalk": "~2.2.4",
"@types/glob": "~7.2.0",
"@types/node": "~22.13.14",
"@types/pg": "~8.11.0",
"vite": "^5.2.0",
"vite-tsconfig-paths": "~4.3.1",
"vitest": "^3.2.4"
}
}