@powerhousedao/ph-cli 0.40.54-dev.2 → 0.40.54-dev.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.
- package/dist/package.json +3 -2
- package/dist/scripts/generate-version.d.ts +2 -0
- package/dist/scripts/generate-version.d.ts.map +1 -0
- package/dist/scripts/generate-version.js +13 -0
- package/dist/scripts/generate-version.js.map +1 -0
- package/dist/src/cli.js +5 -9
- package/dist/src/cli.js.map +1 -1
- package/dist/src/commands/index.d.ts.map +1 -1
- package/dist/src/commands/index.js +0 -2
- package/dist/src/commands/index.js.map +1 -1
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +3 -0
- package/dist/src/version.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/dist/src/commands/version.d.ts +0 -10
- package/dist/src/commands/version.d.ts.map +0 -1
- package/dist/src/commands/version.js +0 -39
- package/dist/src/commands/version.js.map +0 -1
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/ph-cli",
|
|
3
|
-
"version": "0.40.54-dev.
|
|
3
|
+
"version": "0.40.54-dev.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
17
|
"generate-commands-md": "tsx scripts/generate-commands-md.ts",
|
|
18
|
-
"
|
|
18
|
+
"generate-version": "tsx scripts/generate-version.ts",
|
|
19
|
+
"prebuild": "npm run generate-commands-md && npm run generate-version",
|
|
19
20
|
"build": "tsc --build",
|
|
20
21
|
"dev": "concurrently -P 'pnpm -w run build:tsc --watch' 'nodemon --watch \"../..\" -e ts,tsx,js,json dist/src/cli.js -- {@}' --",
|
|
21
22
|
"prepublishOnly": "npm run build",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-version.d.ts","sourceRoot":"","sources":["../../scripts/generate-version.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readFileSync, writeFileSync } from "fs";
|
|
2
|
+
import { join } from "path";
|
|
3
|
+
import { fileURLToPath } from "url";
|
|
4
|
+
const __dirname = fileURLToPath(new URL(".", import.meta.url));
|
|
5
|
+
// Read package.json
|
|
6
|
+
const packageJson = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf-8"));
|
|
7
|
+
// Generate version.ts content
|
|
8
|
+
const versionFileContent = `// This file is auto-generated. DO NOT EDIT.
|
|
9
|
+
export const version = "${packageJson.version}";
|
|
10
|
+
`;
|
|
11
|
+
// Write version.ts
|
|
12
|
+
writeFileSync(join(__dirname, "../src/version.ts"), versionFileContent);
|
|
13
|
+
//# sourceMappingURL=generate-version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-version.js","sourceRoot":"","sources":["../../scripts/generate-version.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAMpC,MAAM,SAAS,GAAG,aAAa,CAAC,IAAI,GAAG,CAAC,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE/D,oBAAoB;AACpB,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAC5B,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,iBAAiB,CAAC,EAAE,OAAO,CAAC,CAC3C,CAAC;AAEjB,8BAA8B;AAC9B,MAAM,kBAAkB,GAAG;0BACD,WAAW,CAAC,OAAO;CAC5C,CAAC;AAEF,mBAAmB;AACnB,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,mBAAmB,CAAC,EAAE,kBAAkB,CAAC,CAAC"}
|
package/dist/src/cli.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from "commander";
|
|
3
3
|
import registerCommands from "./commands/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { version } from "./version.js";
|
|
5
5
|
const program = new Command();
|
|
6
|
-
program
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
catch {
|
|
12
|
-
/* empty */
|
|
13
|
-
}
|
|
6
|
+
program
|
|
7
|
+
.name("ph-cli")
|
|
8
|
+
.description("The Powerhouse CLI (ph-cli) is a command-line interface tool that provides essential commands for managing Powerhouse projects. The tool and it's commands are fundamental for creating, building, and running Document Models as a builder in studio mode.")
|
|
9
|
+
.version(version);
|
|
14
10
|
registerCommands(program);
|
|
15
11
|
program.parse(process.argv);
|
|
16
12
|
//# sourceMappingURL=cli.js.map
|
package/dist/src/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,QAAQ,CAAC;KACd,WAAW,CACV,6PAA6P,CAC9P;KACA,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAE1B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAW9C,eAAO,MAAM,QAAQ,2BAWpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,OAAO,EAAE,OAAO,QAExD"}
|
|
@@ -8,7 +8,6 @@ import { listCommand } from "./list.js";
|
|
|
8
8
|
import { serviceCommand } from "./service.js";
|
|
9
9
|
import { reactorCommand } from "./switchboard.js";
|
|
10
10
|
import { uninstallCommand } from "./uninstall.js";
|
|
11
|
-
import { versionCommand } from "./version.js";
|
|
12
11
|
export const commands = [
|
|
13
12
|
// devCommand,
|
|
14
13
|
connectCommand,
|
|
@@ -20,7 +19,6 @@ export const commands = [
|
|
|
20
19
|
serviceCommand,
|
|
21
20
|
listCommand,
|
|
22
21
|
inspectCommand,
|
|
23
|
-
versionCommand,
|
|
24
22
|
];
|
|
25
23
|
export default function registerCommands(program) {
|
|
26
24
|
commands.forEach((command) => command(program));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,yCAAyC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE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,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC"}
|