Skip to content

Commit b25ef46

Browse files
fix: apply platform-specific config overrides
1 parent 2c82b5c commit b25ef46

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/config.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import _openConfig from './config/open';
99
import {cfgPath, cfgDir} from './config/paths';
1010
import notify from './notify';
1111
import {getColorMap} from './utils/colors';
12+
import {resolvePlatformConfig} from './utils/resolve-platform-config';
1213

1314
const watchers: Function[] = [];
1415
let cfg: parsedConfig = {} as any;
@@ -76,8 +77,9 @@ export const subscribe = (fn: Function) => {
7677
};
7778
};
7879

80+
export {resolvePlatformConfig} from './utils/resolve-platform-config';
81+
7982
export const getConfigDir = () => {
80-
// expose config directory to load plugin from the right place
8183
return cfgDir;
8284
};
8385

@@ -104,7 +106,7 @@ export const getProfileConfig = (profileName: string): configOptions => {
104106
baseConfig[key] = profileConfig[key];
105107
}
106108
}
107-
return {...baseConfig, defaultProfile, profiles};
109+
return resolvePlatformConfig({...baseConfig, defaultProfile, profiles});
108110
};
109111

110112
export const openConfig = () => {

0 commit comments

Comments
 (0)