Skip to content

Commit

Permalink
fix: Use LINGUI_CONFIG env as fallback for extract (#932)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredyC committed Jan 13, 2021
1 parent 4ad90d4 commit ce71a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/lingui-extract.ts
Expand Up @@ -83,7 +83,9 @@ if (require.main === module) {
.option("--format <format>", "Format of message catalogs")
.parse(process.argv)

const config = getConfig({ configPath: program.config })
const config = getConfig({
configPath: program.config || process.env.LINGUI_CONFIG,
})

let hasErrors = false
if (program.format) {
Expand Down

1 comment on commit ce71a8b

@vercel
Copy link

@vercel vercel bot commented on ce71a8b Jan 13, 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.