ms-teams-github-actions icon indicating copy to clipboard operation
ms-teams-github-actions copied to clipboard

feat: Update to ES modules and latest dependencies

Open ahanoff opened this issue 7 months ago โ€ข 0 comments

๐Ÿš€ 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/ncc with rollup build system
  • Updated build output from lib/main.js to dist/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-version file for consistent Node.js version
  • Updated GitHub Actions to use latest versions (v5)

Configuration Updates

  • Updated action.yml to use new build output
  • Updated tsconfig.json for ES modules support
  • Updated jest.config.js for ES modules support
  • Added proper ignore patterns for dist directory

๐Ÿงช 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:

ahanoff avatar Sep 28 '25 08:09 ahanoff