Use typescript alias & deps in collection pattern #243
QuentinFrc
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi ! Just want to share my use case with you and discuss about my "problem"
In a monorepo I have a docs project (apps/docs) and I'd like to define a document collection with the following pattern: '@repo/ui/**.mdx'.
In the ui packages (packages/ui) I have the following export:
“./*.doc”: “./src/components/*/index.mdx”
.This would give the following code:
The current workarround is to define "../.." as root in config and then add full path to the package but it could be cool to use directly ts alias and package resolution.
Allowing to define config like this :
What do you think about it ?
EDIT:
For now I use this config
Beta Was this translation helpful? Give feedback.
All reactions