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

Doesn't create output directory automatically #269

Closed
moander opened this issue Sep 17, 2015 · 7 comments
Closed

Doesn't create output directory automatically #269

moander opened this issue Sep 17, 2015 · 7 comments

Comments

@moander
Copy link

moander commented Sep 17, 2015

$ rm -rf static
$ watchify main.js -o static/bundle.js
{ [Error: ENOENT, open 'static/bundle.js'] errno: -2, code: 'ENOENT', path: 'static/bundle.js' }
@mattdesl
Copy link
Contributor

This is also an issue with browserify, since it dosen't use mkdirp to try and recursively create folders for output.

browserify index.js -o static/bundle.js
-> ENOENT ...

@ghost
Copy link

ghost commented Sep 17, 2015

I would not expect a tool I use to implicitly create subdirectories if I give it a path and subdirectories don't exist. I can't think of any tools that work that way aside from mkdir -p.

@moander
Copy link
Author

moander commented Sep 17, 2015

Most modern tools seems to create it's output dir automatically.. Especially when it comes to compiler-like stuff, and nice-to-have tools like this. I guess that's why I thought this was a bug and not a feature.

@moander moander closed this as completed Sep 17, 2015
@technicallyfeasible
Copy link

there should at least be an option to have it create the directory automatically

@thedanheller
Copy link

I double your disappointment

@inca
Copy link

inca commented Nov 24, 2016

Why closed? No reasoning, no explanation, no nothing 😥

@James-E-Adams
Copy link

rjz added a commit to rjz/browserify-p that referenced this issue Jan 7, 2018
Create output directory when invoking browserify CLI. Your mileage may
vary.

See: browserify/watchify#269
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants