ph-cmd 0.18.1 → 0.18.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.
package/dist/commands/connect.js
CHANGED
|
@@ -7,7 +7,7 @@ async function startConnect(connectOptions) {
|
|
|
7
7
|
return await startConnectStudio(options);
|
|
8
8
|
}
|
|
9
9
|
function connectCommand(program) {
|
|
10
|
-
program.
|
|
10
|
+
program.command("connect").description("Starts Connect Studio").option("-p, --port <port>", "Port to run the server on", "3000").option("-h, --host", "Expose the server to the network").option(
|
|
11
11
|
"--config-file <configFile>",
|
|
12
12
|
"Path to the powerhouse.config.js file"
|
|
13
13
|
).option(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/connect.ts"],"names":[],"mappings":";;;AASA,eAAsB,aAAa,cAAgC,EAAA;AACjE,EAAA,MAAM,EAAE,iBAAA,EAAmB,UAAW,EAAA,GAAI,SAAU,EAAA;AACpD,EAAA,MAAM,OAAU,GAAA,EAAE,iBAAmB,EAAA,UAAA,EAAY,GAAG,cAAe,EAAA;AACnE,EAAO,OAAA,MAAM,mBAAmB,OAAO,CAAA;AACzC;AAEO,SAAS,eAAe,OAAkB,EAAA;AAC/C,EAAA,OAAA,CACG,
|
|
1
|
+
{"version":3,"sources":["../../src/commands/connect.ts"],"names":[],"mappings":";;;AASA,eAAsB,aAAa,cAAgC,EAAA;AACjE,EAAA,MAAM,EAAE,iBAAA,EAAmB,UAAW,EAAA,GAAI,SAAU,EAAA;AACpD,EAAA,MAAM,OAAU,GAAA,EAAE,iBAAmB,EAAA,UAAA,EAAY,GAAG,cAAe,EAAA;AACnE,EAAO,OAAA,MAAM,mBAAmB,OAAO,CAAA;AACzC;AAEO,SAAS,eAAe,OAAkB,EAAA;AAC/C,EAAA,OAAA,CACG,OAAQ,CAAA,SAAS,CACjB,CAAA,WAAA,CAAY,uBAAuB,CACnC,CAAA,MAAA,CAAO,mBAAqB,EAAA,2BAAA,EAA6B,MAAM,CAAA,CAC/D,MAAO,CAAA,YAAA,EAAc,kCAAkC,CACvD,CAAA,MAAA;AAAA,IACC,4BAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qCAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,yCAAA;AAAA,IACA;AAAA,GACF,CACC,MAAO,CAAA,OAAA,GAAU,IAA2B,KAAA;AAC3C,IAAM,MAAA,kBAAA,CAAmB,GAAG,IAAI,CAAA;AAAA,GACjC,CAAA;AACL;AAEA,IAAI,OAAQ,CAAA,IAAA,CAAK,EAAG,CAAA,CAAC,MAAM,OAAS,EAAA;AAClC,EAAA,MAAM,UAAa,GAAA,OAAA,CAAQ,IAAK,CAAA,EAAA,CAAG,CAAC,CAAA;AACpC,EAAA,MAAM,UAAU,UAAc,GAAA,IAAA,CAAK,KAAM,CAAA,UAAU,IAAuB,EAAC;AAC3E,EAAA,YAAA,CAAa,OAAO,CAAA,CAAE,KAAM,CAAA,CAAC,CAAe,KAAA;AAC1C,IAAM,MAAA,CAAA;AAAA,GACP,CAAA;AACH","file":"connect.js","sourcesContent":["import {\n startConnectStudio,\n ConnectStudioOptions,\n} from \"@powerhousedao/connect\";\nimport { getConfig } from \"@powerhousedao/config/powerhouse\";\nimport { Command } from \"commander\";\n\nexport type ConnectOptions = ConnectStudioOptions;\n\nexport async function startConnect(connectOptions: ConnectOptions) {\n const { documentModelsDir, editorsDir } = getConfig();\n const options = { documentModelsDir, editorsDir, ...connectOptions };\n return await startConnectStudio(options);\n}\n\nexport function connectCommand(program: Command) {\n program\n .command(\"connect\")\n .description(\"Starts Connect Studio\")\n .option(\"-p, --port <port>\", \"Port to run the server on\", \"3000\")\n .option(\"-h, --host\", \"Expose the server to the network\")\n .option(\n \"--config-file <configFile>\",\n \"Path to the powerhouse.config.js file\",\n )\n .option(\n \"-le, --local-editors <localEditors>\",\n \"Link local document editors path\",\n )\n .option(\n \"-ld, --local-documents <localDocuments>\",\n \"Link local documents path\",\n )\n .action(async (...args: [ConnectOptions]) => {\n await startConnectStudio(...args);\n });\n}\n\nif (process.argv.at(2) === \"spawn\") {\n const optionsArg = process.argv.at(3);\n const options = optionsArg ? (JSON.parse(optionsArg) as ConnectOptions) : {};\n startConnect(options).catch((e: unknown) => {\n throw e;\n });\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ph-cmd",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"graphql": "^16.9.0",
|
|
39
39
|
"react": "^18.3.1",
|
|
40
40
|
"react-dom": "^18.3.1",
|
|
41
|
-
"@powerhousedao/codegen": "0.28.1",
|
|
42
41
|
"@powerhousedao/config": "1.5.0",
|
|
42
|
+
"@powerhousedao/codegen": "0.28.1",
|
|
43
43
|
"@powerhousedao/design-system": "1.19.0",
|
|
44
|
-
"@powerhousedao/
|
|
44
|
+
"@powerhousedao/reactor-local": "1.13.0",
|
|
45
45
|
"document-model-libs": "1.125.3",
|
|
46
|
-
"@powerhousedao/
|
|
46
|
+
"@powerhousedao/scalars": "1.16.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsup",
|