Skip to content

Commit

Permalink
build: don't copy root package test folders
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva authored and gregmagolan committed Apr 16, 2020
1 parent 8b79f9d commit 4507c05
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,11 @@ export default async function(
return true;
}

// Ignore in package test files.
if (fileName.startsWith('test/') || fileName.startsWith('test\\')) {
return false;
}

// Remove Bazel files from NPM.
if (fileName === 'BUILD' || fileName === 'BUILD.bazel') {
return false;
Expand Down

0 comments on commit 4507c05

Please sign in to comment.