We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213b506 commit ed8f4ecCopy full SHA for ed8f4ec
src/cli.js
@@ -307,13 +307,16 @@ afteward to run`)
307
}
308
};
309
310
+const absolutePathToDestDir = (argv) => {
311
+ const relativeDestDir = argv._.length > 0 ? argv._[0] : '.'
312
+ return path.resolve(process.cwd(), relativeDestDir)
313
+}
314
315
const argv = parseCommandLineArgs(process.argv.slice(2));
316
317
const config = loadConfig(endpointsFile);
318
-let destDir = argv._.length > 0 ? argv._[0] : '.';
-destDir = path.resolve(process.cwd(), destDir);
319
+const destDir = absolutePathToDestDir(argv)
320
console.log('Destination directory:', destDir)
321
322
if (!fs.existsSync(destDir)) {
0 commit comments