-
Notifications
You must be signed in to change notification settings - Fork 22
Fix context helper file generation #56
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
base: main
Are you sure you want to change the base?
Conversation
A change resulted in the context being generated in the generators folder, so this moves it up 1 directory
@Beachman4 is attempting to deploy a commit to the Kevin's Projects Team on Vercel. A member of the Team first needs to authorize it. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Oh this is awesome! does it really fix the types generation? |
Yes it should make it work according to the docs, but I think the context generation should be expanded to allow you to specify the placement so you can check it into version control. Right now, since it's in node_modules, when you use this type in your repo and you have a fresh node_modules, then typecheck will break, thus not allowing the context to be generated. Alternatively, perhaps adding a bin to this package & adding a generate command, similar to prisma, as prisma follows a similar pattern with generated files being placed in node_modules. |
Hey, thinks for this PR. In addition to this:
I am also wondering how this will work with a monorepo(turborepo) where 2 or more apps are using the |
Can this commit be released? The latest version still cannot import |
This is also how I am using it, curious as well. |
@KevinEdry Can you please release this PR? 7 months since its creation... |
Hey, please merge this. I really want to use context in my setup! |
Right now, the example in the documentation does not work because the types export was removed from the package.json and even if that is added back, the generation of the helper file is being done in the generators folder because of
__dirname
fixes #54, fixes #21