Open
Description
Currently the plugin treats all scripts as independent and sorts them alphabetically. This does not well represent the idea of npm where the prefix "before" and "after" have specific meanings. Ex.
"scripts": {
"test": "node --test",
"preversion" :"tsc && npm run test",
"version": "npm publish",
"postversion": "git push --tags"
}
has currently order that does not reflect reality:
"scripts": {
"postversion": "git push --tags",
"preversion" :"tsc && npm run test",
"test": "node --test",
"version": "npm publish"
}
I suggest to parameterizing this action.