aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar zhiyuang <32867472+zhiyuang@users.noreply.github.com> 2022-10-08 00:48:37 +0800
committerGravatar GitHub <noreply@github.com> 2022-10-07 09:48:37 -0700
commit99e7856269ab084c0b5c69d8dac3bcd89ec08e8d (patch)
treef5265b31c8cf3175c63a5fc3ef60b3130157a7cf /test
parent1355d415e9974c8597a4f772ed9065a5407b3aed (diff)
downloadbun-99e7856269ab084c0b5c69d8dac3bcd89ec08e8d.tar.gz
bun-99e7856269ab084c0b5c69d8dac3bcd89ec08e8d.tar.zst
bun-99e7856269ab084c0b5c69d8dac3bcd89ec08e8d.zip
Fix nested modules bin executable issue (#1299)
Diffstat (limited to 'test')
-rw-r--r--test/apps/bun-install.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/apps/bun-install.sh b/test/apps/bun-install.sh
index 78fcc2837..18813b2d2 100644
--- a/test/apps/bun-install.sh
+++ b/test/apps/bun-install.sh
@@ -5,7 +5,7 @@ set -euo pipefail
dir=$(mktemp -d)
cd $dir
-${NPM_CLIENT:-$(which bun)} add react react-dom @types/react @babel/parser esbuild
+${NPM_CLIENT:-$(which bun)} add react react-dom @types/react @babel/parser esbuild vite@3.0.0
echo "console.log(typeof require(\"react\").createElement);" >index.js
chmod +x index.js
@@ -32,6 +32,9 @@ $(which grealpath || which realpath) -e ./node_modules/.bin/parser >/dev/null
# - https://github.com/evanw/esbuild/issues/2558
./node_modules/.bin/esbuild --version >/dev/null
+VITE_ESBUILD="$(echo node_modules/vite/node_modules/esbuild-*)"
+$VITE_ESBUILD/bin/esbuild --version >/dev/null
+
if [ "$JS_RUNTIME" == "node" ]; then
result="$(node ./index.js)"
fi