Skip to content

Wrong versions of dependencies copied when building with electron-builder 26.4.0 and 26.6.0 #9545

@appdevopts

Description

@appdevopts

Description:
My project depends on jsdom and markdown-it, both of which have entities as a transitive dependency, but they specify different versions.

jsdom -> parse5 -> entities@^6.0.0
markdown-it -> entities@^4.4.0

When I build this package using an older electron-builder(26.0.12), its directory tree is

node_modules
  |_ entities@6.0.1
  |_ jsdom
  |_ markdown-it
        |_node_modules
             |_ entities@4.5.0
  |_ parse5

But, after I upgrade electron-builder to 26.4.0/26.6.0, its directory tree is

node_modules
  |_ entities@4.5.0
  |_ jsdom
       |_ node_modules
            |_ parse5
  |_ markdown-it
        |_node_modules
             |_ entities@4.5.0
  |_ parse5
        |_node_modules
             |_ entities@6.0.1

I think the second one is wrong, jsdom->parse5 will use the wrong version of entities@4.5.0

I have uploaded a repo to reproduce:
https://github.com/appdevopts/test-electron-builder.git

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions