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
If you want to use `ts-node` for worker file (a `.ts` file), it is supported out of box!
132
+
On recent Node versions, you may select this runner to execute your worker file (a `.ts` file) in the native runtime.
133
+
134
+
As of Node v23, this feature is supported out of the box. To enable it in the current LTS, you can pass the [`--experimental-strip-types`](https://nodejs.org/docs/latest-v22.x/api/typescript.html#type-stripping) flag to the process. Visit the [documentation](https://nodejs.org/docs/latest/api/typescript.html#type-stripping) to learn more.
135
+
136
+
When `synckit` detects the process to be running with this flag, it will execute the worker file with the `node` runner by default.
137
+
138
+
#### `ts-node` (Default)
139
+
140
+
Prior to Node v23, you may want to use `ts-node` to execute your worker file (a `.ts` file).
132
141
133
142
If you want to use a custom tsconfig as project instead of default `tsconfig.json`, use `TS_NODE_PROJECT` env. Please view [ts-node](https://github.com/TypeStrong/ts-node#tsconfig) for more details.
0 commit comments