Skip to content

Commit

Permalink
fix(export): absolute outDir treated as relative
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed Jun 5, 2020
1 parent 4226144 commit e6b8570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/export_scripts.ts
Expand Up @@ -26,7 +26,7 @@ export async function exportScripts(
) {
validateConfigData(configData);
const { cwd, config } = configData as ConfigData;
const outDirPath = path.join(cwd, outDir);
const outDirPath = path.isAbsolute(outDir) ? outDir : path.join(cwd, outDir);
ensureDirSync(outDirPath);
if (!scripts || scripts.length < 1) {
scripts = Object.keys(config.scripts);
Expand Down

0 comments on commit e6b8570

Please sign in to comment.