Skip to content

Commit abc7118

Browse files
committed
cleanup scripts
use git command instead of some random realpath that is not installed everywhere
1 parent 2ddb607 commit abc7118

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

scripts/build.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
#!/bin/bash
22
set -e
33

4-
TARGET_DIR="$(pwd)"
5-
6-
# INFO: This script is always run from the individual package.
7-
84
node="yarn node"
95
tsdxArgs=()
106

scripts/lint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
SCRIPTS_DIR="$(dirname "${BASH_SOURCE[0]}")"
5-
ROOT_DIR="$(realpath $SCRIPTS_DIR/..)/"
4+
ROOT_DIR="$(git rev-parse --show-toplevel)/"
65
TARGET_DIR="$(pwd)"
76
RELATIVE_TARGET_DIR="${TARGET_DIR/$ROOT_DIR/}"
87

@@ -26,4 +25,4 @@ tsdxArgs+=($@)
2625
# Execute
2726
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"
2827

29-
popd > /dev/null
28+
popd > /dev/null

scripts/test.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
SCRIPTS_DIR="$(dirname "${BASH_SOURCE[0]}")"
5-
ROOT_DIR="$(realpath $SCRIPTS_DIR/..)/"
4+
ROOT_DIR="$(git rev-parse --show-toplevel)/"
65
TARGET_DIR="$(pwd)"
76
RELATIVE_TARGET_DIR="${TARGET_DIR/$ROOT_DIR/}"
87

@@ -32,4 +31,4 @@ tsdxArgs+=($@)
3231
# Execute
3332
$node "$(yarn bin tsdx)" "${tsdxArgs[@]}"
3433

35-
popd > /dev/null
34+
popd > /dev/null

0 commit comments

Comments
 (0)