You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add module field and ES module support for Smithery CLI compatibility
🔧 Package.json Updates:
- Add 'module' field pointing to './src/index.ts' (required by Smithery CLI)
- Add 'type': 'module' for ES module support
- Add 'exports' field for better module resolution
- Add 'build:smithery' script for Smithery-specific builds
�� TypeScript Configuration:
- Add tsconfig.smithery.json for ES module builds
- Configure separate build output for Smithery (build-smithery/)
- Maintain CommonJS compatibility for existing CLI usage
🚀 Smithery Configuration:
- Update smithery.yaml with custom build command and entry point
- Specify buildCommand: 'npm run build:smithery'
- Set entryPoint: './build-smithery/index.js'
📁 Build Management:
- Update .gitignore to exclude build-smithery directory
- Update clean script to remove both build directories
This resolves the Smithery CLI build error:
'No entry point found in package.json. Please define the module field'
The package now supports both traditional npm installation and
Smithery.ai hosted deployment with proper ES module handling.
0 commit comments