Out of curiosity, I decided to experiment by executing tsc --build
on a project without any project references. Surprisingly, the command ran smoothly and completed without any issues. I expected there to be a warning or error since the build flag is typically associated with project references.
This experience led me to wonder: what distinguishes running tsc
from running tsc --build
in a project that doesn't utilize project references?