silgi 0.9.10 → 0.9.12

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.10";
1
+ const version = "0.9.12";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
package/dist/cli/env.mjs CHANGED
@@ -74,7 +74,12 @@ function interpolate(target, source = {}, parse = (v) => v) {
74
74
  }
75
75
  }
76
76
 
77
+ let start = 0;
77
78
  async function prepareEnv(silgiConfig) {
79
+ start++;
80
+ if (start === 1) {
81
+ return;
82
+ }
78
83
  const customEnvironments = silgiConfig.environments;
79
84
  const environment = await p.select({
80
85
  message: "Select an environment",
@@ -22,6 +22,9 @@ const SilgiCLIDefaults = {
22
22
  appConfig: {},
23
23
  appConfigFiles: [],
24
24
  commandType: "prepare",
25
+ runtimeConfig: {
26
+ app: { baseURL: "/" }
27
+ },
25
28
  // Dirs
26
29
  scanDirs: [],
27
30
  build: {
@@ -1788,9 +1788,9 @@ function useCLIRuntimeConfig(silgi) {
1788
1788
  const _inlineRuntimeConfig = silgi.options.runtimeConfig;
1789
1789
  const envOptions = {
1790
1790
  prefix: "NITRO_",
1791
- altPrefix: _inlineRuntimeConfig.nitro.envPrefix ?? process.env.NITRO_ENV_PREFIX ?? process.env.SILGI_ENV_PREFIX ?? "_",
1791
+ altPrefix: process.env.NITRO_ENV_PREFIX ?? process.env.SILGI_ENV_PREFIX ?? "_",
1792
1792
  silgiPrefix: "SILGI_",
1793
- envExpansion: _inlineRuntimeConfig.nitro.envExpansion ?? process.env.NITRO_ENV_EXPANSION ?? process.env.SILGI_ENV_EXPANSION ?? false,
1793
+ envExpansion: process.env.NITRO_ENV_EXPANSION ?? process.env.SILGI_ENV_EXPANSION ?? false,
1794
1794
  ...silgi.options.envOptions
1795
1795
  };
1796
1796
  silgi.hook("prepare:core.ts", (data) => {
@@ -1,4 +1,4 @@
1
- const version = "0.9.10";
1
+ const version = "0.9.12";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
@@ -1,4 +1,4 @@
1
- const version = "0.9.10";
1
+ const version = "0.9.12";
2
2
  const devDependencies = {
3
3
  "@antfu/eslint-config": "^4.3.0",
4
4
  "@nuxt/kit": "^3.15.4",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.9.10",
4
+ "version": "0.9.12",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {