As per title, I don't see why a build is successful if some dependencies are missing. Opt-in or forced but with a config flag to "ignoreMissingDependency": ["x"] would be nice
My temporary (yet untested) workaround:
// Treat certain warnings as a fatal error
const FATAL_WARNINGS = [LogMessageByKey.PKG_NOT_ON_DISK, LogMessageByKey.PKG_NOT_FOUND];
// Otherwise we just burn time running the tests for no reason.
const prevTransform = log.messageTransformer;
log.messageTransformer = (message, level) => {
if (level === "warn" && FATAL_WARNINGS.some((w) => message.startsWith(w))) {
throw new Error(`electron-builder: ${message}`);
}
return prevTransform?.(message, level) ?? message;
};
As per title, I don't see why a build is successful if some dependencies are missing. Opt-in or forced but with a config flag to
"ignoreMissingDependency": ["x"]would be niceMy temporary (yet untested) workaround: