Skip to content

Does not support nested modules. #4

Closed

Description

@Raynos
var requirePeer = codependency.register(module);
var createRingPopTChannel =
    require('ringpop/lib/tchannel.js').createRingPopTChannel;

I cannot use requirePeer to pull a module inside a package out of it.

I presume all the isInstalled logic needs to be changed to support this use case.

cc @ronkorving

Activity

  1. ronkorving commented on Jan 23, 2015

    @ronkorving
    Collaborator

    You mean you want to require a file that is inside a peer dependency? (in your example require would be requirePeer?)

  2. Raynos commented on Jan 23, 2015

    @Raynos
    ContributorAuthor

    @ronkorving correct. I changed it back to require to get my code working.

    But it should work with requirepeer.

  3. ronkorving commented on Jan 24, 2015

    @ronkorving
    Collaborator

    Thanks for the feedback. That's definitely worth addressing. Think you could PR that yourself? (I'm a bit busy lately, but might have a crack at it later)

  4. ronkorving commented on Aug 16, 2017

    @ronkorving
    Collaborator

    It's been a while, sorry for not responding to this before, but #7 should have fixed this. Closing this issue. Let me know if there are still issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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