Migrate ui-related scripts to use pnpm instead of yarn (#5815)

This commit is contained in:
hashicc authored and GitHub committed 2025-06-16 13:27:38 -07:00
1 parent 276c2bf5c1
commit 67207899cb
3 files changed
+6 -6

No files matched your search

+4 -4
View File
@@ -58,8 +58,8 @@ if which gh &> /dev/null; then
fi
fi
if ! which yarn &> /dev/null; then
echo "Yarn must be installed to build ui assets from a git clone.\nPlease ensure Node v14+ and Yarn v1.22.10+ are installed."
if ! which pnpm &> /dev/null; then
echo "Pnpm must be installed to build ui assets from a git clone.\nPlease ensure Node v20+ and Pnpm v10+ are installed."
exit 1
fi
@@ -81,6 +81,6 @@ git checkout "${UI_COMMITISH}"
git pull --ff-only origin "${UI_COMMITISH}"
git reset --hard "${UI_COMMITISH}"
yarn install
EDITION=${UI_EDITION} yarn build
pnpm install
EDITION=${UI_EDITION} pnpm build
popd