From 45704a1ba237fd514344778694d79d4c077e1788 Mon Sep 17 00:00:00 2001 From: Chris Barber Date: Tue, 9 Jan 2024 11:04:00 -0600 Subject: [PATCH] Transform project dir --- src/cli.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.js b/src/cli.js index bb873205..a49b4258 100644 --- a/src/cli.js +++ b/src/cli.js @@ -704,7 +704,8 @@ export class CLI { throw new Error(`Failed to parse --config: ${e.message}`); } }) - .on('option:config-file', file => this.config.load(file)); + .on('option:config-file', file => this.config.load(file)) + .on('option:project-dir', dir => program.setOptionValue('projectDir', expand(dir))); const allCommands = [ ...Object.entries(commands),