Skip to content

Commit 63e668f

Browse files
filipesilvadgp1130
authored andcommitted
build: don't copy root package test folders
1 parent 6304221 commit 63e668f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/build.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,11 @@ export default async function(
271271
return true;
272272
}
273273

274+
// Ignore in package test files.
275+
if (fileName.startsWith('test/') || fileName.startsWith('test\\')) {
276+
return false;
277+
}
278+
274279
// Remove Bazel files from NPM.
275280
if (fileName === 'BUILD' || fileName === 'BUILD.bazel') {
276281
return false;

0 commit comments

Comments
 (0)