We are using visual studio 2015 and TFS 2013. We created a Cordova javascript project and added it to source control. When we add dependencies to the package.json file they are downloaded in to the node_modules folder. The node_modules folder was not checked in when the solution was initially added to source control. Once the packages are restored on a developer machine, the node_modules folder is added to the Pending Changes tab and the files are locked by the last dev machine which restored packages. I would like to exclude the node_modules folder from TFS completely, as it is restored on each developer machine. We are using server workspaces, so .tfignore files have no effect. Adding a check in policy only shows a warning, which is overridable, if a developer is not paying attention and is also a bad user experience IMHO.
Is there an alternative?