Add strict pearcord module dependency guards for platform imports.

This introduces CI-enforced checks that compare index.js pearcord-* requires against declared dependencies and smoke-resolve imported modules, preventing undeclared module regressions in local file-link and attached runtime environments.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-06-02 09:27:52 -04:00
co-authored by Cursor
parent 0c73d63c78
commit efca048c2f
3 changed files with 97 additions and 0 deletions
+5
View File
@@ -3,6 +3,11 @@
"version": "0.1.0",
"main": "index.js",
"type": "commonjs",
"scripts": {
"test:imports": "node scripts/check-pearcord-module-imports.cjs --resolve",
"test:deps": "node scripts/check-pearcord-module-imports.cjs",
"ci:deps": "npm run test:deps && npm run test:imports"
},
"dependencies": {
"bare-events": "^2.8.0",
"bare-path": "^3.0.0",