[BUG](arborist) Lifecycle Scripts of file:
dependencies do not run
#4277
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
ws:arborist
Related to the arborist workspace
What / Why
When
npm install
(npm v7.2.0/arborist v2.7.1)Where
How
Current Behavior
Arborist runs the lifecycle scripts for a package in the
_build
step ofreify
.I spent some time stepping through the debugger to see where the issue was happening and found this:
https://github.com/npm/arborist/blob/c5e1618a0059b37ee878b73553d7dc47bf3fa976/lib/arborist/reify.js#L973
I'm not sure what
target.fsTop
is here or how it is calculated, but it seems that any packages installed with a local path, are skipped from the rebuild because of this condition.Removing the condition allows the scripts to run correctly.
I will gladly work on this if someone could point me in the right direction.
Steps to Reproduce
npm i --foreground-scripts
(to verify the output of the postinstall)Expected Behavior
Who
References
The text was updated successfully, but these errors were encountered: