Switch to prebuildify & node-gyp-build #462
Description
Summary
prebuild-install
is recommending:
Instead of
prebuild
paired withprebuild-install
, we recommendprebuildify
paired withnode-gyp-build
.With
prebuildify
, all prebuilt binaries are shipped inside the package that is published to npm, which means there's no need for a separate download step like you find inprebuild
. The irony of this approach is that it is faster to download all prebuilt binaries for every platform when they are bundled than it is to download a single prebuilt binary as an install script.
Right now, prebuild-install
installs 759KBs of node_modules
none of which need to ship in our product because keytar
is standalone AFAICT.
Motivation
We, in vscode, are trying to slim down the size of the package and because of prebuild-install
we are introducing 759kbs of stuff that isn't used at all.
Describe alternatives you've considered
In vscode we have considered installing keytar
to a separate location and then copying the files over to our build to slim down our package but it would be nice if keytar
followed the recommendation here by prebuild
which, in theory, will slim down the build.