@outfitter/config 0.3.2 → 0.3.3

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/env.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Env, booleanSchema, env, getEnvBoolean, optionalBooleanSchema, parseEnv, portSchema } from "./shared/@outfitter/config-veqxf02x";
1
+ import { Env, booleanSchema, env, getEnvBoolean, optionalBooleanSchema, parseEnv, portSchema } from "./shared/@outfitter/config-veqxf02x.js";
2
2
  export { portSchema, parseEnv, optionalBooleanSchema, getEnvBoolean, env, booleanSchema, Env };
package/dist/env.js CHANGED
@@ -7,7 +7,6 @@ import {
7
7
  parseEnv,
8
8
  portSchema
9
9
  } from "./shared/@outfitter/config-443pb6p2.js";
10
- import"./shared/@outfitter/config-3n1xvxce.js";
11
10
  export {
12
11
  portSchema,
13
12
  parseEnv,
@@ -1,2 +1,2 @@
1
- import { EnvironmentDefaults, OutfitterEnv, getEnvironment, getEnvironmentDefaults } from "./shared/@outfitter/config-a6g8nmxw";
1
+ import { EnvironmentDefaults, OutfitterEnv, getEnvironment, getEnvironmentDefaults } from "./shared/@outfitter/config-wawavx3r.js";
2
2
  export { getEnvironmentDefaults, getEnvironment, OutfitterEnv, EnvironmentDefaults };
@@ -3,7 +3,6 @@ import {
3
3
  getEnvironment,
4
4
  getEnvironmentDefaults
5
5
  } from "./shared/@outfitter/config-w3pwcpr2.js";
6
- import"./shared/@outfitter/config-3n1xvxce.js";
7
6
  export {
8
7
  getEnvironmentDefaults,
9
8
  getEnvironment
package/dist/index.d.ts CHANGED
@@ -35,12 +35,12 @@ type OutfitterEnv = "development" | "production" | "test";
35
35
  * packages can override or extend.
36
36
  */
37
37
  interface EnvironmentDefaults {
38
+ /** How much error detail to include in output. */
39
+ errorDetail: "full" | "message";
38
40
  /** Default log level. `null` means logging is disabled by default. */
39
41
  logLevel: "debug" | "info" | "warn" | "error" | null;
40
42
  /** Whether verbose output is enabled by default. */
41
43
  verbose: boolean;
42
- /** How much error detail to include in output. */
43
- errorDetail: "full" | "message";
44
44
  }
45
45
  /**
46
46
  * Determine the current Outfitter environment.
@@ -459,10 +459,10 @@ declare function parseConfigFile(content: string, filename: string): Result<Reco
459
459
  interface ConfigSources<T> {
460
460
  /** Default values (lowest precedence) */
461
461
  defaults?: Partial<T>;
462
- /** Values loaded from config file */
463
- file?: Partial<T>;
464
462
  /** Values from environment variables */
465
463
  env?: Partial<T>;
464
+ /** Values loaded from config file */
465
+ file?: Partial<T>;
466
466
  /** CLI flag values (highest precedence) */
467
467
  flags?: Partial<T>;
468
468
  }