Skip to content

Fix CI: replace rollup-plugin-typescript2, downgrade TypeScript to 5.x - #395

Draft
BenjaminMichaelis with Copilot wants to merge 2 commits into
copilot/combine-dependabot-prs-and-update-packagesfrom
copilot/fix-copilot-issue
Draft

Fix CI: replace rollup-plugin-typescript2, downgrade TypeScript to 5.x#395
BenjaminMichaelis with Copilot wants to merge 2 commits into
copilot/combine-dependabot-prs-and-update-packagesfrom
copilot/fix-copilot-issue

Conversation

Copilot AI commented Aug 9, 2026

Copy link
Copy Markdown

TypeScript 7 gutted its CJS public API — it now only exports version and versionMajorMinor, dropping ModuleKind, createDocumentRegistry, and other APIs that rollup TypeScript plugins depend on. This caused the rollup -c build to fail with TypeError: tsModule.createDocumentRegistry is not a function across all CI jobs.

Changes (src/microsoft-trydotnet)

  • Replaced rollup-plugin-typescript2 with @rollup/plugin-typescript — the actively maintained official Rollup plugin
  • Downgraded typescript from ^7.0.2^5.8.3 — latest stable TypeScript 5.x, compatible with all current rollup tooling
  • Updated rollup.config.mjs to use @rollup/plugin-typescript's API (compilerOptions directly, no tsconfigOverride wrapper):
-import typescript from 'rollup-plugin-typescript2';
-import ts from 'typescript';
+import typescript from '@rollup/plugin-typescript';

 plugins: [
     typescript({
-        typescript: ts,
-        tsconfigOverride: { compilerOptions: { "module": "ES2015" } },
+        compilerOptions: { "module": "ES2015" },
     }),

…ith @rollup/plugin-typescript, downgrade typescript to ^5.8.3

Co-authored-by: BenjaminMichaelis <22186029+BenjaminMichaelis@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issue with Copilot in GitHub Actions Fix CI: replace rollup-plugin-typescript2, downgrade TypeScript to 5.x Aug 9, 2026
Copilot AI requested a review from BenjaminMichaelis August 9, 2026 18:41
Copilot AI had a problem deploying to BuildAndUploadImage August 9, 2026 18:54 Failure
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.

2 participants