From 77807954e60d7cc2498efe5e4746708fc0f24f77 Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Sun, 14 Jul 2024 12:23:08 +0200 Subject: [PATCH 1/4] build(pnpm-install): bump pnpm/action-setup version to v4 --- .github/actions/pnpm-install/action.yml | 4 ++-- src/lib/constants/NotEnoughUpdates-REPO | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/pnpm-install/action.yml b/.github/actions/pnpm-install/action.yml index f74b2fed..de6cd3a3 100644 --- a/.github/actions/pnpm-install/action.yml +++ b/.github/actions/pnpm-install/action.yml @@ -24,7 +24,7 @@ description: "Run pnpm install with cache enabled" inputs: enable-corepack: description: "Enable corepack" - required: false + required: false default: "false" cwd: description: "Changes node's process.cwd() if the project is not located on the root. Default to process.cwd()" @@ -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/constants/NotEnoughUpdates-REPO b/src/lib/constants/NotEnoughUpdates-REPO index 7e67c37c..9ab22630 160000 --- a/src/lib/constants/NotEnoughUpdates-REPO +++ b/src/lib/constants/NotEnoughUpdates-REPO @@ -1 +1 @@ -Subproject commit 7e67c37ce92cf8a7be4cf09ce594fda148dbffc9 +Subproject commit 9ab226302fe724f91ad60eeafe915f47f5e60264 From a313bec4ab96ce10fdf8e7d0a98ddddf880ec609 Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Sun, 14 Jul 2024 12:25:24 +0200 Subject: [PATCH 2/4] fix: prettier --- .github/actions/pnpm-install/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/pnpm-install/action.yml b/.github/actions/pnpm-install/action.yml index de6cd3a3..38264e55 100644 --- a/.github/actions/pnpm-install/action.yml +++ b/.github/actions/pnpm-install/action.yml @@ -24,7 +24,7 @@ description: "Run pnpm install with cache enabled" inputs: enable-corepack: description: "Enable corepack" - required: false + required: false default: "false" cwd: description: "Changes node's process.cwd() if the project is not located on the root. Default to process.cwd()" From 88418946ea5625b427cea16f29920173a4ead48e Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Sun, 14 Jul 2024 12:42:51 +0200 Subject: [PATCH 3/4] refactor(NEU/parsing): better info --- src/lib/scripts/parseNEURepository.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/scripts/parseNEURepository.ts b/src/lib/scripts/parseNEURepository.ts index c85ba8d4..eb64eaf4 100644 --- a/src/lib/scripts/parseNEURepository.ts +++ b/src/lib/scripts/parseNEURepository.ts @@ -6,9 +6,8 @@ export const NEU_ITEMS = new Map(); 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"); From d01bf25fc1132aab72613ef7ec24a9dd7bde5e44 Mon Sep 17 00:00:00 2001 From: DuckySoLucky Date: Sun, 14 Jul 2024 12:44:58 +0200 Subject: [PATCH 4/4] fix: pro dev --- src/lib/scripts/parseNEURepository.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/scripts/parseNEURepository.ts b/src/lib/scripts/parseNEURepository.ts index eb64eaf4..7c268b59 100644 --- a/src/lib/scripts/parseNEURepository.ts +++ b/src/lib/scripts/parseNEURepository.ts @@ -6,6 +6,7 @@ export const NEU_ITEMS = new Map(); export const NEU_CONSTANTS = new Map(); export async function parseNEURepository() { + const timeNow = performance.now(); 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."); }