Re:A web of trust for NPM
by kitten_mittens_ on Saturday October 03, 2020 @08:32PM
(#24675771)
Yarn 2’s Plug and Play has actually been a dream dep size wise. Once you get over the initial hurdles of setup, you can do things like vend your reps for zero installs. core-js alone (two major versions because @rjsf felt compelled to polyfill in a library) is 3K files worth of node_modules.
[ Parent
| on HN ]
Re:A web of trust for NPM
by SirensOfTitan on Saturday October 03, 2020 @08:47PM
(#24675813)
Maybe I’ll drive yarn v2 migration over the finish line then. Have you run into any hiccups post setup?
Re:A web of trust for NPM
by kitten_mittens_ on Tuesday October 06, 2020 @05:38PM
(#24702591)
Once you get through unspecified dependencies of dependencies (and pnpifying tools), my last big hiccup with yarn 2 is that zipfs doesn’t work with vs code and typescript’s language server. So you can’t go to code or type definitions within zips.
What specific issues are you seeing? I was just trying out Yarn v2 for the first time over the last couple days. I ran the `yarn dlx @yarnpkg/pnpify --sdk vscode` command suggested on their migration guide, and that generated a config file. VS Code then suggested that I add a ZipFS-related extension, and once I did that, I could view typedef files from libraries.