Skip to content

Commit e600f17

Browse files
committed
rebuild readme
1 parent c923ade commit e600f17

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ node --trace-deprecation --abort-on-uncaught-exception -r ts-node/register ./ind
327327
* `--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`
328328
* `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.*
329329
* `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
330331

331332
## API
332333

@@ -615,14 +616,16 @@ Some projects require a patched typescript compiler which adds additional featur
615616
add the ability to configure custom transformers. These are drop-in replacements for the vanilla `typescript` module and
616617
implement the same API.
617618
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`:
619620
620621
```jsonc title="tsconfig.json"
621622
{
622623
"ts-node": {
623-
"compiler": "ts-patch"
624+
// This can be omitted when using ts-patch
625+
"compiler": "ttypescript"
624626
},
625627
"compilerOptions": {
628+
// plugin configuration is the same for both ts-patch and ttypescript
626629
"plugins": [
627630
{ "transform": "ts-transformer-keys/transformer" }
628631
]
@@ -870,7 +873,7 @@ This tells any node processes which receive this environment variable to install
870873

871874
# License
872875

873-
[MIT](https://github.com/TypeStrong/ts-node/blob/main/LICENSE)
876+
ts-node is licensed under the MIT license. [MIT](https://github.com/TypeStrong/ts-node/blob/main/LICENSE)
874877

875878
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)
876879

0 commit comments

Comments
 (0)