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

After doing a bit of work in python, I'm a fan of isort.

Added syntax highlight for the input.

### Search Terms short circuit, short-circuit, shortcircuit, essm, loader ### Expected Behavior The loader resolver should always pass the resolved URL to the next resolver (assuming it didn't already), without...

### Desired Behavior There's a whole bunch of closed tickets, online discussion, workarounds, etc. for this: ``` $ npx ts-node somefile.ts TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" ``` **Regardless of...

to use esm my package.json looks something like this: ```json { "start": "npm run clean && cross-env NODE_ENV=development NODE_OPTIONS=\"--loader=ts-node/esm --trace-warnings\" webpack serve --mode=development --config webpack.config.ts", } ``` even though i...

### Expected Behavior "module": "NodeNext" should not include Object.defineProperty(exports, "__esModule", { value: true }) with it complie result ### Actual Behavior ![image](https://user-images.githubusercontent.com/25458528/232306526-6cb51f14-19d4-4f31-ac23-6e6907ba50c1.png) ![image](https://user-images.githubusercontent.com/25458528/232306662-715eca29-5645-448f-b665-0d7b50f48f9d.png) ![image](https://user-images.githubusercontent.com/25458528/232306676-5c14c736-600f-4f67-b0b4-021a835edc1e.png)

### Steps to reproduce the problem index.mjs ``` import { dirname, resolve } from "path"; import { createRequire } from "module"; import tsnode from "ts-node"; const require = createRequire(import.meta.url); const...

ts-node is able to convert `tsconfig` into SWC config: https://github.com/TypeStrong/ts-node/blob/main/src/transpilers/swc.ts Perhaps, this functionality could be exported, or extracted into a separate NPM package. It is something that would be useful...

Related to #1101 & #1007 - it would be nice to have `ts-node-esm-transpile-only` for scripting purposes. (this might have already been asked somewhere but I wasn't able to find it...