mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
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:
co-authored by
Claude Opus 4.5
parent
5a3f10078e
commit
cde0a09134
Regular → Executable
+2
-2
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user