Stale package.json: scaffold metadata, broken npm test, misleading dev script #2

Closed
opened 2026-07-20 18:38:42 +00:00 by necrogami · 0 comments
Contributor

package.json is wholesale left over from the parent idle-scaffold template:

  • name/description: idle-scaffold — "generators, prestige, offline sim" — none of which exist since the v30 rework.
  • test script is broken: node --test test/ fails on current Node (v26) with MODULE_NOT_FOUND for the directory. The suites only run directly (node test/smoke.mjs etc. — all 4 pass that way; README documents this since the v30.44 doc pass).
  • dev script is misleading: python3 -m http.server 5173 is the non-SSR static fallback, not the documented main path (python3 scripts/ssr-server.py . 5175). A newcomer running npm run dev gets a degraded experience.

Decision to make for npm test: fix the glob so node --test finds the suites, or chain the four suites explicitly. Either is ~5 lines.

`package.json` is wholesale left over from the parent idle-scaffold template: - **name/description**: `idle-scaffold` — "generators, prestige, offline sim" — none of which exist since the v30 rework. - **`test` script is broken**: `node --test test/` fails on current Node (v26) with `MODULE_NOT_FOUND` for the directory. The suites only run directly (`node test/smoke.mjs` etc. — all 4 pass that way; README documents this since the v30.44 doc pass). - **`dev` script is misleading**: `python3 -m http.server 5173` is the *non*-SSR static fallback, not the documented main path (`python3 scripts/ssr-server.py . 5175`). A newcomer running `npm run dev` gets a degraded experience. Decision to make for `npm test`: fix the glob so `node --test` finds the suites, or chain the four suites explicitly. Either is ~5 lines.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
og_arist0tle/dark-spire#2
No description provided.