@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 CHANGED
@@ -17,8 +17,14 @@ else
17
17
  PROJECT_ROOT=$(pwd)
18
18
  fi
19
19
 
20
- # Get the directory where this script lives (inside @jterrazz/typescript)
21
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
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 (inside @jterrazz/typescript)
21
- SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
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"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jterrazz/typescript",
3
3
  "author": "Jean-Baptiste Terrazzoni <contact@jterrazz.com>",
4
- "version": "4.0.0",
4
+ "version": "4.0.1",
5
5
  "files": [
6
6
  "tsconfig",
7
7
  "bin",