This commit is contained in:
2024-11-12 16:57:05 -05:00
parent 8f474df67b
commit d2d18315c4
7 changed files with 115 additions and 5 deletions
+10 -1
View File
@@ -1,5 +1,14 @@
import fs from 'fs-extra';
import _ from 'lodash';
const rawConfigData = fs.readFileSync(`${process.env.JJ_SOURCE_DIR}/~~tmp/jjConfigs.json`, 'utf8');
export const jjConfigsExp = JSON.parse(rawConfigData)
export const jjConfigsExp = JSON.parse(rawConfigData)
export const getJjYamlObj = () => { return jjConfigsExp.jjYamlObj || {} }
export const getJJConfigByKeyChain = (chain) => {
return _.get(getJjYamlObj(), chain, {})
}