这是indexloc提供的服务,不要输入任何密码
Skip to content

--scope adds unwanted packages #978

@MrSquaare

Description

@MrSquaare

What version of Turborepo are you using?

1.1.10

What package manager are you using / does the bug impact?

npm

What operating system are you using?

Linux

Describe the Bug

I have several packages, especially frontend and ui-kit.

frontend has ui-kit dependency in its package.json.

When I run some command that exists in both frontend and ui-kit, both packages are selected, even if I clearly specify --scope=ui-kit.

Example:

turbo run start --scope=ui-kit --dry-run

results in:

Packages in Scope
Name     Path     
frontend frontend 
ui-kit   ui-kit   

...

Also, there is no dependsOn for these rules in the turbo.json

Expected Behavior

Having only the specified package selected

To Reproduce

  1. Having two packages
  • a, with a test script
  • b, depending on a in it's package.json's dependencies, with a test script
  1. Executing turbo run test --scope=a

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