Skip to content

fix: use dynamic import() in npm check script for ESM compatibility#106

Merged
nawforce merged 1 commit into
mainfrom
fix/issue-105-check-script-esm
Apr 26, 2026
Merged

fix: use dynamic import() in npm check script for ESM compatibility#106
nawforce merged 1 commit into
mainfrom
fix/issue-105-check-script-esm

Conversation

@kjonescertinia

Copy link
Copy Markdown
Contributor

Summary

Test plan

  • npm run check runs successfully (parses 0 .cls/.trigger/.apex files in the npm dir, as expected)
  • CI passes

…105)

The package declares "type": "module" so Node 20+ rejected the require()
call with ERR_REQUIRE_ESM, causing npm run check to fail before parsing
any files.
@nawforce nawforce merged commit cf3fb76 into main Apr 26, 2026
1 check passed
@nawforce nawforce deleted the fix/issue-105-check-script-esm branch April 26, 2026 08:22
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.

check script uses require() in ESM package; fails with ERR_REQUIRE_ESM on Node 20+

2 participants