fix security error in express caused by compiling to parent directory
update precommit hook for building app