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