I have a few Typescript projects where I am suddenly getting getting a bunch of files popping up in the editor as "changed". The first thing that's odd about this is I DIDn't change them. Second, they are all in the node_modules
directory rather than my projects src
folder.
The trigger -- it would seem -- for the files showing up is me running my build script. This script is fairly mundane, as it:
- run
tslint
to make sure there's no dumb mistakes - transpile TS files in
src
to ESNEXT module format in/dist/esnext
- use RollupJS to transpile this ESNEXT code into CJS and UMD format
The use of Rollup in these projects is pretty new but I'm 100% confident it does NOT change the code in node_modules. This change of behavior did seem to coincide with vs-code 1.24.0
(I'm on 1.24.1
now) and while I'm shooting in the dark I feel it must have something to do with this upgrade combined with my project config.
I will say that in my "user settings" of vs-code i have:
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"node_modules/**": true,
},
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.d.ts": true,
},
Everything else is quite bland and uninteresting.