Commit af98f97
committed
fix: Use dynamic import in check script for ESM package
The npm package is "type": "module", so the existing CommonJS require()
in the check script throws ERR_REQUIRE_ESM on Node 20+. Switch to
import() — works in both CJS and ESM contexts without --input-type.
Caught by Codex review on #8.1 parent c769ef2 commit af98f97
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments