Skip to content

Repro for TS bug where changes to node_modules don't invalidate the TS build.

Notifications You must be signed in to change notification settings

brieb/ts-issue--tsb-nodemodules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microsoft/TypeScript#38648

Changes to types within node_modules do not invalidate the TypeScript build output.

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

About

Repro for TS bug where changes to node_modules don't invalidate the TS build.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published