-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buildDependencies? #29
Comments
Interesting idea! 👍 Would the following install script work for you? "scripts": {
"install": "prebuild-install || (npm install nan && node-gyp rebuild)"
} This way |
Yes, you got the idea ;-) In fact I was thinking about doing it like this in a first time, but when you have several |
|
When I said "versioned" I mean "automatic versioned", it's said, dependencies could be check and updated using |
Ooh I see, that wouldn't work. Though one could still add them as a |
Yeah, but this way you need to have them defined in two places that would get unsync. I've giving a look at your idea of the |
By using
prebuild-install
I've found mostly is the only one dependency I need, except when it can resolve to a prebuild image and needs to be compiled, for examplenan
and similar ones that are useless for prebuild images. I could set them asdevDependencies
, but in that case they would not be available if the prebuild is not available, so that dependencies are in a no-man-land status.For that situation, I think a solution would be a
buildDependencies
where to set the dependencies needed only when the prebuild image could not be fetch (because it's not available or due to download failure), that would be installed byprebuild-install
itself. This could be done being thatbuildDependencies
an independent field object with no relationship with the other dependencies, or it could be an array with the name of thedevDependencies
that are in fact build ones, so this way it could be integrated with current workflows and being compatible with tools likenode-check-updates
and similar ones.Thoughts?
The text was updated successfully, but these errors were encountered: