We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f160786 commit 25c97f8Copy full SHA for 25c97f8
src/default_cmd.ts
@@ -14,7 +14,7 @@ exports.builder = (y: any) => {
14
});
15
};
16
exports.handler = async(argv: any) => {
17
- const cwd = path.resolve(argv.cwd) as string || process.cwd();
+ const cwd = argv.cwd ? path.resolve(argv.cwd) : process.cwd();
18
19
if (!fs.pathExistsSync(`${cwd}`)) {
20
process.stdout.write(`${cwd} is not a directory\n`);
0 commit comments