Skip to content

Commit 99f0e5a

Browse files
committed
build: exclude snapshots
1 parent cd4f77b commit 99f0e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/astro/scripts/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async function copyDefaultFolder() {
6767
// copy default folder unmodified, without test files
6868
await cp(src, dist, {
6969
recursive: true,
70-
filter: (filename) => !filename.endsWith('.spec.ts'),
70+
filter: (filename) => !filename.endsWith('.spec.ts') && !filename.includes('__snapshots__'),
7171
});
7272

7373
if (isWatch) {

0 commit comments

Comments
 (0)