Skip to content

magicdawn/tsx-script

Repository files navigation

tsx-script

add a script mode to the tsx typescript runner

Build Status Coverage Status npm version npm downloads npm license

Install

$ pnpm add -g tsx-script

Why

privatenumber/tsx#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

License

the MIT License http://magicdawn.mit-license.org

About

add a script mode to the tsx typescript runner

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors