dsteem
dsteem copied to clipboard
add prepare script to support installing from git
see also
https://github.com/npm/npm/issues/3055
https://github.com/steemit/steem-js/pull/415
Wouldn't this run the build for every npm install (even if they are installing from a tarball)?
Maybe? I’m not sure, but in any case I don’t see any harm in that. The problem is that without this, it’s impossible to install directly via git/hash/branch in a package.json
.
It matters because it adds a considerable amount of install time and it will also pull in the devDependencies
for every install. Not to mention that running a separate npm install
within an already running npm install
is asking for trouble.
I'm trying to decipher https://docs.npmjs.com/misc/scripts and it seems like the new prepare
is just an alias for the old publish
? But the prepack
hook seems to be what we want, maybe?