-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
93 lines (93 loc) · 3.23 KB
/
package.json
File metadata and controls
93 lines (93 loc) · 3.23 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": "@schemavaults/dbh",
"version": "0.8.7",
"description": "Easily connect to PostgresDB from serverless environment",
"license": "UNLICENSED",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/schemavaults/dbh.git"
},
"bin": {
"dbh": "dist-cli/cli.js"
},
"dependencies": {
"kysely": "0.28.10",
"kysely-neon": "1.3.0",
"@neondatabase/serverless": "1.0.1"
},
"devDependencies": {
"typescript": "5.9.3",
"bun-types": "1.3.6",
"tsc-alias": "1.8.16",
"eslint": "9.39.1",
"@eslint/js": "9.39.1",
"globals": "16.5.0",
"@typescript-eslint/eslint-plugin": "8.48.1",
"@typescript-eslint/parser": "8.48.1",
"commander": "14.0.3"
},
"scripts": {
"build": "bun run build:pkg && bun run build:build-db-migrations && bun run build:cli",
"postbuild": "bun run cleanup",
"build:pkg": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json",
"build:cli": "bun build ./src/cli.ts --outdir dist-cli --format esm --target node --minify && echo '#!/usr/bin/env node' | cat - dist-cli/cli.js > dist-cli/cli.tmp && mv dist-cli/cli.tmp dist-cli/cli.js",
"build:build-db-migrations": "bun build ./src/build-db-migrations.ts --outdir dist-cli --format esm --target bun --minify",
"test:unit": "bun test --test-name-pattern 'DBH Init'",
"test": "bun run test:unit",
"test:e2e": "bun test ./src/tests/e2e/ConnectToLocalDatabase.test.ts && bun test ./src/tests/e2e/MigrateUpAndDown.test.ts",
"test:e2e:cli": "/bin/bash ./tests/run_cli_e2e_tests.sh",
"test:build-db-migrations": "/bin/bash ./tests/run_build_example_migrations_test.sh",
"cleanup:compiled_tests_in_dist_directory": "find ./dist -type f \\( -name \"*.test.js\" -o -name \"*.test.js.map\" -o -name \"*.test.d.ts\" \\) -delete",
"cleanup:rm_tests_dir": "rm -rf ./dist/tests",
"cleanup:rm_cli_js_artifacts": "rm -rf ./dist/cli.js && rm -rf ./dist/cli.js.map",
"cleanup": "bun run cleanup:compiled_tests_in_dist_directory && bun run cleanup:rm_tests_dir && bun run cleanup:rm_cli_js_artifacts",
"version": "bun run ./scripts/package_version.ts",
"lint": "eslint src",
"cli": "bun run ./src/cli.ts"
},
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"publishConfig": {
"access": "public"
},
"packageManager": "bun@1.3.6",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./dist/*": {
"types": "./dist/*",
"import": "./dist/*",
"require": "./dist/*"
},
"./*": {
"types": "./dist/*",
"import": "./dist/*",
"require": "./dist/*"
},
"./migrate": {
"types": "./dist/migrate.d.ts",
"import": "./dist/migrate.js",
"require": "./dist/migrate.js"
},
"./sql": {
"types": "./dist/sql.d.ts",
"import": "./dist/sql.js",
"require": "./dist/sql.js"
},
"./cli": {
"types": "./dist/cli.d.ts",
"import": "./dist-cli/cli.js",
"require": "./dist-cli/cli.js"
},
"./build-db-migrations": {
"import": "./dist-cli/build-db-migrations.js",
"require": "./dist-cli/build-db-migrations.js"
}
}
}