Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

Allow multiple versions of tchannel to be require()d. #259

@lxe

Description

@lxe

Tchannel should't make any assumption about the module tree in which it is in. Let's assume we have the following node_modules tree:

$ npm ls tchannel
[email protected] /Users/aleksey/devel/top-level-project
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]

Both dep1 and dep2 have tchannel as dependency matching all minor version up to 4:

"dependencies": {
  "tchannel": "^3.5.0"
}

Running npm install on this tree will (rightfully) mark both 3.5.0 and 3.6.0 versions as valid and matching their respective semver ranges.

I think it's a very bad practice for a module to expect a shape of the project's entire modules tree in which it is.

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