-
Notifications
You must be signed in to change notification settings - Fork 586
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
[rush] circular dependence on postinstall #2517
Comments
I confirmed that this only repros if Maybe this can be fixed by appending --ignore-scripts to the |
This is the default behavior of all package managers. |
@zkochan But for a local workspace project whose source code has not been compiled yet, would you consider that to be "installed"? Does this mean that |
Seems like this is the same issue as pnpm/pnpm#1801 |
Thinking about this more, I'm fairly certain that PNPM's behavior here is not right. (We can use pnpm/pnpm#1801 to discuss that.) It seems that we can't use |
@zkochan looking at pnpm/pnpm#1801 more closely, it involves the In my opinion PNPM's handling of
|
The linked issue will solve this issue if the |
NPM does not support workspaces. |
Actually, it does since v7 https://docs.npmjs.com/cli/v7/using-npm/workspaces and it behaves the same when inside a workspace |
I see. Hmm. It does make sense for PNPM to behave consistently with NPM. But also the design seems wrong. So maybe we could provide a setting to fix this in Rush repos. And maybe the setting would be enabled by default. |
Summary
on project's package.json
when I clone my repo and execute
rush update
,it update both project and executemy-cli
via postinstall,but execute fail because ofcompiler/dist/index.js
should be generate afterrush build
Repro steps
Expected result:
no exception
Actual result:
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
@microsoft/rush
globally installed version?rushVersion
from rush.json?useWorkspaces
from rush.json?node -v
)?The text was updated successfully, but these errors were encountered: