@schemavaults/dbh 0.7.5 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +41 -0
- package/README.md +23 -1
- package/dist/build-db-migrations.d.ts +3 -0
- package/dist/cli.d.ts +3 -0
- package/dist-cli/build-db-migrations.js +27 -0
- package/dist-cli/cli.js +54 -0
- package/package.json +31 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemavaults/dbh",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Easily connect to PostgresDB from serverless environment",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -8,6 +8,9 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/schemavaults/dbh.git"
|
|
10
10
|
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"dbh": "dist-cli/cli.js"
|
|
13
|
+
},
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"kysely": "0.28.10",
|
|
13
16
|
"kysely-neon": "1.3.0",
|
|
@@ -21,19 +24,26 @@
|
|
|
21
24
|
"@eslint/js": "9.39.1",
|
|
22
25
|
"globals": "16.5.0",
|
|
23
26
|
"@typescript-eslint/eslint-plugin": "8.48.1",
|
|
24
|
-
"@typescript-eslint/parser": "8.48.1"
|
|
27
|
+
"@typescript-eslint/parser": "8.48.1",
|
|
28
|
+
"commander": "14.0.3"
|
|
25
29
|
},
|
|
26
30
|
"scripts": {
|
|
27
|
-
"build": "
|
|
31
|
+
"build": "bun run build:pkg && bun run build:build-db-migrations && bun run build:cli",
|
|
32
|
+
"postbuild": "bun run cleanup",
|
|
33
|
+
"build:pkg": "tsc --project tsconfig.json && tsc-alias --project tsconfig.json",
|
|
34
|
+
"build:cli": "bun build ./src/cli.ts --outdir dist-cli --format esm --target node --minify",
|
|
35
|
+
"build:build-db-migrations": "bun build ./src/build-db-migrations.ts --outdir dist-cli --format esm --target bun --minify",
|
|
28
36
|
"test:unit": "bun test --test-name-pattern 'DBH Init'",
|
|
29
37
|
"test": "bun run test:unit",
|
|
30
|
-
"test:e2e": "bun test ./src/tests/e2e/
|
|
38
|
+
"test:e2e": "bun test ./src/tests/e2e/",
|
|
39
|
+
"test:build-db-migrations": "/bin/bash ./tests/run_build_example_migrations_test.sh",
|
|
31
40
|
"cleanup:compiled_tests_in_dist_directory": "find ./dist -type f \\( -name \"*.test.js\" -o -name \"*.test.js.map\" -o -name \"*.test.d.ts\" \\) -delete",
|
|
32
41
|
"cleanup:rm_tests_dir": "rm -rf ./dist/tests",
|
|
33
|
-
"cleanup": "
|
|
34
|
-
"
|
|
42
|
+
"cleanup:rm_cli_js_artifacts": "rm -rf ./dist/cli.js && rm -rf ./dist/cli.js.map",
|
|
43
|
+
"cleanup": "bun run cleanup:compiled_tests_in_dist_directory && bun run cleanup:rm_tests_dir && bun run cleanup:rm_cli_js_artifacts",
|
|
35
44
|
"version": "bun run ./scripts/package_version.ts",
|
|
36
|
-
"lint": "eslint src"
|
|
45
|
+
"lint": "eslint src",
|
|
46
|
+
"cli": "bun run ./src/cli.ts"
|
|
37
47
|
},
|
|
38
48
|
"main": "dist/index.js",
|
|
39
49
|
"module": "dist/index.js",
|
|
@@ -63,6 +73,20 @@
|
|
|
63
73
|
"types": "./dist/migrate.d.ts",
|
|
64
74
|
"import": "./dist/migrate.js",
|
|
65
75
|
"require": "./dist/migrate.js"
|
|
76
|
+
},
|
|
77
|
+
"./sql": {
|
|
78
|
+
"types": "./dist/sql.d.ts",
|
|
79
|
+
"import": "./dist/sql.js",
|
|
80
|
+
"require": "./dist/sql.js"
|
|
81
|
+
},
|
|
82
|
+
"./cli": {
|
|
83
|
+
"types": "./dist/cli.d.ts",
|
|
84
|
+
"import": "./dist-cli/cli.js",
|
|
85
|
+
"require": "./dist-cli/cli.js"
|
|
86
|
+
},
|
|
87
|
+
"./build-db-migrations": {
|
|
88
|
+
"import": "./dist-cli/build-db-migrations.js",
|
|
89
|
+
"require": "./dist-cli/build-db-migrations.js"
|
|
66
90
|
}
|
|
67
91
|
}
|
|
68
92
|
}
|