-
Notifications
You must be signed in to change notification settings - Fork 65
Description
I don't know GO lang but I tried to read the code, and from what I understood is that the value of hasPrebuildInstall
will be true if there is a prebuild-install
dependency in package.json
:
app-builder/pkg/node-modules/tree.go
Lines 134 to 141 in a465281
for name := range info.Dependencies { | |
if name == "prebuild-install" { | |
jsonWriter.WriteMore() | |
jsonWriter.WriteObjectField("hasPrebuildInstall") | |
jsonWriter.WriteBool(true) | |
break | |
} | |
} |
Then if the value hasPrebuildInstall
is not true, the function installUsingPrebuild
will not try to download the prebuilt binary.
app-builder/pkg/node-modules/rebuild.go
Lines 191 to 193 in a465281
if !dependency.HasPrebuildInstall { | |
return nil, nil | |
} |
It would be nice if there was an option to somehow pass an array of modules to installUsingPrebuild
and the function will try to use their prebuilt binaries regardless of the value of hasPrebuildInstall
(regardless of whether they use prebuild-install
or no)