silgi 0.24.7 → 0.24.9
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/cli/index.mjs +1 -1
- package/dist/cli/prepare.mjs +6 -5
- package/package.json +1 -1
package/dist/cli/index.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -1582,12 +1582,13 @@ async function installPackages(silgi) {
|
|
|
1582
1582
|
}
|
|
1583
1583
|
|
|
1584
1584
|
function useCLIRuntimeConfig(silgi) {
|
|
1585
|
-
const
|
|
1586
|
-
silgi.options.runtimeConfig = _sharedRuntimeConfig;
|
|
1585
|
+
const safeRuntimeConfig = JSON.parse(JSON.stringify(silgi.options.runtimeConfig));
|
|
1587
1586
|
silgi.hook("prepare:configs.ts", (data) => {
|
|
1588
|
-
data.runtimeConfig =
|
|
1587
|
+
data.runtimeConfig = safeRuntimeConfig;
|
|
1589
1588
|
silgi.options.envOptions = silgi.options.envOptions;
|
|
1590
1589
|
});
|
|
1590
|
+
const _sharedRuntimeConfig = initRuntimeConfig(silgi.options.envOptions, silgi.options.runtimeConfig);
|
|
1591
|
+
silgi.options.runtimeConfig = _sharedRuntimeConfig;
|
|
1591
1592
|
return _sharedRuntimeConfig;
|
|
1592
1593
|
}
|
|
1593
1594
|
|
|
@@ -1804,14 +1805,14 @@ async function prepareCoreFile(data, frameworkContext, silgi) {
|
|
|
1804
1805
|
import: [],
|
|
1805
1806
|
from: "./vfs"
|
|
1806
1807
|
},
|
|
1807
|
-
"silgi/runtime
|
|
1808
|
+
"silgi/runtime": {
|
|
1808
1809
|
import: [
|
|
1809
1810
|
{
|
|
1810
1811
|
name: "mergeDeep",
|
|
1811
1812
|
key: "mergeDeep"
|
|
1812
1813
|
}
|
|
1813
1814
|
],
|
|
1814
|
-
from: "silgi/runtime
|
|
1815
|
+
from: "silgi/runtime"
|
|
1815
1816
|
},
|
|
1816
1817
|
"scan.ts": {
|
|
1817
1818
|
import: [
|