silgi 0.7.27 → 0.7.29
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 +12 -5
- package/dist/core/index.mjs +2 -2
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/dist/runtime/internal/deepmerge.d.ts +1 -1
- package/dist/runtime/internal/deepmerge.mjs +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/cli/prepare.mjs
CHANGED
|
@@ -693,11 +693,18 @@ 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
|
-
|
|
697
|
-
` present: '${silgi.options.preset}',`,
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
696
|
+
// ' options: deepMerge({',
|
|
697
|
+
// ` present: '${silgi.options.preset}',`,
|
|
698
|
+
// ' ...moduleOptions,',
|
|
699
|
+
// ' ..._silgiOptions',
|
|
700
|
+
// ' }),',
|
|
701
|
+
" options: deepMerge(",
|
|
702
|
+
" {",
|
|
703
|
+
` present: '${silgi.options.preset}',`,
|
|
704
|
+
" },",
|
|
705
|
+
" moduleOptions,",
|
|
706
|
+
" _silgiOptions",
|
|
707
|
+
" ) as any,",
|
|
701
708
|
" })",
|
|
702
709
|
"",
|
|
703
710
|
...frameworkContext,
|
package/dist/core/index.mjs
CHANGED
|
@@ -561,7 +561,7 @@ async function createSilgi(config) {
|
|
|
561
561
|
plugins: config.plugins ?? [],
|
|
562
562
|
framework: config.framework ?? void 0,
|
|
563
563
|
storage: config.storage ?? void 0,
|
|
564
|
-
options: config.options,
|
|
564
|
+
options: config.options ?? {},
|
|
565
565
|
hooks,
|
|
566
566
|
callHook: hooks.callHook,
|
|
567
567
|
addHooks: hooks.addHooks,
|
|
@@ -570,7 +570,7 @@ async function createSilgi(config) {
|
|
|
570
570
|
return hooks.callHook("ready", silgi);
|
|
571
571
|
},
|
|
572
572
|
close: () => hooks.callHook("close", silgi),
|
|
573
|
-
logger: createConsola(defu(config.options
|
|
573
|
+
logger: createConsola(defu(config.options?.consolaOptions ?? {}, {
|
|
574
574
|
tag: "silgi"
|
|
575
575
|
})).withTag("silgi"),
|
|
576
576
|
captureError: config.captureError ?? (() => {
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const deepMerge: import("@fastify/deepmerge").
|
|
1
|
+
export declare const deepMerge: import("@fastify/deepmerge").DeepMergeFn;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { deepmerge } from "@fastify/deepmerge";
|
|
2
|
-
export const deepMerge = deepmerge(
|
|
2
|
+
export const deepMerge = deepmerge();
|