Ignore content .json files prefixed with underscores (#7611)

This commit is contained in:
Bjorn Lu 2023-07-10 20:39:32 +08:00 committed by GitHub
parent 8df6a423c5
commit 904921cbe4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Ignore content .json files prefixed with underscores (regression)

View file

@ -213,7 +213,7 @@ function globWithUnderscoresIgnored(relContentDir: string, exts: string[]): stri
const contentDir = appendForwardSlash(relContentDir);
return [
`${contentDir}**/*${extGlob}`,
`!${contentDir}_*/**${extGlob}`,
`!${contentDir}_*${extGlob}`,
`!${contentDir}**/_*/**${extGlob}`,
`!${contentDir}**/_*${extGlob}`,
];
}