pgpm 1.3.0 → 1.4.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 CHANGED
@@ -256,6 +256,9 @@ pgpm upgrade-modules --dry-run
256
256
 
257
257
  # Upgrade specific modules
258
258
  pgpm upgrade-modules --modules @pgpm/base32,@pgpm/faker
259
+
260
+ # Upgrade modules across all packages in the workspace
261
+ pgpm upgrade-modules --workspace --all
259
262
  ```
260
263
 
261
264
  **Options:**
@@ -263,6 +266,7 @@ pgpm upgrade-modules --modules @pgpm/base32,@pgpm/faker
263
266
  - `--all` - Upgrade all modules without prompting
264
267
  - `--dry-run` - Show what would be upgraded without making changes
265
268
  - `--modules <names>` - Comma-separated list of specific modules to upgrade
269
+ - `--workspace` - Upgrade modules across all packages in the workspace
266
270
  - `--cwd <directory>` - Working directory (default: current directory)
267
271
 
268
272
  #### `pgpm extension`
@@ -345,20 +349,20 @@ pgpm test-packages
345
349
  # Run full deploy/verify/revert/deploy cycle
346
350
  pgpm test-packages --full-cycle
347
351
 
348
- # Stop on first failure
349
- pgpm test-packages --stop-on-fail
352
+ # Continue testing all packages even after failures
353
+ pgpm test-packages --continue-on-fail
350
354
 
351
355
  # Exclude specific modules
352
356
  pgpm test-packages --exclude my-module,another-module
353
357
 
354
358
  # Combine options
355
- pgpm test-packages --full-cycle --stop-on-fail --exclude legacy-module
359
+ pgpm test-packages --full-cycle --continue-on-fail --exclude legacy-module
356
360
  ```
357
361
 
358
362
  **Options:**
359
363
 
360
364
  - `--full-cycle` - Run full deploy/verify/revert/deploy cycle (default: deploy only)
361
- - `--stop-on-fail` - Stop testing immediately when a module fails
365
+ - `--continue-on-fail` - Continue testing all packages even after failures (default: stop on first failure)
362
366
  - `--exclude <modules>` - Comma-separated module names to exclude
363
367
  - `--cwd <directory>` - Working directory (default: current directory)
364
368
 
@@ -457,7 +461,6 @@ Common issues and solutions for pgpm, PostgreSQL, and testing.
457
461
  * [@pgsql/enums](https://www.npmjs.com/package/@pgsql/enums): **🏷️ TypeScript enums** for PostgreSQL AST for safe and ergonomic parsing logic.
458
462
  * [@pgsql/types](https://www.npmjs.com/package/@pgsql/types): **📝 Type definitions** for PostgreSQL AST nodes in TypeScript.
459
463
  * [@pgsql/utils](https://www.npmjs.com/package/@pgsql/utils): **🛠️ AST utilities** for constructing and transforming PostgreSQL syntax trees.
460
- * [pg-ast](https://www.npmjs.com/package/pg-ast): **🔍 Low-level AST tools** and transformations for Postgres query structures.
461
464
 
462
465
  ### 🚀 API & Dev Tools
463
466
 
package/commands/cache.js CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const logger_1 = require("@pgpmjs/logger");
4
3
  const create_gen_app_1 = require("create-gen-app");
5
4
  const cli_error_1 = require("../utils/cli-error");
6
- const log = new logger_1.Logger('cache');
7
5
  const cacheUsageText = `
8
6
  Cache Command:
9
7
 
@@ -26,7 +24,6 @@ exports.default = async (argv, _prompter, _options) => {
26
24
  const toolName = argv.tool || 'pgpm';
27
25
  const cacheManager = new create_gen_app_1.CacheManager({ toolName });
28
26
  cacheManager.clearAll();
29
- log.success(`Cleared template cache for "${toolName}".`);
30
- log.debug(`Cache location: ${cacheManager.getReposDir()}`);
27
+ process.stdout.write(`Cleared template cache for "${toolName}".\n`);
31
28
  return argv;
32
29
  };
@@ -1,19 +1,28 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.default = runModuleSetup;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
4
9
  const core_1 = require("@pgpmjs/core");
5
- const logger_1 = require("@pgpmjs/logger");
6
10
  const types_1 = require("@pgpmjs/types");
7
- const log = new logger_1.Logger('module-init');
11
+ const DEFAULT_MOTD = `
12
+ | _ _
13
+ === |.===. '\\-//\`
14
+ (o o) {}o o{} (o o)
15
+ ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-
16
+ `;
8
17
  async function runModuleSetup(argv, prompter) {
9
18
  const { cwd = process.cwd() } = argv;
10
19
  const project = new core_1.PgpmPackage(cwd);
11
20
  if (!project.workspacePath) {
12
- log.error('Not inside a PGPM workspace.');
21
+ process.stderr.write('Not inside a PGPM workspace.\n');
13
22
  throw types_1.errors.NOT_IN_WORKSPACE({});
14
23
  }
15
24
  if (!project.isInsideAllowedDirs(cwd) && !project.isInWorkspace() && !project.isParentOfAllowedDirs(cwd)) {
16
- log.error('You must be inside the workspace root or a parent directory of modules (like packages/).');
25
+ process.stderr.write('You must be inside the workspace root or a parent directory of modules (like packages/).\n');
17
26
  throw types_1.errors.NOT_IN_WORKSPACE_MODULE({});
18
27
  }
19
28
  const availExtensions = project.getAvailableModules();
@@ -60,6 +69,26 @@ async function runModuleSetup(argv, prompter) {
60
69
  answers: templateAnswers,
61
70
  noTty: Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true')
62
71
  });
63
- log.success(`Initialized module: ${modName}`);
72
+ const isRoot = path_1.default.resolve(project.getWorkspacePath()) === path_1.default.resolve(cwd);
73
+ const modulePath = isRoot
74
+ ? path_1.default.join(cwd, 'packages', modName)
75
+ : path_1.default.join(cwd, modName);
76
+ const motdPath = path_1.default.join(modulePath, '.motd');
77
+ let motd = DEFAULT_MOTD;
78
+ if (fs_1.default.existsSync(motdPath)) {
79
+ try {
80
+ motd = fs_1.default.readFileSync(motdPath, 'utf8');
81
+ fs_1.default.unlinkSync(motdPath);
82
+ }
83
+ catch {
84
+ // Ignore errors reading/deleting .motd
85
+ }
86
+ }
87
+ process.stdout.write(motd);
88
+ if (!motd.endsWith('\n')) {
89
+ process.stdout.write('\n');
90
+ }
91
+ const relPath = isRoot ? `packages/${modName}` : modName;
92
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
64
93
  return { ...argv, ...answers };
65
94
  }
@@ -4,11 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.default = runWorkspaceSetup;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
7
9
  const core_1 = require("@pgpmjs/core");
8
- const logger_1 = require("@pgpmjs/logger");
9
10
  const inquirerer_1 = require("inquirerer");
10
- const path_1 = __importDefault(require("path"));
11
- const log = new logger_1.Logger('workspace-init');
11
+ const DEFAULT_MOTD = `
12
+ | _ _
13
+ === |.===. '\\-//\`
14
+ (o o) {}o o{} (o o)
15
+ ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-
16
+ `;
12
17
  async function runWorkspaceSetup(argv, prompter) {
13
18
  const workspaceQuestions = [
14
19
  {
@@ -30,7 +35,7 @@ async function runWorkspaceSetup(argv, prompter) {
30
35
  // This provides the intended workspace directory name before the folder is created
31
36
  const dirName = path_1.default.basename(targetPath);
32
37
  (0, inquirerer_1.registerDefaultResolver)('workspace.dirname', () => dirName);
33
- const scaffoldResult = await (0, core_1.scaffoldTemplate)({
38
+ await (0, core_1.scaffoldTemplate)({
34
39
  type: 'workspace',
35
40
  outputDir: targetPath,
36
41
  templateRepo,
@@ -45,10 +50,22 @@ async function runWorkspaceSetup(argv, prompter) {
45
50
  noTty: Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true'),
46
51
  cwd
47
52
  });
48
- const cacheMessage = scaffoldResult.cacheUsed
49
- ? `Using cached templates from ${scaffoldResult.templateDir}`
50
- : `Fetched templates into ${scaffoldResult.templateDir}`;
51
- log.success(cacheMessage);
52
- log.success('Workspace templates rendered.');
53
+ // Check for .motd file and print it, or use default ASCII art
54
+ const motdPath = path_1.default.join(targetPath, '.motd');
55
+ let motd = DEFAULT_MOTD;
56
+ if (fs_1.default.existsSync(motdPath)) {
57
+ try {
58
+ motd = fs_1.default.readFileSync(motdPath, 'utf8');
59
+ fs_1.default.unlinkSync(motdPath);
60
+ }
61
+ catch {
62
+ // Ignore errors reading/deleting .motd
63
+ }
64
+ }
65
+ process.stdout.write(motd);
66
+ if (!motd.endsWith('\n')) {
67
+ process.stdout.write('\n');
68
+ }
69
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${dirName}\n`);
53
70
  return { ...argv, ...answers, cwd: targetPath };
54
71
  }
@@ -26,14 +26,14 @@ Test Packages Command:
26
26
  Options:
27
27
  --help, -h Show this help message
28
28
  --exclude <pkgs> Comma-separated module names to exclude
29
- --stop-on-fail Stop testing immediately when a package fails
29
+ --continue-on-fail Continue testing all packages even after failures
30
30
  --full-cycle Run full deploy/verify/revert/deploy cycle (default: deploy only)
31
31
  --cwd <directory> Working directory (default: current directory)
32
32
 
33
33
  Examples:
34
- pgpm test-packages Test all packages in workspace
34
+ pgpm test-packages Test all packages (stops on first failure)
35
35
  pgpm test-packages --full-cycle Run full test cycle with verify/revert
36
- pgpm test-packages --stop-on-fail Stop on first failure
36
+ pgpm test-packages --continue-on-fail Test all packages, collect all failures
37
37
  pgpm test-packages --exclude my-module Exclude specific modules
38
38
  `;
39
39
  function dbSafeName(moduleName) {
@@ -205,8 +205,9 @@ exports.default = async (argv, _prompter, _options) => {
205
205
  console.log(testPackagesUsageText);
206
206
  process.exit(0);
207
207
  }
208
- // Parse options
209
- const stopOnFail = argv['stop-on-fail'] === true || argv.stopOnFail === true;
208
+ // Parse options (stopOnFail defaults to true, use --continue-on-fail to disable)
209
+ const continueOnFail = argv['continue-on-fail'] === true || argv.continueOnFail === true;
210
+ const stopOnFail = !continueOnFail;
210
211
  const fullCycle = argv['full-cycle'] === true || argv.fullCycle === true;
211
212
  const cwd = argv.cwd || process.cwd();
212
213
  // Parse excludes
@@ -216,10 +217,7 @@ exports.default = async (argv, _prompter, _options) => {
216
217
  }
217
218
  console.log('=== PGPM Package Integration Test ===');
218
219
  console.log(`Testing all packages with ${fullCycle ? 'deploy/verify/revert/deploy cycle' : 'deploy only'}`);
219
- if (stopOnFail) {
220
- console.log('Mode: Stop on first failure');
221
- }
222
- else {
220
+ if (!stopOnFail) {
223
221
  console.log('Mode: Test all packages (collect all failures)');
224
222
  }
225
223
  console.log('');
@@ -273,7 +271,7 @@ exports.default = async (argv, _prompter, _options) => {
273
271
  failedPackages.push(result);
274
272
  if (stopOnFail) {
275
273
  console.log('');
276
- console.error(`${RED}STOPPING: Test failed for module ${result.moduleName} and --stop-on-fail was specified${NC}`);
274
+ console.error(`${RED}STOPPING: Test failed for module ${result.moduleName}${NC}`);
277
275
  console.log('');
278
276
  console.log('=== TEST SUMMARY (PARTIAL) ===');
279
277
  if (successfulPackages.length > 0) {
@@ -1,7 +1,5 @@
1
- import { Logger } from '@pgpmjs/logger';
2
1
  import { CacheManager } from 'create-gen-app';
3
2
  import { cliExitWithError } from '../utils/cli-error';
4
- const log = new Logger('cache');
5
3
  const cacheUsageText = `
6
4
  Cache Command:
7
5
 
@@ -24,7 +22,6 @@ export default async (argv, _prompter, _options) => {
24
22
  const toolName = argv.tool || 'pgpm';
25
23
  const cacheManager = new CacheManager({ toolName });
26
24
  cacheManager.clearAll();
27
- log.success(`Cleared template cache for "${toolName}".`);
28
- log.debug(`Cache location: ${cacheManager.getReposDir()}`);
25
+ process.stdout.write(`Cleared template cache for "${toolName}".\n`);
29
26
  return argv;
30
27
  };
@@ -1,16 +1,22 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
1
3
  import { DEFAULT_TEMPLATE_REPO, DEFAULT_TEMPLATE_TOOL_NAME, PgpmPackage, sluggify } from '@pgpmjs/core';
2
- import { Logger } from '@pgpmjs/logger';
3
4
  import { errors } from '@pgpmjs/types';
4
- const log = new Logger('module-init');
5
+ const DEFAULT_MOTD = `
6
+ | _ _
7
+ === |.===. '\\-//\`
8
+ (o o) {}o o{} (o o)
9
+ ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-
10
+ `;
5
11
  export default async function runModuleSetup(argv, prompter) {
6
12
  const { cwd = process.cwd() } = argv;
7
13
  const project = new PgpmPackage(cwd);
8
14
  if (!project.workspacePath) {
9
- log.error('Not inside a PGPM workspace.');
15
+ process.stderr.write('Not inside a PGPM workspace.\n');
10
16
  throw errors.NOT_IN_WORKSPACE({});
11
17
  }
12
18
  if (!project.isInsideAllowedDirs(cwd) && !project.isInWorkspace() && !project.isParentOfAllowedDirs(cwd)) {
13
- log.error('You must be inside the workspace root or a parent directory of modules (like packages/).');
19
+ process.stderr.write('You must be inside the workspace root or a parent directory of modules (like packages/).\n');
14
20
  throw errors.NOT_IN_WORKSPACE_MODULE({});
15
21
  }
16
22
  const availExtensions = project.getAvailableModules();
@@ -57,6 +63,26 @@ export default async function runModuleSetup(argv, prompter) {
57
63
  answers: templateAnswers,
58
64
  noTty: Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true')
59
65
  });
60
- log.success(`Initialized module: ${modName}`);
66
+ const isRoot = path.resolve(project.getWorkspacePath()) === path.resolve(cwd);
67
+ const modulePath = isRoot
68
+ ? path.join(cwd, 'packages', modName)
69
+ : path.join(cwd, modName);
70
+ const motdPath = path.join(modulePath, '.motd');
71
+ let motd = DEFAULT_MOTD;
72
+ if (fs.existsSync(motdPath)) {
73
+ try {
74
+ motd = fs.readFileSync(motdPath, 'utf8');
75
+ fs.unlinkSync(motdPath);
76
+ }
77
+ catch {
78
+ // Ignore errors reading/deleting .motd
79
+ }
80
+ }
81
+ process.stdout.write(motd);
82
+ if (!motd.endsWith('\n')) {
83
+ process.stdout.write('\n');
84
+ }
85
+ const relPath = isRoot ? `packages/${modName}` : modName;
86
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${relPath}\n`);
61
87
  return { ...argv, ...answers };
62
88
  }
@@ -1,8 +1,13 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
1
3
  import { DEFAULT_TEMPLATE_REPO, DEFAULT_TEMPLATE_TOOL_NAME, scaffoldTemplate, sluggify } from '@pgpmjs/core';
2
- import { Logger } from '@pgpmjs/logger';
3
4
  import { registerDefaultResolver } from 'inquirerer';
4
- import path from 'path';
5
- const log = new Logger('workspace-init');
5
+ const DEFAULT_MOTD = `
6
+ | _ _
7
+ === |.===. '\\-//\`
8
+ (o o) {}o o{} (o o)
9
+ ooO--(_)--Ooo-ooO--(_)--Ooo-ooO--(_)--Ooo-
10
+ `;
6
11
  export default async function runWorkspaceSetup(argv, prompter) {
7
12
  const workspaceQuestions = [
8
13
  {
@@ -24,7 +29,7 @@ export default async function runWorkspaceSetup(argv, prompter) {
24
29
  // This provides the intended workspace directory name before the folder is created
25
30
  const dirName = path.basename(targetPath);
26
31
  registerDefaultResolver('workspace.dirname', () => dirName);
27
- const scaffoldResult = await scaffoldTemplate({
32
+ await scaffoldTemplate({
28
33
  type: 'workspace',
29
34
  outputDir: targetPath,
30
35
  templateRepo,
@@ -39,10 +44,22 @@ export default async function runWorkspaceSetup(argv, prompter) {
39
44
  noTty: Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true'),
40
45
  cwd
41
46
  });
42
- const cacheMessage = scaffoldResult.cacheUsed
43
- ? `Using cached templates from ${scaffoldResult.templateDir}`
44
- : `Fetched templates into ${scaffoldResult.templateDir}`;
45
- log.success(cacheMessage);
46
- log.success('Workspace templates rendered.');
47
+ // Check for .motd file and print it, or use default ASCII art
48
+ const motdPath = path.join(targetPath, '.motd');
49
+ let motd = DEFAULT_MOTD;
50
+ if (fs.existsSync(motdPath)) {
51
+ try {
52
+ motd = fs.readFileSync(motdPath, 'utf8');
53
+ fs.unlinkSync(motdPath);
54
+ }
55
+ catch {
56
+ // Ignore errors reading/deleting .motd
57
+ }
58
+ }
59
+ process.stdout.write(motd);
60
+ if (!motd.endsWith('\n')) {
61
+ process.stdout.write('\n');
62
+ }
63
+ process.stdout.write(`\n✨ Enjoy!\n\ncd ./${dirName}\n`);
47
64
  return { ...argv, ...answers, cwd: targetPath };
48
65
  }
@@ -21,14 +21,14 @@ Test Packages Command:
21
21
  Options:
22
22
  --help, -h Show this help message
23
23
  --exclude <pkgs> Comma-separated module names to exclude
24
- --stop-on-fail Stop testing immediately when a package fails
24
+ --continue-on-fail Continue testing all packages even after failures
25
25
  --full-cycle Run full deploy/verify/revert/deploy cycle (default: deploy only)
26
26
  --cwd <directory> Working directory (default: current directory)
27
27
 
28
28
  Examples:
29
- pgpm test-packages Test all packages in workspace
29
+ pgpm test-packages Test all packages (stops on first failure)
30
30
  pgpm test-packages --full-cycle Run full test cycle with verify/revert
31
- pgpm test-packages --stop-on-fail Stop on first failure
31
+ pgpm test-packages --continue-on-fail Test all packages, collect all failures
32
32
  pgpm test-packages --exclude my-module Exclude specific modules
33
33
  `;
34
34
  function dbSafeName(moduleName) {
@@ -200,8 +200,9 @@ export default async (argv, _prompter, _options) => {
200
200
  console.log(testPackagesUsageText);
201
201
  process.exit(0);
202
202
  }
203
- // Parse options
204
- const stopOnFail = argv['stop-on-fail'] === true || argv.stopOnFail === true;
203
+ // Parse options (stopOnFail defaults to true, use --continue-on-fail to disable)
204
+ const continueOnFail = argv['continue-on-fail'] === true || argv.continueOnFail === true;
205
+ const stopOnFail = !continueOnFail;
205
206
  const fullCycle = argv['full-cycle'] === true || argv.fullCycle === true;
206
207
  const cwd = argv.cwd || process.cwd();
207
208
  // Parse excludes
@@ -211,10 +212,7 @@ export default async (argv, _prompter, _options) => {
211
212
  }
212
213
  console.log('=== PGPM Package Integration Test ===');
213
214
  console.log(`Testing all packages with ${fullCycle ? 'deploy/verify/revert/deploy cycle' : 'deploy only'}`);
214
- if (stopOnFail) {
215
- console.log('Mode: Stop on first failure');
216
- }
217
- else {
215
+ if (!stopOnFail) {
218
216
  console.log('Mode: Test all packages (collect all failures)');
219
217
  }
220
218
  console.log('');
@@ -268,7 +266,7 @@ export default async (argv, _prompter, _options) => {
268
266
  failedPackages.push(result);
269
267
  if (stopOnFail) {
270
268
  console.log('');
271
- console.error(`${RED}STOPPING: Test failed for module ${result.moduleName} and --stop-on-fail was specified${NC}`);
269
+ console.error(`${RED}STOPPING: Test failed for module ${result.moduleName}${NC}`);
272
270
  console.log('');
273
271
  console.log('=== TEST SUMMARY (PARTIAL) ===');
274
272
  if (successfulPackages.length > 0) {
@@ -1,12 +1,12 @@
1
1
  export const usageText = `
2
2
  Usage: pgpm <command> [options]
3
-
3
+
4
4
  Core Database Operations:
5
5
  add Add database changes to plans and create SQL files
6
6
  deploy Deploy database changes and migrations
7
7
  verify Verify database state and migrations
8
8
  revert Revert database changes and migrations
9
-
9
+
10
10
  Project Management:
11
11
  init Initialize workspace or module
12
12
  extension Manage module dependencies
@@ -15,7 +15,8 @@ export const usageText = `
15
15
  export Export database migrations from existing databases
16
16
  update Update pgpm to the latest version
17
17
  cache Manage cached templates (clean)
18
-
18
+ upgrade-modules Upgrade installed pgpm modules to latest versions
19
+
19
20
  Database Administration:
20
21
  kill Terminate database connections and optionally drop databases
21
22
  install Install database modules
@@ -25,7 +26,10 @@ export const usageText = `
25
26
  analyze Analyze database structure
26
27
  rename Rename database changes
27
28
  admin-users Manage admin users
28
-
29
+
30
+ Testing:
31
+ test-packages Run integration tests on all workspace packages
32
+
29
33
  Migration Tools:
30
34
  migrate Migration management subcommands
31
35
  init Initialize migration tracking
@@ -33,15 +37,20 @@ export const usageText = `
33
37
  list List all changes
34
38
  deps Show change dependencies
35
39
 
40
+ Development Tools:
41
+ docker Manage PostgreSQL Docker containers (start/stop)
42
+ env Manage PostgreSQL environment variables
43
+ test-packages Run integration tests on workspace packages
44
+
36
45
  Global Options:
37
46
  -h, --help Display this help information
38
47
  -v, --version Display version information
39
48
  --cwd <directory> Working directory (default: current directory)
40
-
49
+
41
50
  Individual Command Help:
42
51
  pgpm <command> --help Display detailed help for specific command
43
52
  pgpm <command> -h Display detailed help for specific command
44
-
53
+
45
54
  Examples:
46
55
  pgpm deploy --help Show deploy command options
47
56
  pgpm init workspace Initialize new workspace
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "1.3.0",
3
+ "version": "1.4.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",
@@ -45,14 +45,14 @@
45
45
  "ts-node": "^10.9.2"
46
46
  },
47
47
  "dependencies": {
48
- "@pgpmjs/core": "^3.2.0",
48
+ "@pgpmjs/core": "^3.2.1",
49
49
  "@pgpmjs/env": "^2.8.8",
50
50
  "@pgpmjs/logger": "^1.3.5",
51
51
  "@pgpmjs/types": "^2.12.6",
52
52
  "appstash": "^0.2.6",
53
- "create-gen-app": "^0.6.0",
53
+ "create-gen-app": "^0.6.2",
54
54
  "find-and-require-package-json": "^0.8.2",
55
- "inquirerer": "^2.2.0",
55
+ "inquirerer": "^2.3.0",
56
56
  "js-yaml": "^4.1.0",
57
57
  "minimist": "^1.2.8",
58
58
  "pg-cache": "^1.6.9",
@@ -73,5 +73,5 @@
73
73
  "pg",
74
74
  "pgsql"
75
75
  ],
76
- "gitHead": "f041cbb1c54277b1b408af5b44d5a8cae933bae7"
76
+ "gitHead": "976cc9e0e09201c7df40518a1797f4178fc21c2c"
77
77
  }
@@ -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 package Package module for distribution\n export Export database migrations from existing databases\n update Update pgpm to the latest version\n cache Manage cached templates (clean)\n \n Database Administration:\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 \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 Global Options:\n -h, --help Display this help information\n -v, --version Display version information\n --cwd <directory> Working directory (default: current directory)\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 extension Manage module dependencies\n plan Generate module deployment plans\n package Package module for distribution\n export Export database migrations from existing databases\n update Update pgpm to the latest version\n cache Manage cached templates (clean)\n upgrade-modules Upgrade installed pgpm modules to latest versions\n\n Database Administration:\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\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 PostgreSQL Docker containers (start/stop)\n env Manage PostgreSQL environment variables\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\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
@@ -3,13 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.usageText = void 0;
4
4
  exports.usageText = `
5
5
  Usage: pgpm <command> [options]
6
-
6
+
7
7
  Core Database Operations:
8
8
  add Add database changes to plans and create SQL files
9
9
  deploy Deploy database changes and migrations
10
10
  verify Verify database state and migrations
11
11
  revert Revert database changes and migrations
12
-
12
+
13
13
  Project Management:
14
14
  init Initialize workspace or module
15
15
  extension Manage module dependencies
@@ -18,7 +18,8 @@ exports.usageText = `
18
18
  export Export database migrations from existing databases
19
19
  update Update pgpm to the latest version
20
20
  cache Manage cached templates (clean)
21
-
21
+ upgrade-modules Upgrade installed pgpm modules to latest versions
22
+
22
23
  Database Administration:
23
24
  kill Terminate database connections and optionally drop databases
24
25
  install Install database modules
@@ -28,7 +29,10 @@ exports.usageText = `
28
29
  analyze Analyze database structure
29
30
  rename Rename database changes
30
31
  admin-users Manage admin users
31
-
32
+
33
+ Testing:
34
+ test-packages Run integration tests on all workspace packages
35
+
32
36
  Migration Tools:
33
37
  migrate Migration management subcommands
34
38
  init Initialize migration tracking
@@ -36,15 +40,20 @@ exports.usageText = `
36
40
  list List all changes
37
41
  deps Show change dependencies
38
42
 
43
+ Development Tools:
44
+ docker Manage PostgreSQL Docker containers (start/stop)
45
+ env Manage PostgreSQL environment variables
46
+ test-packages Run integration tests on workspace packages
47
+
39
48
  Global Options:
40
49
  -h, --help Display this help information
41
50
  -v, --version Display version information
42
51
  --cwd <directory> Working directory (default: current directory)
43
-
52
+
44
53
  Individual Command Help:
45
54
  pgpm <command> --help Display detailed help for specific command
46
55
  pgpm <command> -h Display detailed help for specific command
47
-
56
+
48
57
  Examples:
49
58
  pgpm deploy --help Show deploy command options
50
59
  pgpm init workspace Initialize new workspace