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
You can require `ts-node` and register the loader for future requires by using `require('ts-node').register({ /* options */ })`. You can also use the shortcuts `node -r ts-node/register` or `node -r ts-node/register/type-check` depending on your preferences.
51
51
52
-
**Note:** If you need to use advanced node.js CLI arguments, use `node -r ts-node/register` instead of the `ts-node` CLI.
52
+
**Note:** If you need to use advanced node.js CLI arguments (e.g. `--inspect`), use them with`node -r ts-node/register` instead of the `ts-node` CLI.
53
53
54
54
### Mocha
55
55
@@ -80,9 +80,9 @@ gulp
80
80
81
81
## Loading `tsconfig.json`
82
82
83
-
**Typescript Node**uses`tsconfig.json` automatically, use`--skip-project` to skip loading `tsconfig.json`.
83
+
**Typescript Node**loads`tsconfig.json` automatically. Use`--skip-project` to the loading `tsconfig.json`.
84
84
85
-
**NOTE**: You can use `ts-node` together with [tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths) to load modules according to the `paths` section in `tsconfig.json`.
85
+
**Tip**: You can use `ts-node` together with [tsconfig-paths](https://www.npmjs.com/package/tsconfig-paths) to load modules according to the `paths` section in `tsconfig.json`.
0 commit comments