]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Clean out/* on build in case src/* files were deleted
authorDaniel Imms <daimms@microsoft.com>
Mon, 28 Nov 2016 18:52:01 +0000 (10:52 -0800)
committerDaniel Imms <daimms@microsoft.com>
Mon, 28 Nov 2016 18:52:03 +0000 (10:52 -0800)
If files in src/ were compiled and then deleted they will hang around in out/
until deleted. This can potentially cause difficult to diagnose build/test
errors. This commit removes all files from out/ but keeps the folder to
prevent editor file watchers from seeing the folder was deleted and shifting
the file explorer around.

Fixed #381

bin/build

index d1b403d28e42d5fde47aa4c19bc9bd87f8aa6ae7..36a6cf254fd28ba5c3a980bfefeb4611e071a06a 100755 (executable)
--- a/bin/build
+++ b/bin/build
@@ -1,5 +1,8 @@
 #! /usr/bin/env bash
 
+# Clean out/* to prevent confusion if files were deleted in src/
+rm -rf out/*
+
 # Build all TypeScript files (including tests) to out/
 tsc