Skip to content

Conversation

@nickmessing
Copy link

@nickmessing nickmessing commented Nov 7, 2025

Description

Add preserveTSExtension boolean configuration that allows .ts file extensions (for native import without transpilation tools)

Related #10490
Prerequisite for eddeee888/graphql-code-generator-plugins#364

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Unit tests included
  • Tested on a production project to not break anything with old config
  • Tested on a production project to add .ts extension when flag is present

Test Environment:

  • OS: macOS 26.0.1
  • @graphql-codegen/cli: latest
  • NodeJS: v25.1.0

Checklist:

  • I have followed the CONTRIBUTING doc and the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2025

⚠️ No Changeset found

Latest commit: 59a10a9

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

@nickmessing nickmessing marked this pull request as draft November 7, 2025 06:53
@nickmessing nickmessing marked this pull request as ready for review November 7, 2025 07:05
@nickmessing
Copy link
Author

Should I add the changeset too?

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.

1 participant