silgi 0.8.53 → 0.8.54
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
|
@@ -1061,6 +1061,13 @@ async function _resolveSilgiModule(mod, silgi) {
|
|
|
1061
1061
|
if (silgi.scanModules.some((m) => m.meta?.configKey === buildTimeModuleMeta.configKey)) {
|
|
1062
1062
|
throw new Error(`Module with key \`${buildTimeModuleMeta.configKey}\` already exists`);
|
|
1063
1063
|
}
|
|
1064
|
+
const options = await mod.getOptions?.() || {};
|
|
1065
|
+
if (options) {
|
|
1066
|
+
silgi.options._c12.config[buildTimeModuleMeta.configKey] = {
|
|
1067
|
+
...silgi.options._c12.config[buildTimeModuleMeta.configKey],
|
|
1068
|
+
...options
|
|
1069
|
+
};
|
|
1070
|
+
}
|
|
1064
1071
|
silgi.scanModules.push({
|
|
1065
1072
|
meta: buildTimeModuleMeta,
|
|
1066
1073
|
entryPath: _url,
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/types/index.d.mts
CHANGED
package/dist/types/index.d.ts
CHANGED