farmOS / field-kit

A modular, offline-first companion app to farmOS.
https://farmOS.org
GNU General Public License v3.0
59 stars 38 forks source link

Add monorepo tooling #501

Closed jgaehring closed 2 years ago

jgaehring commented 2 years ago

Since #446 we've effectively had a monorepo, and that's only grown since then, especially with #491, but that last one introduced issues I don't think are thoroughly resolved yet. Namely, it's not great to be importing field-scripts and field-kit itself with relative paths in the dependents' package.json, and obviously that won't work in community modules, so I think it's time to bring in Lerna or something made for this kind of set up.

Found some helpful resources:

jgaehring commented 2 years ago

Ultimately, I decided to just use npm's built-in workspaces, at least for now, since it doesn't require any additional devDependencies. Tools like Lerna or Yarn might still prove useful for automation in the future.

Resolved by the following commits: