silgi 0.9.28 → 0.9.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/kit/index.d.mts +1 -2
- package/dist/kit/index.d.ts +1 -2
- package/dist/kit/index.mjs +3 -1
- package/dist/meta/index.d.mts +1 -1
- package/dist/meta/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/_chunks/index.mjs
CHANGED
package/dist/kit/index.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Buffer } from 'node:buffer';
|
|
2
2
|
import * as consola from 'consola';
|
|
3
3
|
import { ConsolaOptions } from 'consola';
|
|
4
|
-
import * as silgi_types from 'silgi/types';
|
|
5
4
|
import { ModuleOptionsCustom, ModuleDefinition, SilgiModule, SilgiCLI, SilgiPreset, SilgiPresetMeta, EnvOptions, SilgiEvents, SilgiTemplate, ResolvedSilgiTemplate } from 'silgi/types';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -83,7 +82,7 @@ declare function resolveSilgiModule(base: string, paths: string[]): Promise<stri
|
|
|
83
82
|
*
|
|
84
83
|
* This mirrors the runtime behavior of Nitro.
|
|
85
84
|
*/
|
|
86
|
-
declare function useSilgiRuntimeConfig(event?: SilgiEvents):
|
|
85
|
+
declare function useSilgiRuntimeConfig(event?: SilgiEvents): any;
|
|
87
86
|
declare function applyEnv(obj: Record<string, any>, opts: EnvOptions, parentKey?: string): Record<string, any>;
|
|
88
87
|
|
|
89
88
|
/**
|
package/dist/kit/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Buffer } from 'node:buffer';
|
|
2
2
|
import * as consola from 'consola';
|
|
3
3
|
import { ConsolaOptions } from 'consola';
|
|
4
|
-
import * as silgi_types from 'silgi/types';
|
|
5
4
|
import { ModuleOptionsCustom, ModuleDefinition, SilgiModule, SilgiCLI, SilgiPreset, SilgiPresetMeta, EnvOptions, SilgiEvents, SilgiTemplate, ResolvedSilgiTemplate } from 'silgi/types';
|
|
6
5
|
|
|
7
6
|
/**
|
|
@@ -83,7 +82,7 @@ declare function resolveSilgiModule(base: string, paths: string[]): Promise<stri
|
|
|
83
82
|
*
|
|
84
83
|
* This mirrors the runtime behavior of Nitro.
|
|
85
84
|
*/
|
|
86
|
-
declare function useSilgiRuntimeConfig(event?: SilgiEvents):
|
|
85
|
+
declare function useSilgiRuntimeConfig(event?: SilgiEvents): any;
|
|
87
86
|
declare function applyEnv(obj: Record<string, any>, opts: EnvOptions, parentKey?: string): Record<string, any>;
|
|
88
87
|
|
|
89
88
|
/**
|
package/dist/kit/index.mjs
CHANGED
|
@@ -275,7 +275,9 @@ function useSilgiRuntimeConfig(event) {
|
|
|
275
275
|
if (!event) {
|
|
276
276
|
return _sharedRuntimeConfig;
|
|
277
277
|
}
|
|
278
|
-
|
|
278
|
+
const runtimeConfig = klona(_inlineRuntimeConfig);
|
|
279
|
+
applyEnv(runtimeConfig, envOptions);
|
|
280
|
+
return runtimeConfig;
|
|
279
281
|
}
|
|
280
282
|
return applyEnv(klona(silgi.runtimeConfig), {
|
|
281
283
|
prefix: "NITRO_",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED