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.
@@ -1,4 +1,4 @@
1
- const version = "0.9.28";
1
+ const version = "0.9.29";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -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): silgi_types.SilgiRuntimeOptions | undefined;
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
  /**
@@ -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): silgi_types.SilgiRuntimeOptions | undefined;
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
  /**
@@ -275,7 +275,9 @@ function useSilgiRuntimeConfig(event) {
275
275
  if (!event) {
276
276
  return _sharedRuntimeConfig;
277
277
  }
278
- return;
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_",
@@ -1,4 +1,4 @@
1
- const version = "0.9.28";
1
+ const version = "0.9.29";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
@@ -1,4 +1,4 @@
1
- const version = "0.9.28";
1
+ const version = "0.9.29";
2
2
  const peerDependencies = {
3
3
  "@fastify/deepmerge": "^2.0.2",
4
4
  "@nuxt/kit": "^3.15.3",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.9.28",
4
+ "version": "0.9.29",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {