Skip to content

Convert project to ESM and update authors#52

Merged
trotzig merged 2 commits intomainfrom
claude/bold-blackburn
Mar 22, 2026
Merged

Convert project to ESM and update authors#52
trotzig merged 2 commits intomainfrom
claude/bold-blackburn

Conversation

@trotzig
Copy link
Copy Markdown
Contributor

@trotzig trotzig commented Mar 22, 2026

Summary

  • Add "type": "module" to package.json to enable native ESM
  • Convert all src/*.js files from require/module.exports to import/export
  • Convert all test files to ESM imports; add __dirname shim via fileURLToPath where needed; import jest explicitly in snapshots test
  • Convert server.js and profile.js to ESM
  • Update test script to use node --experimental-vm-modules
  • Replace author/contributors fields with authors array: Henric Persson and Joe Lencioni (with updated emails)

Test plan

  • All 52 tests pass with npm test
  • Dev server starts and renders diff viewer correctly

🤖 Generated with Claude Code

trotzig and others added 2 commits March 22, 2026 22:41
- Add "type": "module" to package.json
- Convert all src files from require/module.exports to import/export
- Convert all test files to ESM imports; add __dirname shim where needed
- Convert server.js and profile.js to ESM
- Update test script to use --experimental-vm-modules
- Replace author/contributors with authors array: Henric Persson and Joe Lencioni

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Use NODE_OPTIONS env var instead of running jest via node directly,
which would try to parse the bash wrapper script as JavaScript.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@trotzig trotzig merged commit 212709a into main Mar 22, 2026
1 check passed
@trotzig trotzig deleted the claude/bold-blackburn branch March 22, 2026 21:45
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