silgi 0.7.23 → 0.7.24
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 +16 -4
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +2 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -576,6 +576,14 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
576
576
|
"#silgi/vfs": {
|
|
577
577
|
import: [],
|
|
578
578
|
from: "./vfs"
|
|
579
|
+
},
|
|
580
|
+
"@fastify/deepmerge": {
|
|
581
|
+
import: [
|
|
582
|
+
{
|
|
583
|
+
name: "deepmerge"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
from: "@fastify/deepmerge"
|
|
579
587
|
}
|
|
580
588
|
};
|
|
581
589
|
importItems = { ...data._importItems, ...importItems };
|
|
@@ -642,6 +650,9 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
642
650
|
""
|
|
643
651
|
];
|
|
644
652
|
const importData = [
|
|
653
|
+
"",
|
|
654
|
+
"const mergeDeep = deepmerge({ all: true })",
|
|
655
|
+
"",
|
|
645
656
|
"export const uris = {}",
|
|
646
657
|
"",
|
|
647
658
|
"export const modulesURIs = {}",
|
|
@@ -666,7 +677,8 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
666
677
|
"",
|
|
667
678
|
`export const _silgiOptions: DeepPartial<SilgiRuntimeOptions> = ${JSON.stringify(_silgiOptions, null, 2)}`,
|
|
668
679
|
"",
|
|
669
|
-
"export async function buildSilgi(framework: FrameworkContext, moduleOptions?: Partial<SilgiRuntimeOptions>,buildOptions?: Partial<BuildConfig
|
|
680
|
+
"export async function buildSilgi(framework: FrameworkContext, moduleOptions?: Partial<SilgiRuntimeOptions>,buildOptions?: Partial<BuildConfig>) {",
|
|
681
|
+
"",
|
|
670
682
|
" const silgi = await createSilgi({",
|
|
671
683
|
" framework,",
|
|
672
684
|
" shared: shareds as any,",
|
|
@@ -677,11 +689,11 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
677
689
|
` plugins: [${plugins.join(", ")}],`,
|
|
678
690
|
_silgiConfigs.length > 0 ? ` ${_silgiConfigs.map((config) => typeof config === "string" ? config : typeof config === "object" ? Object.entries(config).map(([key, value]) => `${key}: ${value}`).join(",\n ") : "").join(",\n ")},` : "",
|
|
679
691
|
" ...buildOptions,",
|
|
680
|
-
" options: {",
|
|
692
|
+
" options: mergeDeep({",
|
|
681
693
|
` present: '${silgi.options.preset}',`,
|
|
682
|
-
" ..._silgiOptions,",
|
|
683
694
|
" ...moduleOptions,",
|
|
684
|
-
"
|
|
695
|
+
" ..._silgiOptions",
|
|
696
|
+
" }),",
|
|
685
697
|
" })",
|
|
686
698
|
"",
|
|
687
699
|
...frameworkContext,
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silgi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.24",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -109,6 +109,7 @@
|
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
|
112
|
+
"@fastify/deepmerge": "^2.0.2",
|
|
112
113
|
"@oxc-parser/wasm": "^0.49.0",
|
|
113
114
|
"@standard-schema/spec": "^1.0.0",
|
|
114
115
|
"c12": "^2.0.1",
|