ts-node icon indicating copy to clipboard operation
ts-node copied to clipboard

TypeScript execution and REPL for node.js

Results 221 ts-node issues
Sort by recently updated
recently updated
newest added

Implements #1161 Supercedes #1261, because I wrote #1261 a long time ago and I'm worried about bugs if I try to grok that code again

This makes "type" command return a more accurate description than the currently `any` for types/interfaces. It's worth noting that until https://github.com/microsoft/TypeScript/issues/25894 is fixed, interfaces/enums will be shown as just "$kind...

Is it possible to use `ts-node` with TypeScript 3.4+ incremental build options?

Link to discord conversation about this: https://discord.com/channels/508357248330760243/508357248330760249/932730462571474984 `ts-node --init` can behave roughly like `tsc --init`: emit tsconfig configuration If tsconfig already exists, add `"ts-node"` sub-object to it If tsconfig does...

Vanilla node REPL logs line context only for SyntaxErrors. For example: ``` $ node Welcome to Node.js v17.0.0. Type ".help" for more information. > foo bar foo bar

Think about refactoring tests into a test matrix of: * typechecking / transpileOnly / transpileOnly w/swc * ESM loader / non-ESM loader The SWC compiler has needed test cases added...

There is no way to turn off source maps as of now. See e.g. https://github.com/TypeStrong/ts-node/issues/27 Source maps are not always desired, and can make debugging a lot harder - see...

you can do this
needs more info

Related: https://github.com/TypeStrong/ts-node/issues/796 https://github.com/TypeStrong/ts-node/issues/1473 https://github.com/cspotcode/node-source-map-support/pull/23 Add a configuration option, perhaps named `installSourceMapSupport` or `sourceMapHooks`, which can be used to disable `require('@cspotcode/source-map-support').install()` Important things to consider: * Do we continue to generate...

you can do this