pgterra 0.1.0
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/README.md +544 -0
- package/dist/index.js +75 -0
- package/package.json +72 -0
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pgterra",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Declarative Infrastructure as Code tool for PostgreSQL databases",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"pgterra": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/**/*",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"postgresql",
|
|
15
|
+
"database",
|
|
16
|
+
"infrastructure-as-code",
|
|
17
|
+
"schema-management",
|
|
18
|
+
"migration",
|
|
19
|
+
"sql",
|
|
20
|
+
"cli"
|
|
21
|
+
],
|
|
22
|
+
"author": "Your Name <your.email@example.com>",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/yourusername/pgterra.git"
|
|
27
|
+
},
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/yourusername/pgterra/issues"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://github.com/yourusername/pgterra#readme",
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=18.0.0"
|
|
34
|
+
},
|
|
35
|
+
"module": "src/index.ts",
|
|
36
|
+
"type": "module",
|
|
37
|
+
"scripts": {
|
|
38
|
+
"dev": "bun run --watch src/index.ts",
|
|
39
|
+
"build": "bun build src/index.ts --outdir ./dist --target node --format esm --minify",
|
|
40
|
+
"prepublishOnly": "mkdir -p dist && bun run build",
|
|
41
|
+
"plan": "bun run src/index.ts plan",
|
|
42
|
+
"apply": "bun run src/index.ts apply",
|
|
43
|
+
"test": "bun test src/test/tables.test.ts src/test/columns/constraints/ src/test/columns/core-operations/ src/test/columns/edge-cases/ src/test/columns/type-conversions/ src/test/utils.ts",
|
|
44
|
+
"test:watch": "bun test --watch src/test/tables.test.ts src/test/columns/constraints/ src/test/columns/core-operations/ src/test/columns/edge-cases/ src/test/columns/type-conversions/ src/test/utils.ts",
|
|
45
|
+
"test:performance": "bun test src/test/columns/performance/",
|
|
46
|
+
"test:performance:watch": "bun test --watch src/test/columns/performance/",
|
|
47
|
+
"test:setup": "bun run src/test/setup.ts",
|
|
48
|
+
"test:setup:local": "docker compose up -d && bun run src/test/setup.ts",
|
|
49
|
+
"test:teardown": "docker compose down",
|
|
50
|
+
"test:full": "bun run test:setup:local && bun test src/test/tables.test.ts src/test/columns/constraints/ src/test/columns/core-operations/ src/test/columns/edge-cases/ src/test/columns/type-conversions/ src/test/utils.ts && bun run test:teardown",
|
|
51
|
+
"test:full:with-performance": "bun run test:setup:local && bun test src/test && bun run test:teardown",
|
|
52
|
+
"test:unit": "bun test src/test/tables.test.ts src/test/columns/constraints/ src/test/columns/core-operations/ src/test/columns/edge-cases/ src/test/columns/type-conversions/",
|
|
53
|
+
"test:integration": "echo 'No integration tests defined yet'",
|
|
54
|
+
"test:all": "bun test src/test"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"chalk": "^5.3.0",
|
|
58
|
+
"commander": "^11.1.0",
|
|
59
|
+
"diff": "^5.1.0",
|
|
60
|
+
"pg": "^8.11.3",
|
|
61
|
+
"sql-parser-cst": "^0.33.1"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/bun": "latest",
|
|
65
|
+
"@types/diff": "^5.0.8",
|
|
66
|
+
"@types/pg": "^8.10.9",
|
|
67
|
+
"bun-types": "latest"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"typescript": "^5"
|
|
71
|
+
}
|
|
72
|
+
}
|