@jterrazz/typescript 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/ts-build.sh +8 -2
- package/bin/ts-dev.sh +8 -2
- package/package.json +1 -1
package/bin/ts-build.sh
CHANGED
|
@@ -17,8 +17,14 @@ else
|
|
|
17
17
|
PROJECT_ROOT=$(pwd)
|
|
18
18
|
fi
|
|
19
19
|
|
|
20
|
-
# Get the directory where this script lives (
|
|
21
|
-
|
|
20
|
+
# Get the real directory where this script lives (resolve symlinks)
|
|
21
|
+
SCRIPT_PATH="$0"
|
|
22
|
+
while [ -L "$SCRIPT_PATH" ]; do
|
|
23
|
+
LINK_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
24
|
+
SCRIPT_PATH="$(readlink "$SCRIPT_PATH")"
|
|
25
|
+
[[ $SCRIPT_PATH != /* ]] && SCRIPT_PATH="$LINK_DIR/$SCRIPT_PATH"
|
|
26
|
+
done
|
|
27
|
+
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
22
28
|
CONFIG_PATH="$SCRIPT_DIR/../config/rolldown.build.config.js"
|
|
23
29
|
|
|
24
30
|
printf "${CYAN_BG}${BRIGHT_WHITE} BUILD ${NC} Building with Rolldown...\n\n"
|
package/bin/ts-dev.sh
CHANGED
|
@@ -17,8 +17,14 @@ else
|
|
|
17
17
|
PROJECT_ROOT=$(pwd)
|
|
18
18
|
fi
|
|
19
19
|
|
|
20
|
-
# Get the directory where this script lives (
|
|
21
|
-
|
|
20
|
+
# Get the real directory where this script lives (resolve symlinks)
|
|
21
|
+
SCRIPT_PATH="$0"
|
|
22
|
+
while [ -L "$SCRIPT_PATH" ]; do
|
|
23
|
+
LINK_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
24
|
+
SCRIPT_PATH="$(readlink "$SCRIPT_PATH")"
|
|
25
|
+
[[ $SCRIPT_PATH != /* ]] && SCRIPT_PATH="$LINK_DIR/$SCRIPT_PATH"
|
|
26
|
+
done
|
|
27
|
+
SCRIPT_DIR="$(cd "$(dirname "$SCRIPT_PATH")" && pwd)"
|
|
22
28
|
CONFIG_PATH="$SCRIPT_DIR/../config/rolldown.dev.config.js"
|
|
23
29
|
|
|
24
30
|
printf "${CYAN_BG}${BRIGHT_WHITE} DEV ${NC} Starting watch mode...\n\n"
|