browserify / watchify

watch mode for browserify builds
Other
1.79k stars 203 forks source link

Make invalidate method public? #262

Closed stephenbunch closed 9 years ago

stephenbunch commented 9 years ago

Hey guys, would it be possible to expose the invalidate method somehow? I've got a project where I need to be able to invalidate the entry file to manually trigger a partial rebuild.

zertosh commented 9 years ago

By exposing it, it would then become part of the supported "public api", and I don't think that's a method that should be supported. If you need the method to just invalidate a file(s), not to override the logic, then you can just change the file(s) modified timestamp (see fs.utimes). That's a modification, and it'll trigger a change -> invalidate -> update cycle.

stephenbunch commented 9 years ago

Ah, perfect. That should do the trick. Thanks!