https://github.com/oresoftware/tsc-multi-watch
Spawns a watch process for each tsconfig.json file in your project. :elephant:
https://github.com/oresoftware/tsc-multi-watch
filewatcher javascript javascript-library node nodejs npm transpilation transpile transpiler tsc tsconfig typescript watcher
Last synced: 23 days ago
JSON representation
Spawns a watch process for each tsconfig.json file in your project. :elephant:
- Host: GitHub
- URL: https://github.com/oresoftware/tsc-multi-watch
- Owner: ORESoftware
- Created: 2017-06-18T03:24:38.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-09-14T05:10:15.000Z (over 6 years ago)
- Last Synced: 2024-10-07T03:49:24.303Z (over 1 year ago)
- Topics: filewatcher, javascript, javascript-library, node, nodejs, npm, transpilation, transpile, transpiler, tsc, tsconfig, typescript, watcher
- Language: TypeScript
- Homepage:
- Size: 58.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# tsc-multi-watch
Spawns a watch process for each tsconfig.json file in the search root.
The process is:
```bash
cd '${tsconfDir}' && tsc --project '${p}' --pretty false --preserveWatchOutput --watch
```
## Installation
>
>```bash
> $ npm install -g tsc-multi-watch`
>```
>
### CLI
>
>```bash
>
> $ tsc_multi_watch --root="$(pwd)" # --root defaults to $PWD, so this is redundant
>
>```
>
### Programmatic API
```javascript
import tscmw from 'tsc-multi-watch';
tscmw(opts, (err, v) => {
// v shows which paths are being watched
});
```
### Here is the regex currently beign used to find tsconfig.json files:
```javascript
if (String(item).match(/^tsconfig.*\.json$/)) {
tsConfigPaths.push(fullPath);
}
```