pgpm 5.33.0 → 5.35.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/commands/init/index.js +6 -0
- package/esm/commands/init/index.js +7 -1
- package/esm/utils/display.js +1 -0
- package/package.json +12 -12
- package/utils/display.d.ts +1 -1
- package/utils/display.js +1 -0
package/commands/init/index.js
CHANGED
|
@@ -701,6 +701,12 @@ async function handleModuleInit(argv, prompter, ctx, wasExplicitModuleRequest =
|
|
|
701
701
|
prompter
|
|
702
702
|
});
|
|
703
703
|
}
|
|
704
|
+
if (resolvedWorkspacePath) {
|
|
705
|
+
const matrixFiles = (0, core_1.addToCiMatrix)(resolvedWorkspacePath, path_1.default.relative(resolvedWorkspacePath, modulePath));
|
|
706
|
+
for (const file of matrixFiles) {
|
|
707
|
+
process.stdout.write(`Added ${modName} to the CI matrix in ${file}\n`);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
704
710
|
const motdPath = path_1.default.join(modulePath, '.motd');
|
|
705
711
|
let motd = DEFAULT_MOTD;
|
|
706
712
|
if (fs_1.default.existsSync(motdPath)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_TEMPLATE_REPO, DEFAULT_TEMPLATE_TOOL_NAME, describeTemplateSource, inspectTemplate, PgpmPackage, refreshTemplateCache, resolveBoilerplateBaseDir, scaffoldTemplate, scanBoilerplates, SkillInstaller, sluggify, spawnSyncChecked, } from '@pgpmjs/core';
|
|
1
|
+
import { addToCiMatrix, DEFAULT_TEMPLATE_REPO, DEFAULT_TEMPLATE_TOOL_NAME, describeTemplateSource, inspectTemplate, PgpmPackage, refreshTemplateCache, resolveBoilerplateBaseDir, scaffoldTemplate, scanBoilerplates, SkillInstaller, sluggify, spawnSyncChecked, } from '@pgpmjs/core';
|
|
2
2
|
import { resolveWorkspaceByType } from '@pgpmjs/env';
|
|
3
3
|
import { errors } from '@pgpmjs/types';
|
|
4
4
|
import fs from 'fs';
|
|
@@ -694,6 +694,12 @@ async function handleModuleInit(argv, prompter, ctx, wasExplicitModuleRequest =
|
|
|
694
694
|
prompter
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
|
+
if (resolvedWorkspacePath) {
|
|
698
|
+
const matrixFiles = addToCiMatrix(resolvedWorkspacePath, path.relative(resolvedWorkspacePath, modulePath));
|
|
699
|
+
for (const file of matrixFiles) {
|
|
700
|
+
process.stdout.write(`Added ${modName} to the CI matrix in ${file}\n`);
|
|
701
|
+
}
|
|
702
|
+
}
|
|
697
703
|
const motdPath = path.join(modulePath, '.motd');
|
|
698
704
|
let motd = DEFAULT_MOTD;
|
|
699
705
|
if (fs.existsSync(motdPath)) {
|
package/esm/utils/display.js
CHANGED
|
@@ -9,6 +9,7 @@ export const usageText = `
|
|
|
9
9
|
|
|
10
10
|
Project Management:
|
|
11
11
|
init Initialize workspace or module
|
|
12
|
+
ls List the modules in the current workspace (alias: list)
|
|
12
13
|
extension Manage module dependencies
|
|
13
14
|
plan Generate module deployment plans
|
|
14
15
|
regen Generate revert/verify scripts from deploy scripts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pgpm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.35.0",
|
|
4
4
|
"author": "Constructive <developers@constructive.io>",
|
|
5
5
|
"description": "PostgreSQL Package Manager - Database migration and package management CLI",
|
|
6
6
|
"main": "index.js",
|
|
@@ -47,15 +47,15 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@inquirerer/utils": "^3.3.13",
|
|
50
|
-
"@pgpmjs/core": "^7.
|
|
51
|
-
"@pgpmjs/diff": "^0.
|
|
52
|
-
"@pgpmjs/env": "^2.45.
|
|
53
|
-
"@pgpmjs/export": "^1.
|
|
54
|
-
"@pgpmjs/import": "^0.
|
|
50
|
+
"@pgpmjs/core": "^7.32.0",
|
|
51
|
+
"@pgpmjs/diff": "^0.8.1",
|
|
52
|
+
"@pgpmjs/env": "^2.45.1",
|
|
53
|
+
"@pgpmjs/export": "^1.23.1",
|
|
54
|
+
"@pgpmjs/import": "^0.8.1",
|
|
55
55
|
"@pgpmjs/logger": "^2.26.0",
|
|
56
|
-
"@pgpmjs/slice": "^0.
|
|
57
|
-
"@pgpmjs/transform": "^0.
|
|
58
|
-
"@pgpmjs/types": "^2.55.
|
|
56
|
+
"@pgpmjs/slice": "^0.19.1",
|
|
57
|
+
"@pgpmjs/transform": "^0.28.1",
|
|
58
|
+
"@pgpmjs/types": "^2.55.1",
|
|
59
59
|
"@pgsql/quotes": "^18.2.4",
|
|
60
60
|
"appstash": "^0.8.0",
|
|
61
61
|
"cross-spawn": "^7.0.6",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
"genomic": "^5.6.6",
|
|
64
64
|
"inquirerer": "^4.9.4",
|
|
65
65
|
"js-yaml": "^4.1.0",
|
|
66
|
-
"pg-cache": "^3.29.
|
|
66
|
+
"pg-cache": "^3.29.1",
|
|
67
67
|
"pg-env": "^1.32.0",
|
|
68
|
-
"pgsql-deparser": "^18.3.
|
|
68
|
+
"pgsql-deparser": "^18.3.7",
|
|
69
69
|
"semver": "^7.8.5",
|
|
70
70
|
"shelljs": "^0.10.0",
|
|
71
71
|
"yanse": "^0.2.2"
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"pg",
|
|
83
83
|
"pgsql"
|
|
84
84
|
],
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "0e26550efd7cd782ecaa106be30b3251efd97e6e"
|
|
86
86
|
}
|
package/utils/display.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const usageText = "\n Usage: pgpm <command> [options]\n\n Core Database Operations:\n add Add database changes to plans and create SQL files\n deploy Deploy database changes and migrations\n verify Verify database state and migrations\n revert Revert database changes and migrations\n\n Project Management:\n init Initialize workspace or module\n extension Manage module dependencies\n plan Generate module deployment plans\n regen Generate revert/verify scripts from deploy scripts\n transform Re-dial a module through the dials pipeline (granularity/naming/partition)\n import pgpm-itize an arbitrary SQL dump into a deployable module\n diff Identity-keyed semantic diff between two schema sources (+ migration generation)\n package Package module for distribution\n materialize Transpile an apply proxy into a plain, committed module\n sync-versions Sync .control/Makefile/sql metadata to package.json versions\n export Export database migrations from existing databases\n update Update pgpm to the latest version\n cache Manage cached templates (clean)\n upgrade Upgrade installed pgpm modules to latest versions (alias: up)\n\n Database Administration:\n dump Dump a database to a sql file\n kill Terminate database connections and optionally drop databases\n install Install database modules\n tag Add tags to changes for versioning\n clear Clear database state\n remove Remove database changes\n analyze Analyze database structure\n rename Rename database changes\n admin-users Manage admin users\n tune Tune PostgreSQL for throwaway environments (CI/test)\n\n Testing:\n test-packages Run integration tests on all workspace packages\n\n Migration Tools:\n migrate Migration management subcommands\n init Initialize migration tracking\n status Show migration status\n list List all changes\n deps Show change dependencies\n \n Development Tools:\n docker Manage Docker containers (start/stop/ls, --rustfs)\n doctor Check local dependencies (node, docker, psql) with install guidance\n env Manage environment variables (--supabase, --rustfs)\n test-packages Run integration tests on workspace packages\n \n Global Options:\n -h, --help Display this help information\n -v, --version Display version information\n --cwd <directory> Working directory (default: current directory)\n --engine <name> Migration backend: pg (default, Postgres server) or\n pglite (in-process WASM Postgres, no server). Also set by\n the \"engine\" key of pgpm.json or PGPM_ENGINE.\n --driver <pkg> Driver plugin package backing the engine (escape hatch)\n --pglite[=dataDir] Sugar for --engine pglite, persisted to <dataDir> if given\n\n Individual Command Help:\n pgpm <command> --help Display detailed help for specific command\n pgpm <command> -h Display detailed help for specific command\n\n Examples:\n pgpm deploy --help Show deploy command options\n pgpm init workspace Initialize new workspace\n pgpm install @pgpm/base32 Install a database module\n ";
|
|
1
|
+
export declare const usageText = "\n Usage: pgpm <command> [options]\n\n Core Database Operations:\n add Add database changes to plans and create SQL files\n deploy Deploy database changes and migrations\n verify Verify database state and migrations\n revert Revert database changes and migrations\n\n Project Management:\n init Initialize workspace or module\n ls List the modules in the current workspace (alias: list)\n extension Manage module dependencies\n plan Generate module deployment plans\n regen Generate revert/verify scripts from deploy scripts\n transform Re-dial a module through the dials pipeline (granularity/naming/partition)\n import pgpm-itize an arbitrary SQL dump into a deployable module\n diff Identity-keyed semantic diff between two schema sources (+ migration generation)\n package Package module for distribution\n materialize Transpile an apply proxy into a plain, committed module\n sync-versions Sync .control/Makefile/sql metadata to package.json versions\n export Export database migrations from existing databases\n update Update pgpm to the latest version\n cache Manage cached templates (clean)\n upgrade Upgrade installed pgpm modules to latest versions (alias: up)\n\n Database Administration:\n dump Dump a database to a sql file\n kill Terminate database connections and optionally drop databases\n install Install database modules\n tag Add tags to changes for versioning\n clear Clear database state\n remove Remove database changes\n analyze Analyze database structure\n rename Rename database changes\n admin-users Manage admin users\n tune Tune PostgreSQL for throwaway environments (CI/test)\n\n Testing:\n test-packages Run integration tests on all workspace packages\n\n Migration Tools:\n migrate Migration management subcommands\n init Initialize migration tracking\n status Show migration status\n list List all changes\n deps Show change dependencies\n \n Development Tools:\n docker Manage Docker containers (start/stop/ls, --rustfs)\n doctor Check local dependencies (node, docker, psql) with install guidance\n env Manage environment variables (--supabase, --rustfs)\n test-packages Run integration tests on workspace packages\n \n Global Options:\n -h, --help Display this help information\n -v, --version Display version information\n --cwd <directory> Working directory (default: current directory)\n --engine <name> Migration backend: pg (default, Postgres server) or\n pglite (in-process WASM Postgres, no server). Also set by\n the \"engine\" key of pgpm.json or PGPM_ENGINE.\n --driver <pkg> Driver plugin package backing the engine (escape hatch)\n --pglite[=dataDir] Sugar for --engine pglite, persisted to <dataDir> if given\n\n Individual Command Help:\n pgpm <command> --help Display detailed help for specific command\n pgpm <command> -h Display detailed help for specific command\n\n Examples:\n pgpm deploy --help Show deploy command options\n pgpm init workspace Initialize new workspace\n pgpm install @pgpm/base32 Install a database module\n ";
|
package/utils/display.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.usageText = `
|
|
|
12
12
|
|
|
13
13
|
Project Management:
|
|
14
14
|
init Initialize workspace or module
|
|
15
|
+
ls List the modules in the current workspace (alias: list)
|
|
15
16
|
extension Manage module dependencies
|
|
16
17
|
plan Generate module deployment plans
|
|
17
18
|
regen Generate revert/verify scripts from deploy scripts
|