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

Write to temp outfile until success, fixes #899 #1673

Merged
1 commit merged into from
Feb 14, 2017
Merged

Commits on Jan 6, 2017

  1. Write to temp outfile until success, fixes browserify#899

    Write browserify command output to a temporary file, overwriting the target file atomically upon success (and simply cleaning up the tempfile on error).
    
    This has two benefits:
    
    * user won't be left with an empty file if compilation fails (which can break toolchains that rely on destination files/timestamps to indicate build status, Make or django-pipeline for just two examples)
    * output file can never end up in a half-written state during even a successful compilation
    natevw committed Jan 6, 2017
    Configuration menu
    Copy the full SHA
    ea6c299 View commit details
    Browse the repository at this point in the history