From f331a4d1d5a2c6213ef315b5a3694e421ffd7a91 Mon Sep 17 00:00:00 2001 From: xBoyMinemc <86919167+xBoyMinemc@users.noreply.github.com> Date: Mon, 4 Nov 2024 18:11:29 +0800 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a76869b..03654e6 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -21,6 +21,18 @@ jobs: - name: Install dependencies run: npm i + - name: Remove nested node_modules directory + run: | + # Check if the directory exists and remove it + if [ -d "node_modules/@minecraft/server-gametest/node_modules" ]; then + rm -rf node_modules/@minecraft/server-gametest/node_modules + fi + + if [ -d "node_modules/@minecraft/server-ui/node_modules" ]; then + rm -rf node_modules/@minecraft/server-ui/node_modules + fi + + - name: Build project run: npm run build