Ignore content .json files prefixed with underscores (#7611)
This commit is contained in:
parent
8df6a423c5
commit
904921cbe4
4 changed files with 7 additions and 2 deletions
5
.changeset/funny-tomatoes-guess.md
Normal file
5
.changeset/funny-tomatoes-guess.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Ignore content .json files prefixed with underscores (regression)
|
|
@ -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}`,
|
||||
];
|
||||
}
|
||||
|
|
0
packages/astro/test/fixtures/content-collections/src/content/with-schema-config/_ignore.md
vendored
Normal file
0
packages/astro/test/fixtures/content-collections/src/content/with-schema-config/_ignore.md
vendored
Normal file
Loading…
Reference in a new issue