mirror of
https://github.com/Microsoft/vscode
synced 2024-10-04 02:14:06 +00:00
Exclude 3rd party modules from scan (#144440)
* exclude 3rd party modules from scan * Update comment
This commit is contained in:
parent
e4669da1ac
commit
b8b10aeba2
|
@ -76,7 +76,14 @@ function nodeModules(destinationExe, destinationPdb, platform) {
|
|||
|
||||
const exe = () => {
|
||||
return gulp.src(dependenciesSrc, { base: '.', dot: true })
|
||||
.pipe(filter(['**/*.node', '!**/prebuilds/**/*.node']))
|
||||
.pipe(filter([
|
||||
'**/*.node',
|
||||
// Exclude these paths.
|
||||
// We don't build the prebuilt node files so we don't scan them
|
||||
'!**/prebuilds/**/*.node',
|
||||
// These are 3rd party modules that we should ignore
|
||||
'!**/@parcel/watcher/**/*',
|
||||
'!**/native-is-elevated/**/*']))
|
||||
.pipe(gulp.dest(destinationExe));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue