silgi 0.8.56 → 0.8.57
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/_chunks/index.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -660,9 +660,14 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
660
660
|
importItems
|
|
661
661
|
};
|
|
662
662
|
for (const module of silgi.scanModules) {
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
663
|
+
if (module.meta.cliToRuntimeOptionsKeys && module.meta.cliToRuntimeOptionsKeys?.length > 0) {
|
|
664
|
+
for (const key of module.meta.cliToRuntimeOptionsKeys) {
|
|
665
|
+
_data.cliOptions[module.meta.configKey] = {
|
|
666
|
+
..._data.cliOptions[module.meta.configKey],
|
|
667
|
+
[key]: module.options[key]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
}
|
|
666
671
|
}
|
|
667
672
|
await silgi.callHook("prepare:core.ts", _data);
|
|
668
673
|
if (importItems["#silgi/vfs"].import.length === 0) {
|
|
@@ -1073,7 +1078,7 @@ async function _resolveSilgiModule(mod, silgi) {
|
|
|
1073
1078
|
meta: buildTimeModuleMeta,
|
|
1074
1079
|
entryPath: _url,
|
|
1075
1080
|
installed: false,
|
|
1076
|
-
options
|
|
1081
|
+
options
|
|
1077
1082
|
});
|
|
1078
1083
|
}
|
|
1079
1084
|
}
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
|
@@ -469,6 +469,7 @@ interface ModuleMeta {
|
|
|
469
469
|
* @private
|
|
470
470
|
*/
|
|
471
471
|
_packageName?: string;
|
|
472
|
+
cliToRuntimeOptionsKeys?: string[];
|
|
472
473
|
readonly afterDependencies?: ReadonlyArray<string>;
|
|
473
474
|
readonly beforeDependencies?: ReadonlyArray<string>;
|
|
474
475
|
readonly requiredDependencies?: ReadonlyArray<string>;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -469,6 +469,7 @@ interface ModuleMeta {
|
|
|
469
469
|
* @private
|
|
470
470
|
*/
|
|
471
471
|
_packageName?: string;
|
|
472
|
+
cliToRuntimeOptionsKeys?: string[];
|
|
472
473
|
readonly afterDependencies?: ReadonlyArray<string>;
|
|
473
474
|
readonly beforeDependencies?: ReadonlyArray<string>;
|
|
474
475
|
readonly requiredDependencies?: ReadonlyArray<string>;
|