Skip to content
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

With 7.19.0, local packages inside mono repo with a post-install generated folder not updated on node_modules #5831

Open
semoal opened this issue Dec 23, 2022 · 2 comments

Comments

@semoal
Copy link

semoal commented Dec 23, 2022

pnpm version: 7.19.0, on 7.18.(0,1,2) works fine breaking change was introduced on 7.19.0

Code to reproduce the issue: Will create a repo for reproducing asap.

Problem:

After pnpm install -r --frozen-lockfile, postinstall hook runs and generates a client folder for prisma, inside the symlinked package, but this folder is not reflected inside the node_modules of the packages that has this module installed.

7.18.2 behavior:

When running pnpm generate which creates this client folder, the symlinked folder correctly diplays this client folder and the typings work correctly.

Additional information:

  • node -v prints:v16.18.1
  • Windows, macOS, or Linux?: Mac and Ubuntu
@semoal
Copy link
Author

semoal commented Apr 4, 2023

Tried with latest, 8.1.1 and this is still present.
@zkochan Zoltan didn't want to mention you, but could you give me some guideline of how could we fix this?

Basically since 7.19.0, when we generate a folder inside a module that is present in our packages of our monorepo, that's not updated across the monorepo, we need to run again a pnpm install to resync.

Couldn't we add something like a listener on config so when a package folder changes, autmoatically refreshes the other packages node_modules?

@zkochan
Copy link
Member

zkochan commented Apr 4, 2023

It is probably the same issue as #6088

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants