-
|
Hey folks, I am planning to try this great CMS. Currently, I have a monorepo setup with https://github.com/nrwl/nx and hit the first obstacle, looks like keystone has a requirement to have a keystone.ts in the root repo and also CLI commands are not supper friendly to other folder structures. Any plans to make it more flexible? Thanks 🙌 |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
|
Hi @orest22, did you have a reproduction that we could work with to try and improve this? Keystone 6 should work in a mono-repo when within a package, it should not require to be the root. |
Beta Was this translation helpful? Give feedback.
-
|
Here https://github.com/vlnevyhosteny/keystonejs-nextjs-monorepo you can find Keystone 6 in monorepo. Take a look on |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Monorepos are gaining in popularity and make the most sense for a project with Keysone that has a frontend codebase. I am running into this issue with Keystone + https://turborepo.org even after attempting a fresh install. |
Beta Was this translation helpful? Give feedback.
-
|
We also run into massive issues with a yarn v1 workspace that keystone is added to. The issues stem from hoisting packages, as for example react is resolved twice from keystone dependencies. Manifests in errors like What worked so far is excluding the keystone containing package from the workspace, but that defeats the purpose of workspaces at all. |
Beta Was this translation helpful? Give feedback.
#7220 (reply in thread)