Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redoc-cli bundle fails if output path does not exist #512

Closed
brushmate opened this issue May 29, 2018 · 2 comments
Closed

redoc-cli bundle fails if output path does not exist #512

brushmate opened this issue May 29, 2018 · 2 comments

Comments

@brushmate
Copy link
Contributor

CLI fails with the following message if a non-existing path is given to the --output option:

$ npx redoc-cli bundle --output ./non/existing/path/index.html spec.yaml 
Prerendering docs
ENOENT: no such file or directory, open './non/existing/path/index.html'

It would be nice if the directories would be created automatically.

@RomanHotsiy
Copy link
Member

A good opportunity for a PR 😄

@brushmate
Copy link
Contributor Author

Sure :D I am already working on it but also wanted to document it in an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants