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
*`--scopeDir` Directory within which compiler is limited when `scope` is enabled. <br/>*Default:* First of: `tsconfig.json` "rootDir" if specified, directory containing `tsconfig.json`, or cwd if no `tsconfig.json` is loaded.<br/>*Environment:*`TS_NODE_SCOPE_DIR`
328
328
*`moduleType` Override the module type of certain files, ignoring the `package.json``"type"` field. See [Module type overrides](#module-type-overrides) for details.<br/>*Default:* obeys `package.json``"type"` and `tsconfig.json``"module"` <br/>*Can only be specified via `tsconfig.json` or API.*
329
329
*`TS_NODE_HISTORY` Path to history file for REPL <br/>*Default:*`~/.ts_node_repl_history`<br/>
330
+
*`--no-experimental-repl-await` Disable top-level await in REPL. Equivalent to node's [`--no-experimental-repl-await`](https://nodejs.org/api/cli.html#cli_no_experimental_repl_await)<br/>*Default:* Enabled if TypeScript version is 3.8 or higher and target is ES2018 or higher.<br/>*Environment:*`TS_NODE_EXPERIMENTAL_REPL_AWAIT` set `false` to disable
330
331
331
332
## API
332
333
@@ -615,14 +616,16 @@ Some projects require a patched typescript compiler which adds additional featur
615
616
add the ability to configure custom transformers. These are drop-in replacements for the vanilla `typescript` module and
616
617
implement the same API.
617
618
618
-
For example, to use `ts-patch` and `ts-transformer-keys`, add this to your `tsconfig.json`:
619
+
For example, to use `ttypescript` and `ts-transformer-keys`, add this to your `tsconfig.json`:
619
620
620
621
```jsonc title="tsconfig.json"
621
622
{
622
623
"ts-node": {
623
-
"compiler":"ts-patch"
624
+
// This can be omitted when using ts-patch
625
+
"compiler":"ttypescript"
624
626
},
625
627
"compilerOptions": {
628
+
// plugin configuration is the same for both ts-patch and ttypescript
626
629
"plugins": [
627
630
{ "transform":"ts-transformer-keys/transformer" }
628
631
]
@@ -870,7 +873,7 @@ This tells any node processes which receive this environment variable to install
ts-node is licensed under the MIT license. [MIT](https://github.com/TypeStrong/ts-node/blob/main/LICENSE)
874
877
875
878
ts-node includes source code from Node.js which is licensed under the MIT license. [Node.js license information](https://raw.githubusercontent.com/nodejs/node/master/LICENSE)
0 commit comments