silgi 0.27.0 → 0.27.2

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,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.27.0";
4
+ const version = "0.27.2";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -189,11 +189,11 @@ async function prepareEnv(silgiConfig) {
189
189
  label: env.fileName,
190
190
  value: env.fileName
191
191
  })) : [
192
- { label: "Development (.env.dev)", value: "dev" },
192
+ { label: "Development (.env)", value: ".env" },
193
193
  { label: "Docker (.env.docker)", value: "docker" },
194
194
  { label: "Staging (.env.staging)", value: "staging" },
195
195
  { label: "Testing (.env.testing)", value: "testing" },
196
- { label: "Production (.env)", value: ".env" }
196
+ { label: "Production (.env.prod)", value: "prod" }
197
197
  ]
198
198
  });
199
199
  const findEnv = customEnvironments?.find((env) => env.fileName === environment);
@@ -1,7 +1,7 @@
1
- import _h3 from "./h3/preset.ts";
2
- import _nitro from "./nitro/preset.ts";
3
- import _npmpackage from "./npmpackage/preset.ts";
4
- import _nuxt from "./nuxt/preset.ts";
1
+ import _h3 from "./h3/preset.mjs";
2
+ import _nitro from "./nitro/preset.mjs";
3
+ import _npmpackage from "./npmpackage/preset.mjs";
4
+ import _nuxt from "./nuxt/preset.mjs";
5
5
  const presets = [
6
6
  ..._h3,
7
7
  ..._nitro,
@@ -4,7 +4,7 @@ import {
4
4
  } from "compatx";
5
5
  import { kebabCase } from "scule";
6
6
  import { provider } from "std-env";
7
- import allPresets from "./_all.gen.ts";
7
+ import allPresets from "./_all.gen.mjs";
8
8
  const _stdProviderMap = {
9
9
  aws_amplify: "aws",
10
10
  azure_static: "azure",
@@ -1 +1 @@
1
- export { resolvePreset } from "./_resolve.ts";
1
+ export { resolvePreset } from "./_resolve.mjs";
@@ -1,3 +1,3 @@
1
- export { initRuntimeConfig, useSilgiRuntimeConfig } from "./internal/config.ts";
2
- export { defineSilgiPlugin } from "./internal/plugin.ts";
3
- export { mergeDeep } from "./internal/defu.ts";
1
+ export { initRuntimeConfig, useSilgiRuntimeConfig } from "./internal/config.mjs";
2
+ export { defineSilgiPlugin } from "./internal/plugin.mjs";
3
+ export { mergeDeep } from "./internal/defu.mjs";
@@ -1,5 +1,5 @@
1
1
  import { createDebugger } from "hookable";
2
- import { defineSilgiPlugin } from "./plugin.ts";
2
+ import { defineSilgiPlugin } from "./plugin.mjs";
3
3
  export const debugPlugin = defineSilgiPlugin((silgi) => {
4
4
  createDebugger(silgi.hooks, { tag: "silgi-runtime" });
5
5
  });
@@ -1,20 +1,20 @@
1
1
  export {
2
2
  debugPlugin
3
- } from "./debug.ts";
3
+ } from "./debug.mjs";
4
4
  export {
5
5
  mergeDeep
6
- } from "./defu.ts";
6
+ } from "./defu.mjs";
7
7
  export {
8
8
  addNitroApp
9
- } from "./nitro.ts";
9
+ } from "./nitro.mjs";
10
10
  export {
11
11
  useSilgiFetch
12
- } from "./nuxt.ts";
12
+ } from "./nuxt.mjs";
13
13
  export {
14
14
  createSilgiFetch,
15
15
  silgi$fetch
16
- } from "./ofetch.ts";
16
+ } from "./ofetch.mjs";
17
17
  export {
18
18
  defineSilgiPlugin,
19
19
  silgiPlugin
20
- } from "./plugin.ts";
20
+ } from "./plugin.mjs";
@@ -583,7 +583,7 @@ interface SilgiCLIOptions extends PresetOptions {
583
583
  commandType: CommandType;
584
584
  routeRules: SilgiRouteRules$1;
585
585
  environments: DotenvOptions$1[];
586
- activeEnvironment: string;
586
+ activeEnvironment: 'prod' | 'docker' | 'staging' | 'testing' | '.env' | (string & {});
587
587
  envOptions: EnvOptions$1;
588
588
  runtimeConfig: SilgiRuntimeConfig$1 & {
589
589
  [key: string]: any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.27.0",
4
+ "version": "0.27.2",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {