Related: #4545 #1131 #4165 #1352
I'm desperately trying to get Electron Builder to not ignore .d.ts files.
Unfortunately, the d.ts extension is hardcoded and it is only possible to un-ignore them by modifying the code (none of the other workarounds work).
I've considered sending a PR to just remove it from the list (which tbh makes sense given that .d.ts.map is not ignored, for example) 鈥斅燽ut I think the approach itself is flawed, because these were supposed to be the "safe defaults" and it should always be possible to override the defaults.
It would be interesting to hear what the official maintainers think.
@develar - We have a similar issue, where one of our dependencies (in node_modules) has the travis and circleci yml files which we need. Electron Builder is forcefully ignoring these files and we haven't been able to override the default exclusions to include these files in the build. Getting those files as extraResources is not an option as those files should be present in app.asar itself.
Please suggest if it is possible at all to override the default exclusions? And if yes, how do we do that?
Thanks much!
@develar this looks like a niche but repeatedly occurring issue (referring to #1352). I have npm library that has examples I need to use in my electron code. It happens to be kept in /examples folder, which is excluded by default too, and it looks like I am left with no option than to modify the electron-builder source to include all possible example folders inside node_modules libraries.
Hard coding defaults seem like an unnecessary work for electron-builder when the documentation could easily mention the list of default for people to use in their package.json or config.yaml.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Most helpful comment
@develar - We have a similar issue, where one of our dependencies (in node_modules) has the travis and circleci yml files which we need. Electron Builder is forcefully ignoring these files and we haven't been able to override the default exclusions to include these files in the build. Getting those files as extraResources is not an option as those files should be present in app.asar itself.
Please suggest if it is possible at all to override the default exclusions? And if yes, how do we do that?
Thanks much!