๐ง๐๐ ๐ฃ๐๐ ๐ข๐ ๐ฆ๐ฃ๐๐๐! ๐๐๐ฅ๐. ๐ช๐. ๐๐ฅ๐. ๐๐ผ๐ฎ๐น
It's time for the final races of the season this weekend in Italy. ๐
#Renault#ClioCup
@mattpocockuk Oh, are you trying to link back from global into a local package? Yeah, in this case `npm link [...]` wouldn't work, and you'd have to install the global -> local link using pnpm. I haven't tested but this should work `pnpm install pkg@link:$(npm prefix -g)/lib/node_modules/pkg`
@mattpocockuk Under the hood, npm is just using the same exact mechanism as adding a `link:` dependency. Dependencies of linked dependencies are not resolved or installed, and this behavior is shared by all package managers. Even `pnpm link` docs mentions this specific use case but in reverse.
@mattpocockuk It doesn't need to. `npm link` only creates the symlinks from it's global node_modules & bin into your local package directory. It doesn't resolve or install deps, because the local node_modules it's symlinked into should have all deps already installed (by pnpm in this case).
@izs And actually it seems like a simple problem to solve, but it's actually kinda hard to understand fully and hard to explain. It's one of these problems where you expect some tool to just do everything for you without having to get so much into the weeds to fix it yourself
@izs The amount of pain I've been through to fix our tooling to get our library to work whenever we get bug reports was insane. So when something has been quite a pain in the tushy for so long, and something comes to solve it like some magic pill, you can't help but love it this much
@mattpocockuk I've found that the best tool to do this is `tshy` by @izs. It is quite opinionated but if there's someone's opinions are to follow, it would be npm's creator! The amount of tooling code that I've deleted since moving to `tshy` is insane!
@mattpocockuk I can go into so much detail into why this is better, but the tl;dr is that it works even if `exports` is not supported or if .cjs/.mjs extensions are not supported/causing problems.
@dhh I know you said it's not the same thing, but there's also something elegiacally poetic about how IOPS, throughput, and disaster recovery capabilities will die a beautiful death if you move from the cloud to a single hard drive.