4 ms·
Is there any other framework or library using these "smart" node_modules ? I never noticed.
by codegladiator 7y ago
Is there any other framework or library using these "smart" node_modules ? I never noticed.
- nikolasburk 7y agoI don't believe so, this term was coined by one of our community members and we really liked it and decided to adopt it to distinguish Prisma Client conceptually from "conventional" (for lack of a better term) node modules.
- eyelidlessness 7y agoWas there consideration of using something like schemats[1] and allowing users to specify where they want to store the types for their schema? Storing them in `node_modules` is extremely unidiomatic and probably rules this library out for me even though it's otherwise attractive at first glance. [1]: https://github.com/SweetIQ/schemats https://github.com/SweetIQ/schemats
- nikolasburk 7y agoYou can specify where you want to generate Prisma Client yourself, `node_modules` it's just the default. See my response above: > Also note that you can actually generate Prisma Client into a different location [4], so if you prefer not to have it in node_modules, that's totally possible as well. [4] https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/generating-prisma-client#specifying-the-target-location-for-prisma-client https://www.prisma.io/docs/reference/tools-and-interfaces/pr...
- eyelidlessness 7y agoThat sounds nice. Your link 404s tho. Edit: it did at first, now it's loading. I've seen other 404s just clicking around the docs. It's possible you've got some CDN caching issues?
- nikolasburk 7y agoYeah, we just published the new website today and moved around a ton of stuff. We're still in the process of cleaning things up here and there, feel free to ping me when you find more broken links :) (@nikolasburk on Twitter or Prisma Slack)
- swyx 7y agohey nikolas! Svelte's Sapper generates its own @sapper modules I believe. https://github.com/sveltejs/sapper/ https://github.com/sveltejs/sapper/