ts-node
ts-node copied to clipboard
TypeScript execution and REPL for node.js
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   
### 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...