Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

--update-references could maybe create the reference directory #25

Closed
martinRenou opened this issue Mar 29, 2021 · 2 comments · Fixed by #26
Closed

--update-references could maybe create the reference directory #25

martinRenou opened this issue Mar 29, 2021 · 2 comments · Fixed by #26
Labels
enhancement New feature or request

Comments

@martinRenou
Copy link
Member

When running --update-references for the first time, the command fails with:

Reference directory './reference-output' does not exist.
error Command failed with exit code 1.

Maybe Galata could automatically create the reference directory if it doesn't exist?

@martinRenou martinRenou added the enhancement New feature or request label Mar 29, 2021
@jtpio
Copy link
Member

jtpio commented Mar 29, 2021

Looks like this might be coming from:

if (!fs.existsSync(outputDir)) {
console.log(`Output directory '${outputDir}' does not exist.`);
process.exit(1);
}

Maybe this could indeed be replaced by automatically creating the directory instead.

@martinRenou
Copy link
Member Author

👍🏼 I'll try a PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants