rfcs icon indicating copy to clipboard operation
rfcs copied to clipboard

RFC: Robust Lifecycle Scripts

Open fritzy opened this issue 4 years ago • 2 comments

Proposal to implement more robust lifecycle scripts with reify context.

See issue npm/cli#3042

fritzy avatar Aug 23 '21 23:08 fritzy

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.

wraithgar avatar Aug 24 '21 19:08 wraithgar

Would this RFC be a reasonable one to also include enhancements to the lifecycle flags, or should that be a separate concern?

bnb avatar Sep 16 '21 15:09 bnb