- respect `pnpm` version declared in root `package.json` - improve performances when installing node modules - add troubleshooting instructions in `CONTRIBUTING.md` to help solve common issue related to outdated `GLIBC` version
24 lines
768 B
Bash
Executable File
24 lines
768 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Update the underlying (Debian) OS, to make sure we have the latest security patches and libraries like 'GLIBC'
|
|
echo "⚙️ Updating the underlying OS..."
|
|
sudo apt-get update && sudo apt-get -y upgrade
|
|
|
|
# Uninstall globally installed PNPM (required version will be reinstalled through corepack)
|
|
echo "❌ Uninstalling globally installed PNPM..."
|
|
npm uninstall -g pnpm
|
|
|
|
# Prevent corepack from prompting user before downloading PNPM
|
|
export COREPACK_ENABLE_DOWNLOAD_PROMPT=0
|
|
|
|
# Enable corepack
|
|
corepack enable
|
|
|
|
# Install the PNPM version defined in the root package.json
|
|
echo "⚙️ Installing required PNPM version..."
|
|
corepack prepare --activate
|
|
|
|
# Install NPM dependencies
|
|
echo "⚙️ Installing NPM dependencies..."
|
|
pnpm install --frozen-lockfile
|