feat: accept npm plugins only when they are ESM only

green-tea is ESM end to end and its Node floor is moving up; a CJS or
dual package brings a require path that is the first thing to break.
The check lives in readEntry, so it bites on CI with every other
registry check, and validate.mjs inherits it when it is written.

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-09-24 09:53:32 -05:00
1 parent 4b8d56e8e7
commit 2ce1e0c4e5
3 files changed
+79 -3

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"test": "node scripts/deploy.mjs --self-test",
"test": "node scripts/deploy.mjs --self-test && node --test scripts/registry.test.mjs",
"deploy": "npm run build && node scripts/deploy.mjs",
"astro": "astro"
},