pgpm 4.4.1 → 4.6.2

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.
@@ -61,7 +61,7 @@ async function handleInit(argv, prompter) {
61
61
  const { cwd = process.cwd() } = argv;
62
62
  const templateRepo = argv.repo ?? core_1.DEFAULT_TEMPLATE_REPO;
63
63
  const branch = argv.fromBranch;
64
- const noTty = Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true');
64
+ const noTty = Boolean(argv.noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true');
65
65
  const useBoilerplatePrompt = Boolean(argv.boilerplate);
66
66
  const createWorkspace = Boolean(argv.createWorkspace || argv['create-workspace'] || argv.w);
67
67
  // Get fromPath from first positional arg
@@ -312,7 +312,7 @@ async function handleModuleInit(argv, prompter, ctx, wasExplicitModuleRequest =
312
312
  workspaceTypeName = workspaceType.toUpperCase();
313
313
  }
314
314
  if (!resolvedWorkspacePath) {
315
- const noTty = Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true');
315
+ const noTty = Boolean(argv.noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true');
316
316
  // Handle --create-workspace flag: create workspace first, then module
317
317
  if (ctx.createWorkspace && (workspaceType === 'pgpm' || workspaceType === 'pnpm')) {
318
318
  // Resolve workspace template repo with fallback to default
@@ -49,7 +49,7 @@ async function runWorkspaceSetup(argv, prompter) {
49
49
  workspaceName: answers.name
50
50
  },
51
51
  toolName: core_1.DEFAULT_TEMPLATE_TOOL_NAME,
52
- noTty: Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true'),
52
+ noTty: Boolean(argv.noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true'),
53
53
  cwd,
54
54
  prompter
55
55
  });
@@ -54,7 +54,7 @@ async function handleInit(argv, prompter) {
54
54
  const { cwd = process.cwd() } = argv;
55
55
  const templateRepo = argv.repo ?? DEFAULT_TEMPLATE_REPO;
56
56
  const branch = argv.fromBranch;
57
- const noTty = Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true');
57
+ const noTty = Boolean(argv.noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true');
58
58
  const useBoilerplatePrompt = Boolean(argv.boilerplate);
59
59
  const createWorkspace = Boolean(argv.createWorkspace || argv['create-workspace'] || argv.w);
60
60
  // Get fromPath from first positional arg
@@ -305,7 +305,7 @@ async function handleModuleInit(argv, prompter, ctx, wasExplicitModuleRequest =
305
305
  workspaceTypeName = workspaceType.toUpperCase();
306
306
  }
307
307
  if (!resolvedWorkspacePath) {
308
- const noTty = Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true');
308
+ const noTty = Boolean(argv.noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true');
309
309
  // Handle --create-workspace flag: create workspace first, then module
310
310
  if (ctx.createWorkspace && (workspaceType === 'pgpm' || workspaceType === 'pnpm')) {
311
311
  // Resolve workspace template repo with fallback to default
@@ -43,7 +43,7 @@ export default async function runWorkspaceSetup(argv, prompter) {
43
43
  workspaceName: answers.name
44
44
  },
45
45
  toolName: DEFAULT_TEMPLATE_TOOL_NAME,
46
- noTty: Boolean(argv.noTty || argv['no-tty'] || process.env.CI === 'true'),
46
+ noTty: Boolean(argv.noTty || argv['no-tty'] || argv.tty === false || process.env.CI === 'true'),
47
47
  cwd,
48
48
  prompter
49
49
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "4.4.1",
3
+ "version": "4.6.2",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostgreSQL Package Manager - Database migration and package management CLI",
6
6
  "main": "index.js",
@@ -46,18 +46,18 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@inquirerer/utils": "^3.3.1",
49
- "@pgpmjs/core": "^6.4.2",
50
- "@pgpmjs/env": "^2.13.0",
51
- "@pgpmjs/logger": "^2.2.1",
52
- "@pgpmjs/types": "^2.17.0",
49
+ "@pgpmjs/core": "^6.6.2",
50
+ "@pgpmjs/env": "^2.15.2",
51
+ "@pgpmjs/logger": "^2.4.2",
52
+ "@pgpmjs/types": "^2.19.2",
53
53
  "@pgsql/quotes": "^17.1.0",
54
54
  "appstash": "^0.5.0",
55
55
  "find-and-require-package-json": "^0.9.1",
56
56
  "genomic": "^5.3.5",
57
57
  "inquirerer": "^4.5.2",
58
58
  "js-yaml": "^4.1.0",
59
- "pg-cache": "^3.1.1",
60
- "pg-env": "^1.5.0",
59
+ "pg-cache": "^3.3.2",
60
+ "pg-env": "^1.7.2",
61
61
  "pgsql-deparser": "^17.18.0",
62
62
  "semver": "^7.7.4",
63
63
  "shelljs": "^0.10.0",
@@ -75,5 +75,5 @@
75
75
  "pg",
76
76
  "pgsql"
77
77
  ],
78
- "gitHead": "d0d7d3916b70c8d960bc13e40ac85d73ea869224"
78
+ "gitHead": "4fd2c9be786ad9ae2213453276a69723435d5315"
79
79
  }