tsx-script
v0.0.1
Published
add a script mode to the tsx typescript runner
Downloads
18
Readme
tsx-script
add a script mode to the tsx typescript runner
Install
$ pnpm add -g tsx-scriptWhy
https://github.com/privatenumber/tsx/issues/482
this took 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
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
License
the MIT License http://magicdawn.mit-license.org
