Skip to content

Commit

Permalink
Exclude 3rd party modules from scan (microsoft#144440)
Browse files Browse the repository at this point in the history
* exclude 3rd party modules from scan

* Update comment
  • Loading branch information
TylerLeonhardt authored Mar 4, 2022
1 parent e4669da commit b8b10ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build/gulpfile.scan.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

Expand Down

0 comments on commit b8b10ae

Please sign in to comment.