You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(rspeedy/core): use process.features.typescript (#481)
<!--
Thank you for submitting a pull request!
We appreciate the time and effort you have invested in making these
changes. Please ensure that you provide enough information to allow
others to review your pull request.
Upon submission, your pull request will be automatically assigned with
reviewers.
If you want to learn more about contributing to this project, please
visit:
https://github.com/lynx-family/lynx-stack/blob/main/CONTRIBUTING.md.
-->
## Summary
<!-- Can you explain the reasoning behind implementing this change? What
problem or issue does this pull request resolve? -->
Node.js v23.6 has unflagged the `--experimental-strip-types` feature
(nodejs/node#56350). Instead of relying solely
on this flag, it’s recommended to also check the standard
`process.feature.typescript` to confirm native TypeScript support.
> [!NOTE]
> It will be backport to v22 soon. See:
nodejs/node#57298
<!-- It would be helpful if you could provide any relevant context, such
as GitHub issues or related discussions. -->
## Checklist
<!--- Check and mark with an "x" -->
- [x] Tests updated (or not required).
- [x] Documentation updated (or not required).
Copy file name to clipboardExpand all lines: website/docs/en/guide/cli.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,22 @@ Just like [Rush](https://rushstack.io/), Rspeedy implements a "version selector"
18
18
19
19
## Using Node.js TypeScript support
20
20
21
-
If the version of Node.js you are using supports the [--experimental-transform-types](https://nodejs.org/api/cli.html#--experimental-transform-types)(v22.7.0) or [--experimental-strip-types](https://nodejs.org/api/cli.html#--experimental-strip-types)(v22.6.0) flag, you can use the built-in TS transformation of Node.js.
21
+
If the version of Node.js you are using supports TypeScript:
22
+
23
+
1. Node.js >= v23.6
24
+
1. Node.js >= v22.6 with [--experimental-strip-types](https://nodejs.org/api/cli.html#--experimental-strip-types)
25
+
1. Node.js >= v22.7 with [--experimental-transform-types](https://nodejs.org/api/cli.html#--experimental-transform-types)
26
+
27
+
you can use the built-in TS transformation of Node.js.
0 commit comments