From 83b06c6bb0b13fc46064fbd90f66d8ecc7b3c397 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 28 Nov 2016 10:52:01 -0800 Subject: [PATCH] Clean out/* on build in case src/* files were deleted 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/build b/bin/build index d1b403d28e..36a6cf254f 100755 --- 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