feat: add phase 2 bun_install repository rule bootstrap
This commit is contained in:
committed by
copilot-swe-agent[bot]
parent
14b7e8175a
commit
fe21208ddf
22
tests/install_test/clean_install.sh
Executable file
22
tests/install_test/clean_install.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
bun_path="$1"
|
||||
workdir="$(mktemp -d)"
|
||||
trap 'rm -rf "${workdir}"' EXIT
|
||||
|
||||
cat > "${workdir}/package.json" <<'JSON'
|
||||
{
|
||||
"name": "clean-install-test",
|
||||
"version": "1.0.0"
|
||||
}
|
||||
JSON
|
||||
|
||||
"${bun_path}" install --cwd "${workdir}" >/dev/null
|
||||
rm -rf "${workdir}/node_modules"
|
||||
"${bun_path}" install --cwd "${workdir}" --frozen-lockfile >/dev/null
|
||||
|
||||
if [[ ! -d "${workdir}/node_modules" ]]; then
|
||||
echo "Expected node_modules to be created" >&2
|
||||
exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user