chore: switch to ESM-only build output#9
Conversation
Remove CJS build format and update package configuration to be a pure ESM module. Update all export paths and bin entries from .mjs to .js extensions to match the new ESM-only output. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Code reviewFound 2 issues:
The README.md contains docusaurus-plugin-mcp-server/README.md Lines 46 to 55 in 7ff27b0
The docusaurus-plugin-mcp-server/src/adapters/generator.ts Lines 56 to 68 in 7ff27b0 Both issues require updating to ESM syntax ( 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
Update all CommonJS examples to ESM syntax to match the ESM-only build output: - README.md: Update Vercel and Netlify adapter examples - generator.ts: Update generated adapter file templates - vercel.ts: Update JSDoc example - netlify.ts: Update JSDoc example Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Summary
"type": "module"to package.json for proper ESM support.mjsto.jsextensionsTest plan
npm run buildproduces only ESM outputdocusaurus-mcp-verifyworks correctly🤖 Generated with Claude Code