Improve Monorepo (Turbo) support #3956
PhilippMolitor
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Remix (1.6.7) in a Turbo monorepo (https://turborepo.org/), my package manager is pnpm.
So far, i discovered two issues when importing/using other packages from my turbo monorepo:
When including my "ui" package which has some react components in it, remix is able to do that, but still shows a warning when compiling:
The path "ui" is imported in app/routes/index.tsx but "ui" was not found in your node_modules. Did you forget to install it?It would be very nice to have remix detect monorepo dependencies and then not show the warning in these cases. The "ui" package is included in my package.jsondependencies: {}:"ui": "workspace:*"In order to be able to scan for changes in my ui library, turbo needs to know its source path by telling remix about it in the config file:
It would be very convenient to rather listen to updates to a package here, e.g. replace the path with a shortcode similar to how eslint does it:
dependency:uiorwatchPackages: ['ui'].Beta Was this translation helpful? Give feedback.
All reactions