tsc-watch isn't compatible with Typescript Project References
See original GitHub issueWhen running tsc -w
with project references, I need to include the -b
/ --build
flag so that project references are also compiled, and the compiler will be run whenever files in those local dependencies are refreshed as well. It doesn’t seem that there’s a way to include this flag in tsc-watch
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
Documentation - Project References
Project references are a new feature in TypeScript 3.0 that allow you to structure your TypeScript programs into smaller pieces.
Read more >TypeScript project with references
Found this when searching for "typescript references has not been built from source file". My mistake was that I was running tsc -p ......
Read more >TypeScript Compiling with Visual Studio Code
No, the TypeScript language service that ships with Visual Studio 2019 and 2022 isn't compatible with VS Code. You will need to install...
Read more >A guide through The Wild Wild West of setting up a mono repo ...
We will be using TypeScript, Yarn workspaces, Lerna, and Jest. ... tsc has had a watch mode since TypeScript's first release, before project...
Read more >TypeScript rules for Bazel - bazelbuild/rules_nodejs
The only reason to use raw tsc is if you want to compile a directory of .ts files and cannot enumerate them ahead-of-time...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It works for my project. I have a script in:
packages/dev/server.ts
A
package.json
entry along the lines of:"tscWatch": "tsc-watch -b packages/dev/tsconfig.json --onSuccess \"node dist/dev/server.js\"",
tsc
needs a-b
switch to activate project references.Beautiful