-
Notifications
You must be signed in to change notification settings - Fork 175
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
How can I tell electron-rebuild to ignore my library? #1055
Comments
I think in general Do you have a ref to your module? Would probs help someone look into this with a "repro case" |
Ideally I should be able to put something in my package.json which says 'Im node-api, trust me'. If I was to do that and still use I think electron-builder approaches this by invoking the This came out of https://github.com/Julusian/node-midi, from a user issue, which includes a reproduction https://github.com/navelpluisje/midi-electron-test. On ubuntu/debian, building the module requires the Another example which I assume will also be rebuilt, (I haven't verified) is https://github.com/julusian/node-jpeg-turbo. Which uses a tool |
Yeah , such as |
I checked the doc, maybe below can help. add below in rebuildConfig: {
onlyModules: [],
}, |
I have some libraries which provide node-api prebuilds for all common platforms. This means that electron-rebuild should almost never need to rebuild my library.
Rebuilding it forces users to spend more time waiting for the rebuild to happen, and can require them to install some dependencies/tools for the rebuild to succeed. (In one, there is an optional tool that if available will produce a more performant binary).
So ultimately, the forced rebuild is hurting users, with little/no benefit.
Is there either:
package.json
?--only
to do this, but it would be much better to be able to ignore a specific dependency instead of having to name all but one explicitlyThe text was updated successfully, but these errors were encountered: