Excluding an entire folder / contents from 'Copy Files' step in TFS 2017 build definition
You should set the contents with two lines as:
**\**
!AppsJs\v3\node_modules\**
You should set the contents with two lines as:
**\**
!AppsJs\v3\node_modules\**