Changes to types within node_modules
do not invalidate the TypeScript build output.
yarn tsc -b tsconfig.soln.json
. Notice that no errors are reported.- Make some modification to
node_modules/@types/lodash
that would cause an error in the project. For example, editnode_modules/@types/lodash/ts3.1/common/util.d.ts:881
to accept astring
instead of anumber
. This is meant to simulate an update to the types withinnode_modules
. yarn tsc -b tsconfig.soln.json
. Notice that no errors are reported. This is unexpected.rm -rf build && yarn tsc -b tsconfig.soln.json
. Notice that errors we expected in step 3 are reported.- Unto the edit made in step 2.
yarn tsc -b tsconfig.soln.json
. Notice that no errors are reported, as expected.