Skip to content

Commit

Permalink
Update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xBoyMinemc authored Nov 4, 2024
1 parent 92f56b8 commit f331a4d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f331a4d

Please sign in to comment.