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(type-safe-api): fix template discovery on node 18.17.x #880

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

cogwirrel
Copy link
Member

Node 18.17.x has a bug where readdirSync returns invalid entries when both recursive and withFileTypes is specified:

nodejs/node#48858

We use our own implementation to recursively find template files to ensure we work for older versions of node.

NB the shapshots have changed due to the .tsapi-manifest now containing the file names in a different order.

Node 18.17.x has a bug where `readdirSync` returns invalid entries when
both `recursive` and `withFileTypes` is specified:

nodejs/node#48858

We use our own implementation to recursively find template files to
ensure we work for older versions of node.
Copy link

nx-cloud bot commented Oct 31, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit bf9b347. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@cogwirrel cogwirrel merged commit 0e532c0 into mainline Nov 1, 2024
4 checks passed
@cogwirrel cogwirrel deleted the fix/node-18-17-templates branch November 1, 2024 06:13
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