silgi 0.9.7 → 0.9.8
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.mjs +5 -2
- 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.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import consola, { consola as consola$1 } from 'consola';
|
|
|
4
4
|
import { relative, resolve, dirname, normalize, isAbsolute, join, parse, basename } from 'pathe';
|
|
5
5
|
import { colors } from 'consola/utils';
|
|
6
6
|
import { getProperty } from 'dot-prop';
|
|
7
|
-
import { useSilgi, tryUseSilgiCLI, useSilgiCLI } from 'silgi/core';
|
|
7
|
+
import { useSilgi, tryUseSilgiCLI, useSilgiCLI, tryUseSilgi } from 'silgi/core';
|
|
8
8
|
import { defu } from 'defu';
|
|
9
9
|
import { c as checkSilgiCompatibility } from '../cli/compatibility.mjs';
|
|
10
10
|
import { existsSync, promises } from 'node:fs';
|
|
@@ -244,7 +244,10 @@ async function resolveSilgiModule(base, paths) {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
function useSilgiRuntimeConfig() {
|
|
247
|
-
const silgi =
|
|
247
|
+
const silgi = tryUseSilgi();
|
|
248
|
+
if (!silgi) {
|
|
249
|
+
return {};
|
|
250
|
+
}
|
|
248
251
|
return applyEnv(klona(silgi.options.runtimeConfig), {
|
|
249
252
|
prefix: "NITRO_",
|
|
250
253
|
altPrefix: "NUXT_",
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED