@pgpmjs/core 6.4.0 → 6.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.
@@ -34,6 +34,13 @@ export interface InitModuleOptions {
34
34
  * Defaults to true for backward compatibility.
35
35
  */
36
36
  pgpm?: boolean;
37
+ /**
38
+ * Optional Inquirerer instance to reuse for prompting during template scaffolding.
39
+ * If provided, prevents creating a duplicate instance on process.stdin which
40
+ * would cause double-echoed keystrokes and other input conflicts.
41
+ * The caller retains ownership and is responsible for closing it.
42
+ */
43
+ prompter?: import('inquirerer').Inquirerer;
37
44
  }
38
45
  export declare class PgpmPackage {
39
46
  cwd: string;
@@ -397,7 +397,8 @@ class PgpmPackage {
397
397
  noTty: options.noTty ?? false,
398
398
  cacheTtlMs: options.cacheTtlMs ?? template_scaffold_1.DEFAULT_TEMPLATE_TTL_MS,
399
399
  toolName: options.toolName ?? template_scaffold_1.DEFAULT_TEMPLATE_TOOL_NAME,
400
- cwd: this.cwd
400
+ cwd: this.cwd,
401
+ prompter: options.prompter,
401
402
  });
402
403
  // Only create pgpm files (pgpm.plan, .control, deploy/revert/verify dirs) for pgpm-managed modules
403
404
  if (isPgpmModule) {
@@ -358,7 +358,8 @@ export class PgpmPackage {
358
358
  noTty: options.noTty ?? false,
359
359
  cacheTtlMs: options.cacheTtlMs ?? DEFAULT_TEMPLATE_TTL_MS,
360
360
  toolName: options.toolName ?? DEFAULT_TEMPLATE_TOOL_NAME,
361
- cwd: this.cwd
361
+ cwd: this.cwd,
362
+ prompter: options.prompter,
362
363
  });
363
364
  // Only create pgpm files (pgpm.plan, .control, deploy/revert/verify dirs) for pgpm-managed modules
364
365
  if (isPgpmModule) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgpmjs/core",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PGPM Package and Migration Tools",
6
6
  "main": "index.js",
@@ -44,7 +44,7 @@
44
44
  "@pgsql/types": "^17.6.2",
45
45
  "@types/pg": "^8.16.0",
46
46
  "copyfiles": "^2.4.1",
47
- "inquirerer": "^4.4.0",
47
+ "inquirerer": "^4.5.2",
48
48
  "makage": "^0.1.12"
49
49
  },
50
50
  "dependencies": {
@@ -52,8 +52,8 @@
52
52
  "@pgpmjs/logger": "^2.2.0",
53
53
  "@pgpmjs/server-utils": "^3.2.0",
54
54
  "@pgpmjs/types": "^2.17.0",
55
- "csv-to-pg": "^3.8.0",
56
- "genomic": "^5.3.0",
55
+ "csv-to-pg": "^3.8.1",
56
+ "genomic": "^5.3.5",
57
57
  "glob": "^13.0.0",
58
58
  "komoji": "^0.8.0",
59
59
  "minimatch": "^10.1.1",
@@ -65,5 +65,5 @@
65
65
  "pgsql-parser": "^17.9.11",
66
66
  "yanse": "^0.2.0"
67
67
  },
68
- "gitHead": "1e0c774144be23a4c57a15ffe54ea0ec9fbd7c55"
68
+ "gitHead": "1c9efe4ecd5a6b8daa14fe42214ecf8c5b664198"
69
69
  }