diff --git a/.github/actions/pnpm-install/action.yml b/.github/actions/pnpm-install/action.yml index f74b2fed8..38264e551 100644 --- a/.github/actions/pnpm-install/action.yml +++ b/.github/actions/pnpm-install/action.yml @@ -41,7 +41,7 @@ runs: node-version: "20" - name: Setup pnpm - uses: pnpm/action-setup@v2.2.4 + uses: pnpm/action-setup@v4 with: version: "9.4" diff --git a/src/lib/scripts/parseNEURepository.ts b/src/lib/scripts/parseNEURepository.ts index c85ba8d4a..7c268b593 100644 --- a/src/lib/scripts/parseNEURepository.ts +++ b/src/lib/scripts/parseNEURepository.ts @@ -7,8 +7,8 @@ export const NEU_CONSTANTS = new Map(); export async function parseNEURepository() { const timeNow = performance.now(); - if (!fs.statSync("src/lib/constants/NotEnoughUpdates-REPO/items").isDirectory()) { - return; + if (!fs.existsSync("src/lib/constants/NotEnoughUpdates-REPO/items")) { + throw new Error("Couldn't find the NEU items directory (src/lib/constants/NotEnoughUpdates-REPO/items). Make sure you have the NEU repository cloned in the correct location."); } const items = fs.readdirSync("src/lib/constants/NotEnoughUpdates-REPO/items");