ph-cmd 0.35.2 → 0.35.3

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.
@@ -113,7 +113,7 @@ function getProjectInfo(debug) {
113
113
  }
114
114
  function forwardPHCommand(packageManager, projectPath, args, debug) {
115
115
  const manager = packageManagers[packageManager];
116
- const command = manager.execScript;
116
+ const command = manager.execCommand;
117
117
  const execCommand = command.replace("{{arguments}}", args);
118
118
  const commandOptions = { cwd: projectPath };
119
119
  if (debug) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5HAGY755.js";
4
4
  import {
5
5
  setupGlobalsCommand
6
- } from "./chunk-CICBYVM6.js";
6
+ } from "./chunk-T4ZL4HJX.js";
7
7
 
8
8
  // src/commands/index.ts
9
9
  var commands = [setupGlobalsCommand, initCommand];
@@ -2,7 +2,7 @@ import {
2
2
  forwardPHCommand,
3
3
  getPackageManagerFromLockfile,
4
4
  getProjectInfo
5
- } from "./chunk-D76UCGYZ.js";
5
+ } from "./chunk-C5WXBZBP.js";
6
6
 
7
7
  // src/commands/forward.ts
8
8
  var forwardCommand = (args, options) => {
@@ -27,7 +27,9 @@ var forwardCommand = (args, options) => {
27
27
  if (error.code === "ENOENT") {
28
28
  console.error("Have you run `ph setup-globals` or `ph init`?");
29
29
  }
30
- throw error;
30
+ if (options.debug) {
31
+ throw error;
32
+ }
31
33
  }
32
34
  };
33
35
 
@@ -4,7 +4,7 @@ import {
4
4
  PH_GLOBAL_PROJECT_NAME,
5
5
  POWERHOUSE_GLOBAL_DIR,
6
6
  getPackageManagerFromPath
7
- } from "./chunk-D76UCGYZ.js";
7
+ } from "./chunk-C5WXBZBP.js";
8
8
 
9
9
  // src/commands/setup-globals.ts
10
10
  import { createProject, parseVersion } from "@powerhousedao/codegen";
package/dist/cli.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  forwardCommand
4
- } from "./chunk-22VPCGDT.js";
4
+ } from "./chunk-EGOEXVWG.js";
5
5
  import {
6
6
  registerCommands
7
- } from "./chunk-RO4WBNLC.js";
7
+ } from "./chunk-E325LGZJ.js";
8
8
  import "./chunk-5HAGY755.js";
9
- import "./chunk-CICBYVM6.js";
10
- import "./chunk-D76UCGYZ.js";
9
+ import "./chunk-T4ZL4HJX.js";
10
+ import "./chunk-C5WXBZBP.js";
11
11
 
12
12
  // src/cli.ts
13
13
  import { Command } from "commander";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  forwardCommand
3
- } from "../chunk-22VPCGDT.js";
4
- import "../chunk-D76UCGYZ.js";
3
+ } from "../chunk-EGOEXVWG.js";
4
+ import "../chunk-C5WXBZBP.js";
5
5
  export {
6
6
  forwardCommand
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  commands,
3
3
  registerCommands
4
- } from "../chunk-RO4WBNLC.js";
4
+ } from "../chunk-E325LGZJ.js";
5
5
  import {
6
6
  init,
7
7
  initCommand
@@ -9,8 +9,8 @@ import {
9
9
  import {
10
10
  setupGlobals,
11
11
  setupGlobalsCommand
12
- } from "../chunk-CICBYVM6.js";
13
- import "../chunk-D76UCGYZ.js";
12
+ } from "../chunk-T4ZL4HJX.js";
13
+ import "../chunk-C5WXBZBP.js";
14
14
  export {
15
15
  commands,
16
16
  registerCommands as default,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  setupGlobals,
3
3
  setupGlobalsCommand
4
- } from "../chunk-CICBYVM6.js";
5
- import "../chunk-D76UCGYZ.js";
4
+ } from "../chunk-T4ZL4HJX.js";
5
+ import "../chunk-C5WXBZBP.js";
6
6
  export {
7
7
  setupGlobals,
8
8
  setupGlobalsCommand
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  commands
3
- } from "./chunk-RO4WBNLC.js";
3
+ } from "./chunk-E325LGZJ.js";
4
4
  import {
5
5
  init,
6
6
  initCommand
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  setupGlobals,
10
10
  setupGlobalsCommand
11
- } from "./chunk-CICBYVM6.js";
11
+ } from "./chunk-T4ZL4HJX.js";
12
12
  import {
13
13
  HOME_DIR,
14
14
  PH_BIN,
@@ -25,7 +25,7 @@ import {
25
25
  getProjectInfo,
26
26
  isPowerhouseProject,
27
27
  packageManagers
28
- } from "./chunk-D76UCGYZ.js";
28
+ } from "./chunk-C5WXBZBP.js";
29
29
  export {
30
30
  HOME_DIR,
31
31
  PH_BIN,
package/dist/utils.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  getProjectInfo,
15
15
  isPowerhouseProject,
16
16
  packageManagers
17
- } from "./chunk-D76UCGYZ.js";
17
+ } from "./chunk-C5WXBZBP.js";
18
18
  export {
19
19
  HOME_DIR,
20
20
  PH_BIN,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ph-cmd",
3
- "version": "0.35.2",
3
+ "version": "0.35.3",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",