@corca-org/ceal 1.0.21 → 1.0.22
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/README.md +2 -0
- package/bin/launch.js +4 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -14,4 +14,6 @@ ceal doctor
|
|
|
14
14
|
ceal-host version
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
This root installs the matching `ceal-host` package and its platform payload as dependencies and provides the `ceal-host` launcher. Do not install or update a separate Host npm root. npm installation does not activate the Host; after installing or updating, run `ceal-host install` and then `ceal-host discovery sync` as described in the [client distribution guide](../../../docs/client-distribution.md).
|
|
18
|
+
|
|
17
19
|
`ceal doctor` is read-only. Its `command_resolution` derives the expected `ceal` and `ceal-host` commands from the installed package identity and reports an earlier PATH shadow even when launcher environment variables are absent, on Unix and Windows.
|
package/bin/launch.js
CHANGED
|
@@ -10,14 +10,16 @@ import { constants as osConstants } from "node:os";
|
|
|
10
10
|
import { spawn } from "node:child_process";
|
|
11
11
|
import { fileURLToPath } from "node:url";
|
|
12
12
|
|
|
13
|
-
const
|
|
13
|
+
const launcherRequire = createRequire(import.meta.url);
|
|
14
14
|
|
|
15
15
|
export function launch(input) {
|
|
16
16
|
const platform = `${process.platform}-${process.arch === "x64" ? "x64" : process.arch}`;
|
|
17
17
|
if (!input.supported.includes(platform)) return refuse(input.product, `unsupported platform ${platform}; supported platforms: ${input.supported.join(", ")}.`);
|
|
18
18
|
let packageRoot;
|
|
19
19
|
try {
|
|
20
|
-
|
|
20
|
+
const metaPackagePath = launcherRequire.resolve(`@corca-org/${input.meta}/package.json`);
|
|
21
|
+
const metaPackageRequire = createRequire(metaPackagePath);
|
|
22
|
+
packageRoot = dirname(metaPackageRequire.resolve(`@corca-org/${input.meta}-${platform}/package.json`));
|
|
21
23
|
} catch {
|
|
22
24
|
return refuse(input.product, `platform package @corca-org/${input.meta}-${platform} is unavailable for ${platform}; supported platforms: ${input.supported.join(", ")}.`);
|
|
23
25
|
}
|
package/package.json
CHANGED
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"ceal-host": "bin/ceal-host.js"
|
|
12
12
|
},
|
|
13
13
|
"optionalDependencies": {
|
|
14
|
-
"@corca-org/ceal-linux-x64": "1.0.
|
|
15
|
-
"@corca-org/ceal-linux-arm64": "1.0.
|
|
16
|
-
"@corca-org/ceal-darwin-arm64": "1.0.
|
|
17
|
-
"@corca-org/ceal-win32-x64": "1.0.
|
|
14
|
+
"@corca-org/ceal-linux-x64": "1.0.22",
|
|
15
|
+
"@corca-org/ceal-linux-arm64": "1.0.22",
|
|
16
|
+
"@corca-org/ceal-darwin-arm64": "1.0.22",
|
|
17
|
+
"@corca-org/ceal-win32-x64": "1.0.22"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@corca-org/ceal-host": "1.0.
|
|
20
|
+
"@corca-org/ceal-host": "1.0.22"
|
|
21
21
|
},
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"bin/launch.js",
|
|
29
29
|
"README.md"
|
|
30
30
|
],
|
|
31
|
-
"version": "1.0.
|
|
31
|
+
"version": "1.0.22",
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public",
|
|
34
34
|
"provenance": false
|