@skild/core 0.2.3 → 0.2.5
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/index.d.ts +5 -0
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,11 @@ interface InstallOptions {
|
|
|
14
14
|
platform?: Platform;
|
|
15
15
|
scope?: InstallScope;
|
|
16
16
|
force?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Registry base URL to use when resolving registry dependencies for non-registry installs (e.g. local skillsets).
|
|
19
|
+
* If omitted, falls back to `SKILD_REGISTRY_URL` env var or the default registry.
|
|
20
|
+
*/
|
|
21
|
+
registryUrl?: string;
|
|
17
22
|
}
|
|
18
23
|
interface ListOptions {
|
|
19
24
|
platform?: Platform;
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,8 @@ import os from "os";
|
|
|
21
21
|
import path from "path";
|
|
22
22
|
import fs from "fs";
|
|
23
23
|
function getHomeDir() {
|
|
24
|
+
const override = process.env.SKILD_HOME?.trim();
|
|
25
|
+
if (override) return path.resolve(override);
|
|
24
26
|
return os.homedir();
|
|
25
27
|
}
|
|
26
28
|
function getProjectDir() {
|
|
@@ -783,7 +785,7 @@ function createInstallContext(options, registryUrl) {
|
|
|
783
785
|
platform,
|
|
784
786
|
scope,
|
|
785
787
|
force: Boolean(options.force),
|
|
786
|
-
registryUrl,
|
|
788
|
+
registryUrl: registryUrl ?? options.registryUrl,
|
|
787
789
|
active: /* @__PURE__ */ new Set(),
|
|
788
790
|
inlineActive: /* @__PURE__ */ new Set()
|
|
789
791
|
};
|