Skip to content

fix(discovery): detect static sites that carry a package.json#5

Merged
JoniMartin27 merged 1 commit into
mainfrom
fix/discovery-static-and-catalog-cleanup
Jun 17, 2026
Merged

fix(discovery): detect static sites that carry a package.json#5
JoniMartin27 merged 1 commit into
mainfrom
fix/discovery-static-and-catalog-cleanup

Conversation

@JoniMartin27

Copy link
Copy Markdown
Owner

Qué

Un folder con package.json sin framework de servidor reconocible y sin script dev/start, pero con index.html en la raíz, se clasificaba como un node-server no lanzable → nunca obtenía botón Start. En realidad es un sitio estático que solo guarda un manifiesto (una dep de build o metadatos).

Ahora se detecta como html5-static y se sirve como cualquier estático (npx serve).

Por qué

En el workspace real, fervon (sitio estático con un package.json que solo trae @resvg/resvg-js, sin scripts) aparecía como tarjeta muerta sin Start. Esto lo arregla de forma genérica, sin hardcodear nombres.

Verificación

  • Nuevo aserto de regresión en discovery.test.js (un estático con manifiesto → type: html5-static, runnable: true).
  • npm test67/67 verdes
  • npm run build → verde

🤖 Generated with Claude Code

A folder with a package.json that has no recognizable server framework
and no dev/start script, but an index.html at its root, was misclassified
as a non-runnable "node-server". It is really a static site that merely
keeps a manifest (e.g. a build dep or metadata) — so it never got a Start
button. Now it is detected as html5-static and served like any other
static site (npx serve). Adds a regression test.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@JoniMartin27 JoniMartin27 merged commit 403943a into main Jun 17, 2026
2 checks passed
@JoniMartin27 JoniMartin27 deleted the fix/discovery-static-and-catalog-cleanup branch June 17, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant