-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new types.path
property
#8381
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
types.listTypesPath
propertytypes.listTypesPath
property
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 23b987f:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good 😄 can’t wait to give keystone with monorepos another try. Between this PR and #8307, it should be more doable now
9fc5ff4
to
e34301d
Compare
types.listTypesPath
propertytypes.path
property
842ff98
to
a3185f6
Compare
This pull request adds a new
.types.path
configuration option that will enable developers to specify where their Keystone types are built.Previously you imported your types with
.keystone/types
, which are automatically built innode_modules/.keystone/types.d.ts
. This is suitable for many usecases, but if you're using a monorepo, you might want to import these types in your other workspaces. Usingnode_modules/.keystone/...
prevented that.You can now specify a
.types.path
that works for you.If you were relying on
.keystone/types
, that will break only if you use this feature.Thereby, this is not a breaking change.
We thought about opting to try and keep
.keystone/types
resolving, even with a customtypes.path
, but that actually ended up in a number of weird edge-cases that aren't easy to debug.