pgterra 0.1.2 → 0.2.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +179 -50
  3. package/dist/index.js +8256 -2292
  4. package/package.json +11 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgterra",
3
- "version": "0.1.2",
3
+ "version": "0.2.0",
4
4
  "description": "Declarative schema management for Postgres",
5
5
  "keywords": [
6
6
  "postgres",
@@ -12,13 +12,13 @@
12
12
  "cli",
13
13
  "sql"
14
14
  ],
15
- "homepage": "https://github.com/elitan/pgterra#readme",
15
+ "homepage": "https://github.com/elitan/terra#readme",
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "https://github.com/elitan/pgterra.git"
18
+ "url": "https://github.com/elitan/terra.git"
19
19
  },
20
20
  "bugs": {
21
- "url": "https://github.com/elitan/pgterra/issues"
21
+ "url": "https://github.com/elitan/terra/issues"
22
22
  },
23
23
  "author": {
24
24
  "name": "Johan Eliasson",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "license": "MIT",
28
28
  "bin": {
29
- "pgterra": "./dist/index.js"
29
+ "terra": "./dist/index.js"
30
30
  },
31
31
  "type": "module",
32
32
  "files": [
@@ -44,7 +44,6 @@
44
44
  "dev": "bun run --watch src/index.ts",
45
45
  "build": "bun build src/index.ts --outdir ./dist --target node",
46
46
  "prepublishOnly": "bun run build",
47
- "plan": "bun run src/index.ts plan",
48
47
  "apply": "bun run src/index.ts apply",
49
48
  "test": "bun --env-file=.env 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/indexes/ src/test/utils.ts",
50
49
  "test:watch": "bun --env-file=.env 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/indexes/ src/test/utils.ts",
@@ -61,14 +60,18 @@
61
60
  "test:constraints": "bun --env-file=.env test src/test/columns/constraints/ src/test/columns/core-operations/ src/test/columns/edge-cases/ src/test/columns/type-conversions/",
62
61
  "test:dependencies": "bun --env-file=.env test src/test/dependency-resolution.test.ts",
63
62
  "test:destructive": "bun --env-file=.env test src/test/destructive-operations.test.ts",
63
+ "test:properties": "bun --env-file=.env test src/test/properties/",
64
+ "test:properties:watch": "bun --env-file=.env test --watch src/test/properties/",
64
65
  "release:patch": "bun run scripts/release.ts patch",
65
66
  "release:minor": "bun run scripts/release.ts minor",
66
67
  "release:major": "bun run scripts/release.ts major"
67
68
  },
68
69
  "dependencies": {
70
+ "boxen": "^8.0.1",
69
71
  "chalk": "^5.3.0",
70
72
  "commander": "^11.1.0",
71
73
  "diff": "^5.1.0",
74
+ "ora": "^9.0.0",
72
75
  "pg": "^8.11.3",
73
76
  "sql-parser-cst": "^0.33.1"
74
77
  },
@@ -76,7 +79,8 @@
76
79
  "@types/bun": "latest",
77
80
  "@types/diff": "^5.0.8",
78
81
  "@types/pg": "^8.10.9",
79
- "bun-types": "latest"
82
+ "bun-types": "latest",
83
+ "fast-check": "^4.3.0"
80
84
  },
81
85
  "peerDependencies": {
82
86
  "typescript": "^5.8.3"