pgpm 5.29.5 → 5.29.6

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.
@@ -7,7 +7,6 @@ exports.createInitUsageText = void 0;
7
7
  const core_1 = require("@pgpmjs/core");
8
8
  const env_1 = require("@pgpmjs/env");
9
9
  const types_1 = require("@pgpmjs/types");
10
- const child_process_1 = require("child_process");
11
10
  const fs_1 = __importDefault(require("fs"));
12
11
  const inquirerer_1 = require("inquirerer");
13
12
  const path_1 = __importDefault(require("path"));
@@ -273,9 +272,8 @@ function installSkillsViaNpx(skills, cwd) {
273
272
  ? entry.source
274
273
  : `https://github.com/${entry.source}`;
275
274
  for (const skill of entry.skills) {
276
- const cmd = `npx --yes skills add ${source} --skill ${skill} --yes`;
277
275
  try {
278
- (0, child_process_1.execSync)(cmd, {
276
+ (0, core_1.spawnSyncChecked)('npx', ['--yes', 'skills', 'add', source, '--skill', skill, '--yes'], {
279
277
  cwd,
280
278
  stdio: ['pipe', 'inherit', 'inherit'],
281
279
  timeout: 120_000,
@@ -1,7 +1,6 @@
1
- import { DEFAULT_TEMPLATE_REPO, DEFAULT_TEMPLATE_TOOL_NAME, inspectTemplate, PgpmPackage, resolveBoilerplateBaseDir, scaffoldTemplate, scanBoilerplates, SkillInstaller, sluggify, } from '@pgpmjs/core';
1
+ import { DEFAULT_TEMPLATE_REPO, DEFAULT_TEMPLATE_TOOL_NAME, inspectTemplate, PgpmPackage, resolveBoilerplateBaseDir, scaffoldTemplate, scanBoilerplates, SkillInstaller, sluggify, spawnSyncChecked, } from '@pgpmjs/core';
2
2
  import { resolveWorkspaceByType } from '@pgpmjs/env';
3
3
  import { errors } from '@pgpmjs/types';
4
- import { execSync } from 'child_process';
5
4
  import fs from 'fs';
6
5
  import { registerDefaultResolver } from 'inquirerer';
7
6
  import path from 'path';
@@ -266,9 +265,8 @@ function installSkillsViaNpx(skills, cwd) {
266
265
  ? entry.source
267
266
  : `https://github.com/${entry.source}`;
268
267
  for (const skill of entry.skills) {
269
- const cmd = `npx --yes skills add ${source} --skill ${skill} --yes`;
270
268
  try {
271
- execSync(cmd, {
269
+ spawnSyncChecked('npx', ['--yes', 'skills', 'add', source, '--skill', skill, '--yes'], {
272
270
  cwd,
273
271
  stdio: ['pipe', 'inherit', 'inherit'],
274
272
  timeout: 120_000,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgpm",
3
- "version": "5.29.5",
3
+ "version": "5.29.6",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "PostgreSQL Package Manager - Database migration and package management CLI",
6
6
  "main": "index.js",
@@ -34,6 +34,7 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@inquirerer/test": "^1.4.5",
37
+ "@types/cross-spawn": "^6.0.6",
37
38
  "@types/js-yaml": "^4.0.9",
38
39
  "@types/node": "^22.19.11",
39
40
  "@types/pg": "^8.20.4",
@@ -46,10 +47,10 @@
46
47
  },
47
48
  "dependencies": {
48
49
  "@inquirerer/utils": "^3.3.12",
49
- "@pgpmjs/core": "^7.27.1",
50
+ "@pgpmjs/core": "^7.27.2",
50
51
  "@pgpmjs/diff": "^0.5.1",
51
52
  "@pgpmjs/env": "^2.43.1",
52
- "@pgpmjs/export": "^1.20.5",
53
+ "@pgpmjs/export": "^1.20.6",
53
54
  "@pgpmjs/import": "^0.5.1",
54
55
  "@pgpmjs/logger": "^2.25.0",
55
56
  "@pgpmjs/slice": "^0.16.1",
@@ -57,6 +58,7 @@
57
58
  "@pgpmjs/types": "^2.52.1",
58
59
  "@pgsql/quotes": "^18.2.4",
59
60
  "appstash": "^0.8.0",
61
+ "cross-spawn": "^7.0.6",
60
62
  "find-and-require-package-json": "^0.9.1",
61
63
  "genomic": "^5.6.5",
62
64
  "inquirerer": "^4.9.3",
@@ -80,5 +82,5 @@
80
82
  "pg",
81
83
  "pgsql"
82
84
  ],
83
- "gitHead": "9a919ff3f7ec90eab2d510bb6682ce5209e53198"
85
+ "gitHead": "608acc891de5197ad3cb4bfd0babe1050dbec24a"
84
86
  }