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
Prisma node_modules
files are very large
#14141
Comments
Do you have |
@janpio nope |
What entries are in your |
@janpio using yarn 1 to install. What you mean entries? |
Entries in |
@janpio {
"dependencies": {
"@prisma/client": "^4.0.0",
"prisma": "^4.0.0",
"prisma-docs-generator": "^0.5.0"
}
} Running du on all node_modules
Running du on node_modules
|
Same here when installing with {
"dependencies": {
"@prisma/client": "~4.3.0",
"prisma": "~4.3.0",
}
} $ du -sh node_modules/* | sort -sh
...
99M node_modules/prisma
221M node_modules/@prisma $ du -sh node_modules/prisma/* | sort -sh
4.0K prisma/package.json
8.0K prisma/README.md
8.0K prisma/scripts
12K prisma/LICENSE
20K prisma/install
88K prisma/preinstall
2.4M prisma/prisma-client
12M prisma/build
85M prisma/node_modules $ du -sh node_modules/@prisma/* | sort -sh
2.5M @prisma/client
3.1M @prisma/prisma-fmt-wasm
216M @prisma/internals |
Same here, would like to know why the size is so large? |
Amongst other things, this large binary is in multiple places (not symlinks)
|
Closes #15244 Related #14141 Before https://www.npmjs.com/package/@prisma/internals Unpacked Size 124 MB After, from `pnpm publish --dry-run --no-git-checks` npm notice package size: 77.7 kB npm notice unpacked size: 397.7 kB
I created and merged a PR about
|
Today's release 4.8.0 has significantly (average 50%, on some platforms even more) decreased the size of our engine files:
https://github.com/prisma/prisma/releases/tag/4.8.0 We know we still have duplicated engine files in multiple locations, and that we are including too many of our engine files - but this was the obvious place to start and we are happy how significantly we could improve the situation already. Expect more updates like this in the coming releases from us. |
node_modules
files are very large
As written before, we have reduced the size of our engines a lot and as far as we know, this solved this problem for most our user and their use cases. Hence I am closing this issue for now. If you and your project are still having problems because of the remaining size of our engines, please open a new issue and describe your situation - we are happy to take a look and hopefully fix that. Thanks! |
Bug description
Prisma in node_modules is occupying quite a bit of storage on heroku. See:
How to reproduce
Prisma 4.0
Expected behavior
No response
Prisma information
Prisma 4.0
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: