rfcs
rfcs copied to clipboard
RFC: Robust Lifecycle Scripts
Proposal to implement more robust lifecycle scripts with reify context.
See issue npm/cli#3042
Something that was talked about in previous discussions about this was having some way to at least give people a fighting chance of making this an iterative change. Namely, that these could reference scripts. I don't think that's really the right solution but we should definitely keep that on our radar as we build examples. For instance making the lifecycle script entries call npm run xxx.
This does bring up the point of if these should be exclusive. i.e. if this object is populated at all, then the original lifecycle scripts are not ran.
Would this RFC be a reasonable one to also include enhancements to the lifecycle flags, or should that be a separate concern?