Only add requiresBuild
to an entry in the lockfile if we know the package needs to be built from info in the package manifest
#7707
Labels
Contribution
Describe the user story
We add the
requiresBuild
fields to the lockfile in order to be able to tell if a dependency needs to be built without reading thepackage.json
file of the dependency. This is supposed to make installation faster with an up-to-date lockfile.However, some packages don't have build scripts in
package.json
but still need to be built. We know they need to be built because they have specific build files in their tarball. If a package is optional, we don't download its tarball so we cannot know for sure if it should be built. That is why currently we setrequiresBuild
totrue
for all optional dependencies.Describe the solution you'd like
Remove
requiresBuild
from the lockfile. Read thepackage.json
file of the package to find out if it needs to be built. Add arequiresBuild
field to the package's index file.Describe the drawbacks of your solution
.
Describe alternatives you've considered
.
The text was updated successfully, but these errors were encountered: