Skip to content

[Rush] detect the package root traversing bottom-to-root, not root-to-bottom #1671

Open
@Jabher

Description

@Jabher

Please prefix the issue title with the project name i.e. [rush], [api-extractor] etc.

Is this a feature or a bug?

  • Feature
  • Bug

Please describe the actual behavior.
Assuming I have a rush project with 2 packages, 1 in . (as long as I'm trying to resolve some pnpm&eslint issues by manual root creation of node_modules), second in ./packages/whatever,

when i type rush add -p %package_name% in ./packages/whatever directory,
dependency is added to package at ..

What is the expected behavior?
I expect rush to detect the package as close as possible and add dependency there, not to the topmost one.

If this is a bug, please provide the tool version, Node.js version, and OS.

  • Tool: Rush
  • Tool Version: 5.17.2
  • Node Version: 12.14.0
    • Is this a LTS version? yes
    • Have you tested on a LTS version? yes
  • OS: Mac OS X

also, PNPM 4.6.0 is used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoWe can't proceed because we need a better repro or an answer to a question

    Type

    No type

    Projects

    Status

    Needs Investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions