-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[Question] How to see installed package source? #1183
Comments
Follow #1157 for VSCode Zip support. Once VSCode has Zip support, |
I disagree. Including this particular workflow as a feature enhancement defeats the entire point of Plug'N'Play. Doing so would require an additional step be added to the .pnp.js generation lifecycle; where resolved worktree deps would need an entirely new (internal) protocol to reference the mirrored contents of a modules .zip file. Further complicating the issue, zipped module archives have a completely unique file naming convention than that of a standard directory located in node_modules. This, again, is due to the |
Package sources can be accessed as long as the surrounding "shell" provides support for that:
I think this should answer the question, so I'm going to close the thread 🙂 |
It's a very common practice to look at package source code inside
node_modules
to see how something works, to see TypeScript type definitions etc. To me it looks like it is impossible to do so with Yarn 2.0. Since all packages are stored as .zip files, the IDE isn't able to open and show any files located inside the packages.I tried Googling about this, but couldn't find anything. So is this true? Or is there a way to make Yarn 2.0 store the packages as unzipped folders so that they can be explored? If not, why? Surely this is an important feature
The text was updated successfully, but these errors were encountered: