Skip to content

Commit 59e890f

Browse files
authored
feat: Expose loadConfigFile() function (#160)
1 parent 903b887 commit 59e890f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/config-array-factory.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1148,4 +1148,8 @@ class ConfigArrayFactory {
11481148
}
11491149
}
11501150

1151-
export { ConfigArrayFactory, createContext };
1151+
export {
1152+
ConfigArrayFactory,
1153+
createContext,
1154+
loadConfigFile
1155+
};

lib/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import {
1010
ConfigArrayFactory,
11-
createContext as createConfigArrayFactoryContext
11+
createContext as createConfigArrayFactoryContext,
12+
loadConfigFile
1213
} from "./config-array-factory.js";
1314

1415
import { CascadingConfigArrayFactory } from "./cascading-config-array-factory.js";
@@ -39,6 +40,7 @@ const Legacy = {
3940
OverrideTester,
4041
getUsedExtractedConfigs,
4142
environments,
43+
loadConfigFile,
4244

4345
// shared
4446
ConfigOps,

0 commit comments

Comments
 (0)