Skip to content

Commit 710168a

Browse files
committed
fix(Dockerfile): symlink native tsgo binary and update PATH
The tsgo.js wrapper fails because getExePath() can't resolve the platform-specific package. Symlink directly to the native binary and update PATH so npm run build can find it.
1 parent de1422e commit 710168a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ RUN set -eux; \
103103
git config user.email "build@localpibox.dev"; \
104104
git config user.name "LocalPibox Build"; \
105105
npm install; \
106-
ln -sf "$(pwd)/node_modules/@typescript/native-preview/bin/tsgo.js" "$(pwd)/node_modules/.bin/tsgo"; \
107-
echo "=== Building from pre-patched fork: ${PI_FORK} @ ${PI_REF} (${PI_HEAD_SHA}) ==="; \
106+
ln -sf "$(pwd)/node_modules/@typescript/native-preview-linux-x64/lib/tsgo" "$(pwd)/node_modules/.bin/tsgo"; \
107+
export PATH="$(pwd)/node_modules/.bin:${PATH}"; \
108108
npm run build; \
109109
mkdir -p /tmp/pi-packs; \
110110
for pkg in ai agent coding-agent tui; do \

0 commit comments

Comments
 (0)