cli/commands/build-cache: allow cache dir to be set through env
This commit is contained in:
@@ -35,6 +35,8 @@ export async function parseOptions(cmd: Command): Promise<Options> {
|
||||
inputs.push(argTransformer('.'));
|
||||
}
|
||||
const output = argTransformer(cmd.output);
|
||||
const cacheDir = argTransformer(cmd.cacheDir);
|
||||
const cacheDir = argTransformer(
|
||||
process.env.BACKSTAGE_CACHE_DIR || cmd.cacheDir,
|
||||
);
|
||||
return { inputs, output, cacheDir, repoRoot };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user