Skip to content

Commit

Permalink
fix: no files being found when catalogs.include has more than one ent…
Browse files Browse the repository at this point in the history
…ry (#1108)
  • Loading branch information
gwilymhumphreys committed Aug 30, 2021
1 parent 25a50a2 commit 04efd85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/src/api/catalog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ export function getCatalogs(config: LinguiConfig) {

const patterns = include.map((path) => path.replace(NAME, "*"))
const candidates = glob.sync(
patterns.length > 1 ? `{${patterns.join(",")}` : patterns[0],
patterns.length > 1 ? `{${patterns.join(",")}}` : patterns[0],
{
ignore: exclude,
mark: true,
Expand Down

1 comment on commit 04efd85

@vercel
Copy link

@vercel vercel bot commented on 04efd85 Aug 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.