WIP
This commit is contained in:
@@ -36,6 +36,7 @@ export const jjEnsure = async (opts) => {
|
||||
if (_.isEmpty(jjYamlObj?.environments || {})) {
|
||||
opts.context.error(`Wrong ${answer.jjYamlPath} file`)
|
||||
}
|
||||
jjConfigs.jjWorkSpacePath = path.dirname(answer.jjYamlPath)
|
||||
|
||||
jjConfigs.jjYamlObj = jjYamlObj
|
||||
|
||||
@@ -43,6 +44,7 @@ export const jjEnsure = async (opts) => {
|
||||
|
||||
} else {
|
||||
jjConfigs.jjYamlPath = await fs.readFile(jjConfigs.configSaveFilePath, "utf8")
|
||||
jjConfigs.jjWorkSpacePath = path.dirname(jjConfigs.jjYamlPath)
|
||||
const jjYamlRawContent = await fs.readFile(jjConfigs.jjYamlPath, "utf8")
|
||||
const jjYamlObj: any = YAML.load(jjYamlRawContent)
|
||||
if (_.isEmpty(jjYamlObj?.environments || {})) {
|
||||
@@ -51,4 +53,6 @@ export const jjEnsure = async (opts) => {
|
||||
jjConfigs.jjYamlObj = jjYamlObj
|
||||
}
|
||||
|
||||
jjConfigs.processEnvs.JJ_WORKSPACE_DIR = jjConfigs.jjWorkSpacePath
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user