https://github.com/magicdawn/tsx-script
add a script mode to the tsx typescript runner
https://github.com/magicdawn/tsx-script
Last synced: 20 days ago
JSON representation
add a script mode to the tsx typescript runner
- Host: GitHub
- URL: https://github.com/magicdawn/tsx-script
- Owner: magicdawn
- License: mit
- Created: 2026-04-15T15:16:16.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-12T10:47:39.000Z (about 2 months ago)
- Last Synced: 2026-06-15T01:37:38.137Z (20 days ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tsx-script
> add a script mode to the tsx typescript runner
[](https://github.com/magicdawn/tsx-script/actions/workflows/ci.yml)
[](https://codecov.io/gh/magicdawn/tsx-script)
[](https://www.npmjs.com/package/tsx-script)
[](https://www.npmjs.com/package/tsx-script)
[](http://magicdawn.mit-license.org)
## Install
```sh
$ pnpm add -g tsx-script
```
## Why
https://github.com/privatenumber/tsx/issues/482
this tool is a shortcut for `tsx --tsconfig /dir/for/script/tsconfig.json /dir/for/script/script.ts`
aka ts-node's
- script mode: resolve tsconfig from script entry
- cwd mode: resolve tsconfig from cwd, current tsx use cwd mode
## Usage
require `tsx` installation.
- global install `pnpm add -g tsx tsx-script`
- project install `pnpm add tsx tsx-script`
then use `tsx-script` or `tsxs` to use this script mode.
## Changelog
[CHANGELOG.md](CHANGELOG.md)
## License
the MIT License http://magicdawn.mit-license.org