Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

tsc-cmd

zgj23314MIT1.0.1

A terminal that monitors TypeScript files, and compiles automatically when it changes

termianl, TypeScript, AutoExec

readme

tsc-cmd

中文

A terminal that monitors TypeScript files, and compiles automatically when it changes.

//To install
npm install tsc-cmd -g

//To use
tsc-cmd -w ../some_Dir/some_file.ts

why?

With typescript command-line tools, you can only run TS files, but can't return results in real time after a TS file has been modified. So I made this little plugin.

To prepare

You need to install TypeScript globally because my plugin also uses TypeScript to compile TS files.

npm install typescript -g

How to use

tsc-cmd -w ../some_Dir/some_file.ts

ps. When you run this command.

A js file with the same name will be compiled in the same directory as the files you monitor.

License

MIT

Copyright (c) 2022-present, zgj233