Skip to content

fix: remove "type": "module" from package.json#2

Merged
jontsai merged 1 commit intomasterfrom
fix/bin-cjs-rename
Feb 25, 2026
Merged

fix: remove "type": "module" from package.json#2
jontsai merged 1 commit intomasterfrom
fix/bin-cjs-rename

Conversation

@jontsai
Copy link
Member

@jontsai jontsai commented Feb 25, 2026

Summary

  • Remove "type": "module" from packages/core/package.json
  • The compiled TypeScript output uses extensionless imports (export * from './address') which Node.js ESM cannot resolve
  • This package is consumed through Next.js/webpack bundlers that handle extensionless imports fine, so "type": "module" is unnecessary and breaks direct Node.js usage
  • Also avoids needing to rename bin/htk.js to .cjs

Test plan

  • npm pack --dry-run shows no warnings
  • skilletz.cafe builds successfully
  • tearekz.cafe builds successfully

🤖 Generated with Claude Code

The compiled output uses extensionless imports (e.g. export * from './address')
which Node.js ESM cannot resolve. Since this package is consumed through
Next.js/webpack bundlers that handle extensionless imports fine, removing
"type": "module" is the correct fix. This also avoids the bin script
needing a .cjs extension.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jontsai jontsai changed the title fix: rename bin/htk.js to bin/htk.cjs for ESM compatibility fix: remove "type": "module" from package.json Feb 25, 2026
@jontsai jontsai merged commit 58d8c5b into master Feb 25, 2026
1 check passed
@jontsai jontsai deleted the fix/bin-cjs-rename branch February 25, 2026 08:25
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.

1 participant