Exclude 3rd party modules from scan (#144440)

* exclude 3rd party modules from scan

* Update comment
This commit is contained in:
Tyler James Leonhardt 2022-03-04 14:49:45 -08:00 committed by GitHub
parent e4669da1ac
commit b8b10aeba2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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));
};