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:
3 files changed
+79
-3
No files matched your search
+1
-1
@@ -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"
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user