Skip to content

Commit

Permalink
Ignore content .json files prefixed with underscores (#7611)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Jul 10, 2023
1 parent 8df6a42 commit 904921c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-tomatoes-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Ignore content .json files prefixed with underscores (regression)
4 changes: 2 additions & 2 deletions packages/astro/src/content/vite-plugin-content-virtual-mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
];
}
Empty file.
Empty file.

0 comments on commit 904921c

Please sign in to comment.