Skip to content

Commit

Permalink
fix: add yarn v4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
David Zwart committed Feb 4, 2024
1 parent 35a524a commit 2e83d16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,12 @@ echo "[7b/${ts}] Extracting new dist zip to ${dist_active_path}"
# Step 8) Ensure yarn is new, (optional)
echo "[8/${ts}] Updating yarn"
npm i -g yarn
yarn set version berry

# Step 9) Ensure the required packages are present with yarn (which is already installed, we're just keeping it fresh)
echo "[9/${ts}] Updating the necessary modules of FDM Monster"
pushd "${dist_active_path}"
yarn install --production --pure-lockfile --network-timeout 1000000000
YARN_HTTP_TIMEOUT=1000000 yarn workspaces focus --all --production
popd

# Step 10) Run the service
Expand Down
5 changes: 2 additions & 3 deletions src/modules/monsterpi/start_chroot_script
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ curl -sL https://deb.nodesource.com/setup_$MONSTERPI_NODEJS_VERSION | bash -
apt update
apt install -y nodejs

# Update NPM and install yarn globally
npm install -g npm
npm install -g yarn
# Enable yarn/pnpm/npm
corepack enable

pushd /home/"${BASE_USER}"
# Install FDM Monster (this is really slow on QEMU!)
Expand Down

0 comments on commit 2e83d16

Please sign in to comment.