Skip to content

Why is common-i18n a package instead of static assets? #1928

Answered by belgattitude
ekafyi asked this question in Q&A
Discussion options

You must be logged in to vote

By declaring the package it becomes part of the dependency graph (topology).

While it's not very much useful in this example repo (a fair starter), it will allow yarn / turbo / nx to compute changes and affected packages.

In other words, a change in locales will trigger a build on workspaces that depends on it.

The images static folder was a quick hack, I'll update when I have time.

Ps: yes Sharing typings, enabling specific linters... are also part of the reason

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ekafyi
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