Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions tools/tsp-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ function commandPreamble(argv: any) {

/** Ensure the output directory exists and allow interactive users to confirm or override the value. */
export function resolveOutputDir(argv: any): string {
let outputDir = resolvePath(process.cwd(), argv["output-dir"]);
let outputDir;
if (argv["output-dir"] === undefined) {
outputDir = process.cwd();
} else {
outputDir = resolvePath(process.cwd(), argv["output-dir"]);
}
const usePrompt = argv["prompt"];

let useOutputDir;
Expand Down Expand Up @@ -73,7 +78,7 @@ const parser = yargs(hideBin(process.argv))
alias: "o",
type: "string",
description: "Specify an alternate output directory for the generated files.",
default: ".",
default: undefined,
})
.option("no-prompt", {
alias: "y",
Expand Down
Loading