fix: use .cjs extension for bin script to fix ES module compatibility

The package.json has "type": "module" but bin/hapi.js uses CommonJS
require() syntax. Renaming to .cjs forces Node.js to treat it as
CommonJS regardless of the package type setting.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
jiangjiwei
2025-12-25 10:30:58 +08:00
co-authored by Claude Opus 4.5
parent 5a3f10078e
commit cde0a09134
2 changed files with 2 additions and 2 deletions
View File
+2 -2
View File
@@ -13,10 +13,10 @@
"directory": "cli"
},
"bin": {
"hapi": "bin/hapi.js"
"hapi": "bin/hapi.cjs"
},
"files": [
"bin/hapi.js"
"bin/hapi.cjs"
],
"imports": {
"#embedded-assets": {