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
Apparently npm build used to be a thing. However, support and documentation for this command quietly disappeared after npm@6. Meanwhile npm rebuild is still a thing, but is documented as:
"This command runs the npm build command on the matched folders"
There's a few problems with this:
Minor nit: npm build in modern versions of npm fails with 'Unknown command: "build"'
The behavior of npm build is effectively unspecified. There's the legacy docs, but those docs are old (three major versions back, now), and frustratingly terse. They allude to build being part of the "plumbing" of link and install, but don't elaborate on what that means or what build should or should not be used for.
Desired behavior: Hmm... I'm not sure. Given that build seems to have been deprecated, I would expect the same of rebuild as well, and any other related scripts that might rely on build.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Apparently
npm build
used to be a thing. However, support and documentation for this command quietly disappeared afternpm@6
. Meanwhilenpm rebuild
is still a thing, but is documented as:There's a few problems with this:
npm build
in modern versions ofnpm
fails with 'Unknown command: "build"'npm build
is effectively unspecified. There's the legacy docs, but those docs are old (three major versions back, now), and frustratingly terse. They allude tobuild
being part of the "plumbing" oflink
andinstall
, but don't elaborate on what that means or whatbuild
should or should not be used for.build
isn't a thing, naive developers may assume they can define their ownbuild
behavior without running afoul ofnpm
-native behavior. This can lead to issues like [BUG]npm rebuild
runsbuild
script, which has unexpected semantics uuidjs/uuid#698Desired behavior: Hmm... I'm not sure. Given that
build
seems to have been deprecated, I would expect the same ofrebuild
as well, and any other related scripts that might rely onbuild
.Beta Was this translation helpful? Give feedback.
All reactions