silgi 0.9.15 → 0.9.16
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 +1 -1
- package/dist/cli/prepare.mjs +2 -3
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -146,9 +146,8 @@ async function readCoreFile(silgi) {
|
|
|
146
146
|
});
|
|
147
147
|
try {
|
|
148
148
|
if (silgi.options.commandType === "prepare") {
|
|
149
|
-
injectedResult.code = injectedResult.code.replace(/runtimeConfig: \{\}/,
|
|
149
|
+
injectedResult.code = injectedResult.code.replace(/runtimeConfig: \{\}/, `runtimeConfig: ${JSON.stringify(silgi.options.runtimeConfig)}`);
|
|
150
150
|
}
|
|
151
|
-
console.log(injectedResult.code);
|
|
152
151
|
const coreFile = await jiti.evalModule(
|
|
153
152
|
injectedResult.code,
|
|
154
153
|
{
|
|
@@ -1800,7 +1799,7 @@ function useCLIRuntimeConfig(silgi) {
|
|
|
1800
1799
|
const _sharedRuntimeConfig = _deepFreeze(
|
|
1801
1800
|
applyEnv(klona(_inlineRuntimeConfig), envOptions)
|
|
1802
1801
|
);
|
|
1803
|
-
|
|
1802
|
+
silgi.options.runtimeConfig = _sharedRuntimeConfig;
|
|
1804
1803
|
return _sharedRuntimeConfig;
|
|
1805
1804
|
}
|
|
1806
1805
|
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED