ms-teams-github-actions
ms-teams-github-actions copied to clipboard
feat: Update to ES modules and latest dependencies
๐ Major Update: ES Modules & Latest Dependencies
This PR updates the project to use ES modules and the latest development dependencies, following the official GitHub Actions TypeScript template.
โจ Key Changes
ES Modules Migration
- Added
"type": "module"to package.json - Updated exports configuration
- Updated Node.js requirement to >=24.0.0
Build System Update
- Replaced
@vercel/nccwithrollupbuild system - Updated build output from
lib/main.jstodist/index.js - Added rollup configuration with TypeScript plugin
Latest Dependencies
- Updated to ESLint v9 with flat config (
eslint.config.mjs) - Updated to Jest v30 with ES modules support
- Updated TypeScript to latest version
- Updated all dev dependencies to match official template
CI/CD Improvements
- Replaced old test workflow with new CI workflow based on official template
- Added
.node-versionfile for consistent Node.js version - Updated GitHub Actions to use latest versions (v5)
Configuration Updates
- Updated
action.ymlto use new build output - Updated
tsconfig.jsonfor ES modules support - Updated
jest.config.jsfor ES modules support - Added proper ignore patterns for
distdirectory
๐งช Testing
All CI checks are passing:
- โ Format check
- โ Linting
- โ Tests (Jest with ES modules)
- โ Build (Rollup)
๐ Checklist
- [x] Updated to ES modules
- [x] Updated all dependencies to latest versions
- [x] Migrated build system to Rollup
- [x] Updated CI workflow to official template
- [x] Fixed all linting issues
- [x] Updated configuration files
- [x] Added proper ignore patterns
- [x] All tests passing
๐ References
Based on the official GitHub Actions TypeScript template: