Tune makefile scripts (#10781)

* chore: replace node by `yarn node`

* chore: fix tsc command

* chore: use `yarn` to wrap node

* chore: supress yarn run output

* chore: disable silent mode for builtin yarn command
This commit is contained in:
Huáng Jùnliàng
2019-12-04 22:28:25 -05:00
committed by GitHub
parent e94da0dce5
commit 2b472912e4
4 changed files with 42 additions and 39 deletions

View File

@@ -1,11 +1,11 @@
#!/bin/bash
set -e
node="node"
node="yarn --silent node"
jestArgs=()
if [ "$TEST_DEBUG" ]; then
node="node --inspect-brk"
node="$node --inspect-brk"
jestArgs+=("--runInBand")
fi
@@ -23,4 +23,4 @@ if [ -n "$TEST_ONLY" ]; then
jestArgs+=("(packages|codemods|eslint)/.*$TEST_ONLY.*/test")
fi
$node node_modules/jest/bin/jest.js "${jestArgs[@]}"
$node node_modules/.bin/jest "${jestArgs[@]}"