Skip to content

Node: transitive dependency bin taking priority over direct dependency #221

@tinybeachthor

Description

@tinybeachthor

Intro

I have a direct binary dev dependency svgo@2 in package.json.
Another direct dependency depends on an earlier version svgo@1.
Dream2Nix resolves the linked binary in $out/node_modules/.bin to the earlier version - the transitive dependency - instead of the direct dependency.

Details

While packaging Castopod with dream2nix:

package.json:

"devDependencies": {
    "svgo": "^2.2.2",
    "cssnano": "^4.1.10"
},

With cssnano -> svgo@1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions