silgi 0.12.0 → 0.12.2
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/loader.mjs
CHANGED
|
@@ -1580,15 +1580,15 @@ async function prepareConfigs(silgi) {
|
|
|
1580
1580
|
const runtimeConfig = JSON.parse(JSON.stringify(_data.runtimeConfig || {}));
|
|
1581
1581
|
delete _data.runtimeConfig;
|
|
1582
1582
|
const importData = [
|
|
1583
|
-
"import type { SilgiRuntimeOptions } from 'silgi/types'",
|
|
1583
|
+
"import type { SilgiRuntimeOptions, SilgiRuntimeConfig } from 'silgi/types'",
|
|
1584
1584
|
"import { useSilgiRuntimeConfig } from 'silgi/kit'",
|
|
1585
1585
|
"",
|
|
1586
|
-
`export const runtimeConfig = ${serializeToJs(runtimeConfig)}`,
|
|
1586
|
+
`export const runtimeConfig: Partial<SilgiRuntimeConfig> = ${serializeToJs(runtimeConfig)}`,
|
|
1587
1587
|
"",
|
|
1588
1588
|
"const runtime = useSilgiRuntimeConfig(undefined, runtimeConfig)",
|
|
1589
1589
|
"",
|
|
1590
1590
|
"export const cliConfigs: Partial<SilgiRuntimeOptions> = {",
|
|
1591
|
-
" runtimeConfig:
|
|
1591
|
+
" runtimeConfig: runtime,",
|
|
1592
1592
|
` ${serializeToJs(_data).replace(/^\{/, "").replace(/\}$/, "")}`,
|
|
1593
1593
|
"}",
|
|
1594
1594
|
""
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED