silgi 0.7.41 → 0.7.43
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
|
@@ -577,13 +577,13 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
577
577
|
import: [],
|
|
578
578
|
from: "./vfs"
|
|
579
579
|
},
|
|
580
|
-
"defu": {
|
|
580
|
+
"silgi/runtime/internal/defu": {
|
|
581
581
|
import: [
|
|
582
582
|
{
|
|
583
|
-
name: "
|
|
583
|
+
name: "mergeDeep"
|
|
584
584
|
}
|
|
585
585
|
],
|
|
586
|
-
from: "defu"
|
|
586
|
+
from: "silgi/runtime/internal/defu"
|
|
587
587
|
}
|
|
588
588
|
};
|
|
589
589
|
importItems = { ...data._importItems, ...importItems };
|
|
@@ -675,7 +675,7 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
675
675
|
}),
|
|
676
676
|
shareds.length > 0 ? "])" : "}",
|
|
677
677
|
"",
|
|
678
|
-
`export const _silgiOptions
|
|
678
|
+
`export const _silgiOptions = ${JSON.stringify(_silgiOptions, null, 2)}`,
|
|
679
679
|
"",
|
|
680
680
|
"export async function buildSilgi(framework: FrameworkContext, moduleOptions?: Partial<SilgiRuntimeOptions>,buildOptions?: Partial<BuildConfig>) {",
|
|
681
681
|
"",
|
|
@@ -693,7 +693,7 @@ async function silgiCoreFile(data, frameworkContext, silgi) {
|
|
|
693
693
|
` plugins: [${plugins.join(", ")}],`,
|
|
694
694
|
_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 ")},` : "",
|
|
695
695
|
" ...buildOptions,",
|
|
696
|
-
" options:
|
|
696
|
+
" options: mergeDeep(",
|
|
697
697
|
" moduleOptions || {},",
|
|
698
698
|
" {",
|
|
699
699
|
` present: '${silgi.options.preset}',`,
|
package/dist/cli/types.mjs
CHANGED
|
@@ -304,7 +304,7 @@ async function resolvePathOptions(options) {
|
|
|
304
304
|
}
|
|
305
305
|
options.alias ||= {};
|
|
306
306
|
options.alias[packageJson.name] = join(options.rootDir, "src/module");
|
|
307
|
-
options.alias[`${packageJson.name}/runtime
|
|
307
|
+
options.alias[`${packageJson.name}/runtime/`] = join(options.rootDir, "src/runtime");
|
|
308
308
|
options.alias[`${packageJson.name}/runtime/*`] = join(options.rootDir, "src/runtime/*");
|
|
309
309
|
options.alias[`${packageJson.name}/types`] = join(options.rootDir, "src/types");
|
|
310
310
|
}
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mergeDeep(source: any, ...defaults: any[]): any;
|
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.43",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"exports": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"import": "./dist/presets/index.mjs"
|
|
43
43
|
},
|
|
44
44
|
"./runtime": {
|
|
45
|
-
"
|
|
46
|
-
"
|
|
45
|
+
"silgiCore": "./dist/runtime/*.ts",
|
|
46
|
+
"silgiCoreTypes": "./dist/runtime/*.ts",
|
|
47
47
|
"types": "./runtime.d.ts",
|
|
48
48
|
"import": "./dist/runtime/index.mjs"
|
|
49
49
|
},
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
"import": "./runtime-meta.mjs"
|
|
53
53
|
},
|
|
54
54
|
"./runtime/*": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
55
|
+
"silgiCore": "./dist/runtime/*.ts",
|
|
56
|
+
"silgiCoreTypes": "./dist/runtime/*.ts",
|
|
57
57
|
"types": "./dist/runtime/*.d.ts",
|
|
58
58
|
"import": "./dist/runtime/*.mjs"
|
|
59
59
|
},
|