Skip to content

chore: drop tsx for node strip-types #10888

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

43081j
Copy link
Contributor

@43081j 43081j commented Feb 25, 2025

This switches from tsx to --experimental-strip-types

DRAFT UNTIL FURTHER NOTICE

It is here to make sure people don't open duplicate PRs, but we can't land it yet since it requires too late a version of node.

Our CI is still using old enough node that this flag doesn't exist (plus it is "experimental" after all).

PR Checklist

Removes a couple of unused/broken scripts from
`rule-schema-to-typescript-types`.

Also adds a missing nx target such that `generate-breaking-changes`
works again.
This switches various repo scripts to be `*.mts` files (since that is
what they actually are, given we don't build them into CJS output, yet
our package `type` is `"commonjs"`).

This will allow newer Node to execute them correctly, as they will now
infer the correct module type.

The `generate-lib` script has also been changed to use only strippable
types (i.e. no enums).

Both of these changes mean we have the option to drop `tsx` in future
and use `--experimental-strip-types` (when it is no longer
experimental).
Drops `tsx` and uses `--experimental-strip-types` to directly execute
the various typescript scripts we have.

We likely don't want to land this until it is no longer "experimental".
@typescript-eslint
Copy link
Contributor

Thanks for the PR, @43081j!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint.

@43081j 43081j changed the title Nodets types strip chore: drop tsx for node strip-types Feb 25, 2025
Copy link

netlify bot commented Feb 25, 2025

Deploy Preview for typescript-eslint failed.

Name Link
🔨 Latest commit c149688
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/67bdf810ade8320008fa1fa1

Copy link

nx-cloud bot commented Feb 25, 2025

View your CI Pipeline Execution ↗ for commit c149688.

Command Status Duration Result
nx run-many --target=build --exclude website --... ✅ Succeeded 4s View ↗
nx run-many --target=clean ✅ Succeeded 11s View ↗

☁️ Nx Cloud last updated this comment at 2025-02-25 17:05:34 UTC

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.

Repo: execute typescript scripts/tools with node directly
1 participant