Skip to content

Commit 8335659

Browse files
chore: dont include hidden files/folders when building
1 parent ec5f0e1 commit 8335659

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/package.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ function copyDir( src, dest ) {
8787
let hasCopiedFiles = false
8888

8989
for ( const item of items ) {
90+
// Skip hidden files/folders (start with '.')
91+
if ( item.startsWith( '.' ) ) {
92+
continue
93+
}
9094
const srcPath = path.join( src, item )
9195
const destPath = path.join( dest, item )
9296
const stat = fs.statSync( srcPath )

0 commit comments

Comments
 (0)