You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since at least 2015, the documentation has mentioned that prepublish scripts[1], as well as install scripts[2] are discouraged, with the former also being deprecated. Conversely, the section immediately following the deprecation notice of prepublish recommends using it for transpilation and fetching remote resources.
Similarly, the only examples[3] on the page showcase the use of the recently removed uninstall script[4] along with install being used to execute Unix Make scripts, discouraged in favor of node-gyp (and ironically, prepublish scripts) just two sections later.
Expected Behavior
Documentation is consistent and leaves the reader informed, not confused. Current examples should be replaced with more realistic ones. According to bug 10074[5], prepare should take the place of prepublish.
Is there an existing issue for this?
Current Behavior
Since at least 2015, the documentation has mentioned that
prepublishscripts[1], as well asinstallscripts[2] are discouraged, with the former also being deprecated. Conversely, the section immediately following the deprecation notice ofprepublishrecommends using it for transpilation and fetching remote resources.Similarly, the only examples[3] on the page showcase the use of the recently removed
uninstallscript[4] along withinstallbeing used to execute Unix Make scripts, discouraged in favor of node-gyp (and ironically,prepublishscripts) just two sections later.Expected Behavior
Documentation is consistent and leaves the reader informed, not confused. Current examples should be replaced with more realistic ones. According to bug 10074[5],
prepareshould take the place ofprepublish.