tsx
tsx copied to clipboard
⚡️ TypeScript Execute: Node.js enhanced to run TypeScript & ESM
### Bug description When working with composite projects, our tests failed because it seems that `tsx` is not taking the reference project's baseUrl or path into consideration. ### Reproduction Test...
add #! Hashbang
### Bug description `tsx` does not wait for script to exit gracefully before terminating the process. ### Reproduction Let's say you have `main.ts` as the following: ``` console.log('starting up'); process.on('SIGINT',...
Closes #65
### Feature request When using `tsx watch --inspect=...`, when files change, the node debug server is briefly stopped & restarted. This makes sense, but if I've attached a debugger in...
### Feature request Auto-restart TSX when crash is detected ### Why? Useful for a live service / development ### Alternatives ### Additional context _No response_
### Bug description ```ts import { Rule, Scope } from 'eslint'; // `Rule` and `Scope` are both ts namespace import Variable = Scope.Variable; import CodePathSegment = Rule.CodePathSegment; ``` ```log import...
### Feature request NodeJS has a [new experimental built-in test runner](https://nodejs.org/docs/latest-v18.x/api/test.html) in version 18+. It is typically invoked for JavaScript files via `node --test` or `node --test test/**/*.test.js`, for example....
### Acknowledgements - [X] I searched existing issues before opening this one to avoid duplicates - [X] I understand this is not a place for seek help, but to report...
### Bug description What did you do? (Provide reproduction code in next section) Run `npx tsx watch` for console app What did you expect to happen? I was expecting the...