refactor(loldle): import champions.json directly, drop ESM wrapper

Node 24 + wrangler 4.x both accept `import ... with { type: "json" }`,
so the generated champions-data.js wrapper is no longer needed.

Drop scripts/build-loldle-data.js and the build:loldle-data npm script.
Scraper writes champions.json only.
This commit is contained in:
2026-04-22 13:24:24 +07:00
parent 0836f02ab8
commit 615dc8174c
7 changed files with 13 additions and 1916 deletions
+1 -3
View File
@@ -47,6 +47,4 @@ jobs:
`attackType`, `region`, `lane`, `releaseDate`).
Review the diff, merge, then run `npm run deploy` to ship.
add-paths: |
src/modules/loldle/champions.json
src/modules/loldle/champions-data.js
add-paths: src/modules/loldle/champions.json