@travetto/config 3.4.0-rc.6 → 3.4.0

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/README.md CHANGED
@@ -27,7 +27,8 @@ Config loading follows a defined resolution path, below is the order in increasi
27
27
  1. [OverrideConfigSource](https://github.com/travetto/travetto/tree/main/module/config/src/source/override.ts#L11) - Priority `999` - This is for [EnvVar](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L34) overrides, and is at the top priority for all built-in config sources.
28
28
  By default all configuration data is inert, and will only be applied when constructing an instance of a configuration class.
29
29
 
30
- **Note**: When working in a monorepo, the parent resources folder will also be searched with a lower priority than the the module's specific resources. This allows for shared-global configuration that can be overridden at the module level. The general priority is:
30
+ ### Mono Repo Support
31
+ When working in a monorepo, the parent resources folder will also be searched with a lower priority than the the module's specific resources. This allows for shared-global configuration that can be overridden at the module level. The general priority is:
31
32
  1. Mono-repo root
32
33
  1. Module root
33
34
  1. Folders for `TRV_RESOURCES`, in order
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/config",
3
- "version": "3.4.0-rc.6",
3
+ "version": "3.4.0",
4
4
  "description": "Configuration support",
5
5
  "keywords": [
6
6
  "yaml",
@@ -26,9 +26,9 @@
26
26
  "directory": "module/config"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/di": "^3.4.0-rc.6",
30
- "@travetto/schema": "^3.4.0-rc.6",
31
- "@travetto/yaml": "^3.4.0-rc.6"
29
+ "@travetto/di": "^3.4.0",
30
+ "@travetto/schema": "^3.4.0",
31
+ "@travetto/yaml": "^3.4.0"
32
32
  },
33
33
  "travetto": {
34
34
  "displayName": "Configuration"
@@ -1,6 +1,6 @@
1
1
  import fs from 'fs/promises';
2
2
 
3
- import { Env, FileResourceProvider, GlobalEnv } from '@travetto/base';
3
+ import { Env, GlobalEnv, ResourceLoader } from '@travetto/base';
4
4
  import { RootIndex, path } from '@travetto/manifest';
5
5
 
6
6
  import { ConfigSource, ConfigSpec } from './types';
@@ -19,7 +19,7 @@ export class FileConfigSource implements ConfigSource {
19
19
 
20
20
  constructor(parser: ParserManager, paths?: string[], profiles?: Profile[]) {
21
21
  this.#parser = parser;
22
- this.#searchPaths = FileResourceProvider.resolveSearchPaths({ includeCommon: true, paths }).reverse();
22
+ this.#searchPaths = ResourceLoader.getSearchPaths(paths).reverse();
23
23
  this.#profiles = profiles ?? [
24
24
  ['application', 100],
25
25
  [GlobalEnv.envName, 200],