Skip to content

Commit

Permalink
docs: Update README. Fixes TypeStrong#1899
Browse files Browse the repository at this point in the history
  • Loading branch information
wallasalki committed Oct 5, 2023
1 parent 89a94ae commit cbc9e70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion website/docs/scope.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ options to configure scoping, so that ts-node transforms only the files in your
## File extensions

`.js` and `.jsx` are only transformed when [`allowJs`](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options) is enabled.
`.js`, `.jsx`, `.mjs`, and `.cjs` are only transformed when [`allowJs`](https://www.typescriptlang.org/docs/handbook/compiler-options.html#compiler-options) is enabled.

`.tsx` and `.jsx` are only transformed when [`jsx`](https://www.typescriptlang.org/docs/handbook/jsx.html) is enabled.

`.mts`, `.cts`, `.mjs`, and `.cjs` are only transformed for TypeScript versions >= 4.5.0.

> **Warning:**
>
> When ts-node is used with `allowJs`, _all_ non-ignored JavaScript files are transformed by ts-node.
Expand Down

0 comments on commit cbc9e70

Please sign in to comment.