Skip to content

Commit

Permalink
feat: Expose loadConfigFile() function (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas authored May 17, 2024
1 parent 903b887 commit 59e890f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lib/config-array-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -1148,4 +1148,8 @@ class ConfigArrayFactory {
}
}

export { ConfigArrayFactory, createContext };
export {
ConfigArrayFactory,
createContext,
loadConfigFile
};
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

import {
ConfigArrayFactory,
createContext as createConfigArrayFactoryContext
createContext as createConfigArrayFactoryContext,
loadConfigFile
} from "./config-array-factory.js";

import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js";
Expand Down Expand Up @@ -39,6 +40,7 @@ const Legacy = {
OverrideTester,
getUsedExtractedConfigs,
environments,
loadConfigFile,

// shared
ConfigOps,
Expand Down

0 comments on commit 59e890f

Please sign in to comment.