@helyx/cli 0.1.0 → 0.1.1
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/CHANGELOG.md +9 -0
- package/README.md +2 -2
- package/dist/self-host/project-generator.js +5 -3
- package/package.json +4 -3
- package/self-host-catalogue.json +5 -5
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Helyx CLI
|
|
2
2
|
|
|
3
|
-
The
|
|
3
|
+
The supported Helyx command-line entry point for running and generating self-hosted deployments.
|
|
4
4
|
|
|
5
5
|
```text
|
|
6
6
|
helyx start
|
|
@@ -13,4 +13,4 @@ helyx self-host init --manifest ./helyx-build.json --output ./helyx
|
|
|
13
13
|
|
|
14
14
|
`self-host init` validates a build manifest against the reviewed catalogue shipped with this exact CLI version, creates a new starter-project directory, pins the runtime and selected official modules, generates a lockfile with lifecycle scripts disabled, and writes checksums. Add `--install` only when the dependencies should also be installed locally. Unknown, unpublished, duplicated or modified package selections fail closed.
|
|
15
15
|
|
|
16
|
-
The package
|
|
16
|
+
The package is published under the Helyx Source Available Licence. Generated projects contain deployment configuration and exact public npm dependencies; they do not contain Helyx source code or credentials.
|
|
@@ -170,14 +170,16 @@ function assertSafeTargetDirectory(targetDirectory) {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
async function runNpmCommand(arguments_, workingDirectory) {
|
|
173
|
-
const
|
|
173
|
+
const npmCli = process.env.npm_execpath;
|
|
174
|
+
const executable = npmCli ? process.execPath : "npm";
|
|
175
|
+
const commandArguments = npmCli ? [npmCli, ...arguments_] : [...arguments_];
|
|
174
176
|
await new Promise((resolvePromise, reject) => {
|
|
175
|
-
const child = spawn(executable,
|
|
177
|
+
const child = spawn(executable, commandArguments, {
|
|
176
178
|
cwd: workingDirectory,
|
|
177
179
|
env: arguments_.includes("--ignore-scripts")
|
|
178
180
|
? { ...process.env, npm_config_ignore_scripts: "true" }
|
|
179
181
|
: process.env,
|
|
180
|
-
shell:
|
|
182
|
+
shell: process.platform === "win32" && npmCli === undefined,
|
|
181
183
|
stdio: ["ignore", "pipe", "pipe"],
|
|
182
184
|
});
|
|
183
185
|
child.stdout.resume();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helyx/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Command-line tools for running and generating self-hosted Helyx deployments.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"helyx",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"self-host-catalogue.json",
|
|
36
36
|
"templates",
|
|
37
37
|
"README.md",
|
|
38
|
+
"CHANGELOG.md",
|
|
38
39
|
"LICENSE"
|
|
39
40
|
],
|
|
40
41
|
"bin": {
|
|
@@ -51,8 +52,8 @@
|
|
|
51
52
|
"build": "tsc -b"
|
|
52
53
|
},
|
|
53
54
|
"dependencies": {
|
|
54
|
-
"@helyx/bot": "0.1.
|
|
55
|
-
"@helyx/config": "0.1.
|
|
55
|
+
"@helyx/bot": "0.1.1",
|
|
56
|
+
"@helyx/config": "0.1.1",
|
|
56
57
|
"@helyx/database": "0.1.0",
|
|
57
58
|
"semver": "7.8.5",
|
|
58
59
|
"zod": "4.4.3"
|
package/self-host-catalogue.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"catalogueVersion":
|
|
3
|
+
"catalogueVersion": 5,
|
|
4
4
|
"core": {
|
|
5
5
|
"package": "@helyx/bot",
|
|
6
|
-
"version": "0.1.
|
|
7
|
-
"availability": "
|
|
6
|
+
"version": "0.1.1",
|
|
7
|
+
"availability": "published"
|
|
8
8
|
},
|
|
9
9
|
"generator": {
|
|
10
10
|
"package": "@helyx/cli",
|
|
11
|
-
"version": "0.1.
|
|
11
|
+
"version": "0.1.1",
|
|
12
12
|
"command": "helyx",
|
|
13
|
-
"availability": "
|
|
13
|
+
"availability": "published"
|
|
14
14
|
},
|
|
15
15
|
"modules": [
|
|
16
16
|
{
|