]> git.wincent.com - wincent.git/commitdiff
refactor: extract "bin/tsc"
authorGreg Hurrell <greg@hurrell.net>
Thu, 19 Mar 2020 23:56:10 +0000 (00:56 +0100)
committerGreg Hurrell <greg@hurrell.net>
Thu, 19 Mar 2020 23:56:10 +0000 (00:56 +0100)
bin/tsc [new file with mode: 0755]
install-next

diff --git a/bin/tsc b/bin/tsc
new file mode 100755 (executable)
index 0000000..3b1c76f
--- /dev/null
+++ b/bin/tsc
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+REPO_ROOT="${BASH_SOURCE%/*}/.."
+
+source "$REPO_ROOT/bin/common"
+
+yarn run --silent tsc "$@"
index 28674f0555fa30987ef754f7b7fdbafdae4afa67..43d5a741b5fcabf4342665b1bfd91c406dd6fee9 100755 (executable)
@@ -12,8 +12,7 @@ yarn --frozen-lockfile --no-default-rc --no-progress --silent
 
 log_info "Building"
 
-# TODO: make bin/tsc
-yarn run --silent tsc
+tsc
 
 log_info "Running main"