@powerhousedao/ph-cli 0.23.0 → 0.24.0
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/init.d.ts
CHANGED
package/dist/commands/init.js
CHANGED
|
@@ -6,7 +6,8 @@ const init = async (projectName, options) => {
|
|
|
6
6
|
await createProject({
|
|
7
7
|
name: options.project ?? projectName,
|
|
8
8
|
interactive: options.interactive ?? false,
|
|
9
|
-
version: parseVersion(options)
|
|
9
|
+
version: parseVersion(options),
|
|
10
|
+
packageManager: options.packageManager
|
|
10
11
|
});
|
|
11
12
|
} catch (error) {
|
|
12
13
|
console.error("Failed to initialize the project", error);
|
|
@@ -16,7 +17,10 @@ function initCommand(program) {
|
|
|
16
17
|
program.command("init").description("Initialize a new project").argument("[project-name]", "Name of the project").option("-p, --project", "Name of the project").option("-i, --interactive", "Run the command in interactive mode").option(
|
|
17
18
|
"-v, --version",
|
|
18
19
|
'Specify development version to use. Defaults to "main"'
|
|
19
|
-
).option("--dev", 'Use "development" version of the boilerplate').option("--staging", 'Use "development" version of the boilerplate').
|
|
20
|
+
).option("--dev", 'Use "development" version of the boilerplate').option("--staging", 'Use "development" version of the boilerplate').option(
|
|
21
|
+
"--package-manager <packageManager>",
|
|
22
|
+
"force package manager to use"
|
|
23
|
+
).action(init);
|
|
20
24
|
}
|
|
21
25
|
|
|
22
26
|
export { init, initCommand };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/init.ts"],"names":[],"mappings":";;AAIa,MAAA,IAAA,
|
|
1
|
+
{"version":3,"sources":["../../src/commands/init.ts"],"names":[],"mappings":";;AAIa,MAAA,IAAA,GAYT,OAAO,WAAA,EAAa,OAAY,KAAA;AAClC,EAAA,OAAA,CAAQ,IAAI,+BAA+B,CAAA;AAE3C,EAAI,IAAA;AACF,IAAA,MAAM,aAAc,CAAA;AAAA,MAClB,IAAA,EAAM,QAAQ,OAAW,IAAA,WAAA;AAAA,MACzB,WAAA,EAAa,QAAQ,WAAe,IAAA,KAAA;AAAA,MACpC,OAAA,EAAS,aAAa,OAAO,CAAA;AAAA,MAC7B,gBAAgB,OAAQ,CAAA;AAAA,KACzB,CAAA;AAAA,WACM,KAAO,EAAA;AACd,IAAQ,OAAA,CAAA,KAAA,CAAM,oCAAoC,KAAK,CAAA;AAAA;AAE3D;AAEO,SAAS,YAAY,OAAkB,EAAA;AAC5C,EAAA,OAAA,CACG,QAAQ,MAAM,CAAA,CACd,WAAY,CAAA,0BAA0B,EACtC,QAAS,CAAA,gBAAA,EAAkB,qBAAqB,CAAA,CAChD,OAAO,eAAiB,EAAA,qBAAqB,EAC7C,MAAO,CAAA,mBAAA,EAAqB,qCAAqC,CACjE,CAAA,MAAA;AAAA,IACC,eAAA;AAAA,IACA;AAAA,GACF,CACC,OAAO,OAAS,EAAA,8CAA8C,EAC9D,MAAO,CAAA,WAAA,EAAa,8CAA8C,CAClE,CAAA,MAAA;AAAA,IACC,oCAAA;AAAA,IACA;AAAA,GACF,CACC,OAAO,IAAI,CAAA;AAChB","file":"init.js","sourcesContent":["import { Command } from \"commander\";\nimport { createProject, parseVersion } from \"@powerhousedao/codegen\";\nimport { CommandActionType } from \"../types.js\";\n\nexport const init: CommandActionType<\n [\n string | undefined,\n {\n project?: string;\n interactive?: boolean;\n version?: string;\n dev?: boolean;\n staging?: boolean;\n packageManager?: string;\n },\n ]\n> = async (projectName, options) => {\n console.log(\"Initializing a new project...\");\n\n try {\n await createProject({\n name: options.project ?? projectName,\n interactive: options.interactive ?? false,\n version: parseVersion(options),\n packageManager: options.packageManager,\n });\n } catch (error) {\n console.error(\"Failed to initialize the project\", error);\n }\n};\n\nexport function initCommand(program: Command) {\n program\n .command(\"init\")\n .description(\"Initialize a new project\")\n .argument(\"[project-name]\", \"Name of the project\")\n .option(\"-p, --project\", \"Name of the project\")\n .option(\"-i, --interactive\", \"Run the command in interactive mode\")\n .option(\n \"-v, --version\",\n 'Specify development version to use. Defaults to \"main\"',\n )\n .option(\"--dev\", 'Use \"development\" version of the boilerplate')\n .option(\"--staging\", 'Use \"development\" version of the boilerplate')\n .option(\n \"--package-manager <packageManager>\",\n \"force package manager to use\",\n )\n .action(init);\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/ph-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"type": "module",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"graphql-tag": "^2.12.6",
|
|
30
30
|
"knex": "^3.1.0",
|
|
31
31
|
"luxon": "^3.5.0",
|
|
32
|
-
"document-drive": "1.15.
|
|
32
|
+
"document-drive": "1.15.2"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@powerhousedao/connect": "1.0.0-dev.191",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"pm2": "^5.4.3",
|
|
40
40
|
"react": "^18.3.1",
|
|
41
41
|
"react-dom": "^18.3.1",
|
|
42
|
-
"@powerhousedao/codegen": "0.31.
|
|
43
|
-
"@powerhousedao/design-system": "1.21.1",
|
|
42
|
+
"@powerhousedao/codegen": "0.31.2",
|
|
44
43
|
"@powerhousedao/config": "1.11.0",
|
|
45
|
-
"@powerhousedao/reactor-local": "1.15.
|
|
46
|
-
"
|
|
47
|
-
"@powerhousedao/
|
|
44
|
+
"@powerhousedao/reactor-local": "1.15.2",
|
|
45
|
+
"@powerhousedao/scalars": "1.19.0",
|
|
46
|
+
"@powerhousedao/design-system": "1.21.2",
|
|
47
|
+
"document-model-libs": "1.127.2"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsup",
|