Skip to content
Discussion options

You must be logged in to vote

Create lingui.config.js and extract command in both apps in the monorepo. For each config file specify the paths need to be included, such as

for nextjs:

  • apps/nextjs
  • packages/*

For expo:

  • apps/expo
  • packages/*

If you have a package.json in your apps which is defining what packages from monorepo is used in particular app you can use this package.json to programatically build list of the folder to extract.

app/nextjs/package.json

"dependencies": {
   "@acme/ui": "workspace:^",
   "@acme/auth": "workspace:^"
}

Read package.json in the lingui.config.js and transform to:

  • apps/nextjs
  • packages/ui
  • packages/auth

This will ensure you have a single source of truth (package.json) for the dependnc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by 0-Sandy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants