You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm experimenting with a repo setup where I share tooling config such as prettierrc files and such in npm packages and a postinstall script creates a symlink from the workspace into the installed package.
Now, putting aside how good or bad of an idea this is (haven't tried it on windows yet, I might just stick with copying)
pnpm fails to install such scenario, but I think it should. From the error message I can see it tries to stat the files in a local package but that throws an error for broken symlinks that is not caugth.
Now, I have 2 workarounds for myself, one is just to not use such setup, or keep using npm. The other is a preinstall script that cleans broken symlinks, they'd be regenerated anyway, but I'd lose tooling during install.
Yes, as I said the idea itself where I discovered this is not that important, I'm just toying with it. And in my case this is just local monorepo package, it doesn't matter if it's skipped in the node_modules "projection" of it (I guess that's what this is for?).
But this definitely looked like a bug, especially after playing with symlinks using node and stat/lstat.
I'm experimenting with a repo setup where I share tooling config such as prettierrc files and such in npm packages and a postinstall script creates a symlink from the workspace into the installed package.
Now, putting aside how good or bad of an idea this is (haven't tried it on windows yet, I might just stick with copying)
pnpm fails to install such scenario, but I think it should. From the error message I can see it tries to
stat
the files in a local package but that throws an error for broken symlinks that is not caugth.Now, I have 2 workarounds for myself, one is just to not use such setup, or keep using npm. The other is a preinstall script that cleans broken symlinks, they'd be regenerated anyway, but I'd lose tooling during install.
pnpm version:
7.14.0
Code to reproduce the issue:
Try installing this commit with pnpm
AlexAegis/js-tooling@8b14315
Expected behavior:
Installs just fine, ignoring the broken symlinks
Actual behavior:
An error is thrown
ENOENT ENOENT: no such file or directory, stat '/home/alex/git/js/packages/vite/.prettierignore'
Additional information:
node -v
prints: v16.13.0The text was updated successfully, but these errors were encountered: