Uh oh!
There was an error while loading. Please reload this page.
feat: add npm set-script - #2237
Conversation
ljharb
commented
Nov 24, 2020
What happens if a package uses |
Yash-Singh1
commented
Nov 25, 2020
Any suggestions on how to detect or identify if it is being called from |
ruyadorno
commented
Nov 25, 2020
Right, I've read through the original RFC discussion to find that there was no definitive stance on it so it didn't make it to the RFC itself - I'm ok with that extra check being there since it's unlikely to be an issue to 99% of users.
You can check for |
ruyadorno
left a comment
There was a problem hiding this comment.
Thank you so much @Yash-Singh1 for picking this up from the RFCs and turning it into actual code 😄 This is looking very good, I think it just needs to adjust some details I left in the review + addressing lifecycle check from @ljharb 😊
For tests and docs you can refer to other commands for examples but definitively let us know if you need help/guidance. Thanks again! 🎉
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ljharb
left a comment
There was a problem hiding this comment.
This doesn't seem like it has actual tests?
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ljharb
left a comment
There was a problem hiding this comment.
seems good to me, but i don't see any unit tests.
Uh oh!
There was an error while loading. Please reload this page.
Yash-Singh1
commented
Nov 29, 2020
@ljharb@ruyadorno I am ready to merge from my end. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introduces the set-script command. It accepts two arguments, the script name and the command ref: https://github.com/npm/rfcs/blob/latest/accepted/0016-set-script-command.md PR-URL: #2237 Credit: @Yash-Singh1Close: #2237 Reviewed-by: @ruyadorno
Summary
This PR introduces the
set-scriptcommand. It accepts two arguments, the script name and the command as said in RFC 0016References
Adds in RFC 0016: https://github.com/npm/rfcs/blob/latest/accepted/0016-set-script-command.md