Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 5, 2026

TypeScript Native (v7.0.0-dev) is a Go-based port of the TypeScript compiler that removes the baseUrl compiler option. This PR makes the codebase compatible with both TypeScript 5.9.3 and TypeScript Native.

Changes

  • Added TypeScript Native preview as optional dependency (@typescript/native-preview@7.0.0-dev.20260105.1)
  • Updated packages/openapi-ts/tsconfig.base.json to remove baseUrl and use explicit path mappings:
    {
      "compilerOptions": {
    -   "baseUrl": "./",
        "paths": {
    +     "*": ["./*"],
    -     "~/*": ["src/*"]
    +     "~/*": ["./src/*"]
        }
      }
    }

Migration Status

TypeScript Native is currently in preview with declaration emit and non-esnext target support still in progress. The codebase is prepared for migration but continues using TypeScript 5.9.3 as primary compiler.

Both compilers can now be used:

npx tsc --noEmit    # TypeScript 5.9.3
npx tsgo --noEmit   # TypeScript Native 7.0.0-dev

See docs/typescript-native-migration.md for detailed analysis and migration timeline.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • devblogs.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
  • https://api.github.com/repos/microsoft/typescript-go/issues
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Migrate to TypeScript Native preview</issue_title>
<issue_description>https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/</issue_description>

<agent_instructions>Read through the attached blog posts for instructions how to install TypeScript Native preview, configure tsconfig.json file, and things to watch out for. Verify if we're able to fully migrate today or if there are any remaining blockers preventing us from switching.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@changeset-bot
Copy link

changeset-bot bot commented Jan 5, 2026

⚠️ No Changeset found

Latest commit: ebe27c9

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
hey-api-docs Ready Ready Preview, Comment Jan 5, 2026 9:54pm

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Remove baseUrl and use explicit path mappings instead.
This configuration works with both TypeScript 5.9.3 and TypeScript Native 7.0.0-dev.

- Remove baseUrl compiler option (removed in TypeScript Native)
- Add "*": ["./*"] to paths (recommended replacement)
- Update ~/* path to use explicit ./src/* instead of src/*

All tests pass with this configuration.

Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Co-authored-by: mrlubos <12529395+mrlubos@users.noreply.github.com>
Copilot AI changed the title [WIP] Migrate to TypeScript Native preview Prepare codebase for TypeScript Native preview compatibility Jan 5, 2026
Copilot AI requested a review from mrlubos January 5, 2026 21:57
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.

Migrate to TypeScript Native preview

2 participants