ph-cmd 0.35.2 → 0.35.4
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/dist/{chunk-D76UCGYZ.js → chunk-C5WXBZBP.js} +1 -1
- package/dist/{chunk-RO4WBNLC.js → chunk-E325LGZJ.js} +1 -1
- package/dist/{chunk-22VPCGDT.js → chunk-EGOEXVWG.js} +4 -2
- package/dist/{chunk-CICBYVM6.js → chunk-T4ZL4HJX.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/commands/forward.js +2 -2
- package/dist/commands/index.js +3 -3
- package/dist/commands/setup-globals.js +2 -2
- package/dist/index.js +3 -3
- package/dist/utils.js +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
116
|
+
const command = manager.execCommand;
|
|
117
117
|
const execCommand = command.replace("{{arguments}}", args);
|
|
118
118
|
const commandOptions = { cwd: projectPath };
|
|
119
119
|
if (debug) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
forwardPHCommand,
|
|
3
3
|
getPackageManagerFromLockfile,
|
|
4
4
|
getProjectInfo
|
|
5
|
-
} from "./chunk-
|
|
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
|
-
|
|
30
|
+
if (options.debug) {
|
|
31
|
+
throw error;
|
|
32
|
+
}
|
|
31
33
|
}
|
|
32
34
|
};
|
|
33
35
|
|
package/dist/cli.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
forwardCommand
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EGOEXVWG.js";
|
|
5
5
|
import {
|
|
6
6
|
registerCommands
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E325LGZJ.js";
|
|
8
8
|
import "./chunk-5HAGY755.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-T4ZL4HJX.js";
|
|
10
|
+
import "./chunk-C5WXBZBP.js";
|
|
11
11
|
|
|
12
12
|
// src/cli.ts
|
|
13
13
|
import { Command } from "commander";
|
package/dist/commands/forward.js
CHANGED
package/dist/commands/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
commands,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "../chunk-
|
|
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-
|
|
13
|
-
import "../chunk-
|
|
12
|
+
} from "../chunk-T4ZL4HJX.js";
|
|
13
|
+
import "../chunk-C5WXBZBP.js";
|
|
14
14
|
export {
|
|
15
15
|
commands,
|
|
16
16
|
registerCommands as default,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
commands
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
28
|
+
} from "./chunk-C5WXBZBP.js";
|
|
29
29
|
export {
|
|
30
30
|
HOME_DIR,
|
|
31
31
|
PH_BIN,
|
package/dist/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ph-cmd",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"commander": "^12.1.0",
|
|
20
|
-
"@powerhousedao/codegen": "0.37.
|
|
20
|
+
"@powerhousedao/codegen": "0.37.2",
|
|
21
21
|
"@powerhousedao/scalars": "1.25.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|