feat: use run by default and run-script as the alias#8265
Conversation
304fff4 to
babff31
Compare
There was a problem hiding this comment.
Changes here look good to me, but I wonder about the impact on the docs.
How will https://github.com/npm/documentation/blob/main/content/cli/v11/commands/npm-run-script.mdx get updated? If someone starts from https://docs.npmjs.com/cli/v10/commands/npm-run-script, do we want to have 11.3.0 redirect to /commands/npm-run somehow?
It's a good question, @wraithgar brought it up too and was in-between on if redirects were worth it for this. How would we set them up if we want to do that? |
|
Yeah I knew it was already being done. Found it: https://github.com/npm/documentation/blob/c85e584bfea44c299e9415c847218b33cdf0a55c/cli/lib/redirects.js You can see a couple of these redirects from renames at the bottom of that file |


npm/statusboard#467
This pull request standardizes the use of
npm runacross the codebase and documentation, replacing all references to thenpm run-script- now an alias. It also includes file renaming and updates to reflect this change.