Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .d.ts resolution-mode #1332

Merged
merged 2 commits into from
Sep 8, 2023
Merged

Fix .d.ts resolution-mode #1332

merged 2 commits into from
Sep 8, 2023

Conversation

drwpow
Copy link
Contributor

@drwpow drwpow commented Sep 8, 2023

Changes

Fixes #1306 by restoring original resolution-mode. When "moduleResolution": "NodeNext" was added (using ESM in Node), that changed the generated types:

- /// <reference types="node" />
+ /// <reference types="node" resolution-mode="require"/>

This undoes that change to just remove resolution-mode altogether and restore previous behavior.

How to Review

  • This is actually completely opaque to CI and Git because it’s in the generated files. But the check is just seeing that resolution-mode is gone from all .d.ts files:

    CleanShot 2023-09-07 at 18 09 55@2x
  • CI should pass (it should still build)

Checklist

N/A

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2023

🦋 Changeset detected

Latest commit: 3d3d0f6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
openapi-typescript Patch
openapi-fetch Patch

Not sure what this means? Click here to learn what changesets are.

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

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Sep 8, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d3d0f6
Status: ✅  Deploy successful!
Preview URL: https://ba132744.openapi-ts.pages.dev
Branch Preview URL: https://fix-dts-types.openapi-ts.pages.dev

View logs

@drwpow drwpow force-pushed the fix-dts-types branch 2 times, most recently from 8c8b298 to cf17b01 Compare September 8, 2023 00:10
@drwpow drwpow merged commit 8e8ebfd into main Sep 8, 2023
8 checks passed
@drwpow drwpow deleted the fix-dts-types branch September 8, 2023 00:28
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.

A recent change in the release process breaks importing into typical typescript projects
1 participant