pgpm 0.3.0 → 0.4.1
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
CHANGED
|
@@ -123,7 +123,7 @@ pgpm deploy --createdb
|
|
|
123
123
|
|
|
124
124
|
## 🧰 Templates, Caching, and Updates
|
|
125
125
|
|
|
126
|
-
- `pgpm init` now scaffolds workspaces/modules from `https://github.com/
|
|
126
|
+
- `pgpm init` now scaffolds workspaces/modules from `https://github.com/constructive-io/pgpm-boilerplates.git` using `create-gen-app` with a one-week cache (stored under `~/.pgpm/cache/repos`). Override with `--repo`, `--from-branch`, and `--template-path`, or use a local template path.
|
|
127
127
|
- Run `pgpm cache clean` to wipe the cached boilerplates if you need a fresh pull.
|
|
128
128
|
- The CLI performs a lightweight npm version check at most once per week (skipped in CI or when `PGPM_SKIP_UPDATE_CHECK` is set). Use `pgpm update` to upgrade to the latest release.
|
|
129
129
|
|
|
@@ -414,8 +414,7 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
|
414
414
|
|
|
415
415
|
## Credits
|
|
416
416
|
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
**🛠 Built by the [Constructive](https://constructive.io) team — creators of modular Postgres tooling for secure, composable backends. If you like our work, contribute on [GitHub](https://github.com/constructive-io).**
|
|
419
418
|
|
|
420
419
|
## Disclaimer
|
|
421
420
|
|
package/commands/init/index.js
CHANGED
|
@@ -18,7 +18,7 @@ Init Command:
|
|
|
18
18
|
Options:
|
|
19
19
|
--help, -h Show this help message
|
|
20
20
|
--cwd <directory> Working directory (default: current directory)
|
|
21
|
-
--repo <repo> Template repo (default: https://github.com/
|
|
21
|
+
--repo <repo> Template repo (default: https://github.com/constructive-io/pgpm-boilerplates.git)
|
|
22
22
|
--template-path <path> Template sub-path (default: workspace/module) or local path override
|
|
23
23
|
--from-branch <branch> Branch/tag to use when cloning repo
|
|
24
24
|
|
|
@@ -23,7 +23,8 @@ async function runWorkspaceSetup(argv, prompter) {
|
|
|
23
23
|
// Prevent double-echoed keystrokes by closing our prompter before template prompts.
|
|
24
24
|
prompter.close();
|
|
25
25
|
const templateRepo = argv.repo ?? core_1.DEFAULT_TEMPLATE_REPO;
|
|
26
|
-
|
|
26
|
+
// Don't set default templatePath - let scaffoldTemplate use metadata-driven resolution
|
|
27
|
+
const templatePath = argv.templatePath;
|
|
27
28
|
const scaffoldResult = await (0, core_1.scaffoldTemplate)({
|
|
28
29
|
type: 'workspace',
|
|
29
30
|
outputDir: targetPath,
|
|
@@ -12,7 +12,7 @@ Init Command:
|
|
|
12
12
|
Options:
|
|
13
13
|
--help, -h Show this help message
|
|
14
14
|
--cwd <directory> Working directory (default: current directory)
|
|
15
|
-
--repo <repo> Template repo (default: https://github.com/
|
|
15
|
+
--repo <repo> Template repo (default: https://github.com/constructive-io/pgpm-boilerplates.git)
|
|
16
16
|
--template-path <path> Template sub-path (default: workspace/module) or local path override
|
|
17
17
|
--from-branch <branch> Branch/tag to use when cloning repo
|
|
18
18
|
|
|
@@ -17,7 +17,8 @@ export default async function runWorkspaceSetup(argv, prompter) {
|
|
|
17
17
|
// Prevent double-echoed keystrokes by closing our prompter before template prompts.
|
|
18
18
|
prompter.close();
|
|
19
19
|
const templateRepo = argv.repo ?? DEFAULT_TEMPLATE_REPO;
|
|
20
|
-
|
|
20
|
+
// Don't set default templatePath - let scaffoldTemplate use metadata-driven resolution
|
|
21
|
+
const templatePath = argv.templatePath;
|
|
21
22
|
const scaffoldResult = await scaffoldTemplate({
|
|
22
23
|
type: 'workspace',
|
|
23
24
|
outputDir: targetPath,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"author": "
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"module": "esm/index.js",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"ts-node": "^10.9.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@launchql/core": "^2.
|
|
49
|
-
"@launchql/env": "^2.
|
|
50
|
-
"@launchql/logger": "^1.1
|
|
51
|
-
"@launchql/types": "^2.
|
|
48
|
+
"@launchql/core": "^2.18.1",
|
|
49
|
+
"@launchql/env": "^2.6.1",
|
|
50
|
+
"@launchql/logger": "^1.2.1",
|
|
51
|
+
"@launchql/types": "^2.10.1",
|
|
52
52
|
"appstash": "^0.2.4",
|
|
53
53
|
"create-gen-app": "^0.3.1",
|
|
54
54
|
"inquirerer": "^2.1.8",
|
|
55
55
|
"js-yaml": "^4.1.0",
|
|
56
56
|
"minimist": "^1.2.8",
|
|
57
|
-
"pg-cache": "^1.
|
|
58
|
-
"pg-env": "^1.1
|
|
57
|
+
"pg-cache": "^1.5.1",
|
|
58
|
+
"pg-env": "^1.2.1",
|
|
59
59
|
"semver": "^7.6.2",
|
|
60
60
|
"shelljs": "^0.10.0",
|
|
61
61
|
"yanse": "^0.1.5"
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"pg",
|
|
73
73
|
"pgsql"
|
|
74
74
|
],
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "3bfa1e2c4524664d19ebfa2baf214403821bdee9"
|
|
76
76
|
}
|