add a script mode to the tsx typescript runner
$ pnpm add -g tsx-scriptthis 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
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.
the MIT License http://magicdawn.mit-license.org