diff --git a/package-lock.json b/package-lock.json index d4524a9..0f35738 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "zzapi", - "version": "1.1.1", + "version": "1.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "zzapi", - "version": "1.1.1", + "version": "1.2.1", "license": "MIT", "dependencies": { "got": "11.8.6", diff --git a/src/variableParser.ts b/src/variableParser.ts index 53a619d..55ca354 100644 --- a/src/variableParser.ts +++ b/src/variableParser.ts @@ -35,7 +35,7 @@ export function getBundleVariables(doc: string | undefined): Variables { const error = checkVariables(variables); if (error !== undefined) throw new Error(`error in variables: ${error}`); - return variables; + return replaceProcessEnvVars(variables); } export function getEnvironments(bundleContent: string | undefined, varFileContents: string[]): string[] { @@ -67,7 +67,7 @@ export function loadVariables( varFileContents.forEach((fileContents) => { const parsedData = YAML.parse(fileContents); if (parsedData && isDict(parsedData[envName])) { - Object.assign(envVars, parsedData[envName]); + Object.assign(envVars, replaceProcessEnvVars(parsedData[envName])); } });