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

Can't pass arguments to the underlying command when using --filter #1355

@ivolimasilva

Description

@ivolimasilva

What version of Turborepo are you using?

1.2.16

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

npm

What operating system are you using?

Mac

Describe the Bug

Can't pass arguments (that start with - or --) to the underlying command that turbo will run, when using --filter.

Expected Behavior

Running:

npm run test -- --filter=ui -- --passWithNoTests

Expected turbo to run:

npm run test -- --passWithNoTests

Only for ui package.

In reality, turbo runs:

npm run test

Only for ui package.

👉 Created a repo to reproduce.

To Reproduce

Run a command with --filter and pass more options. Check Expected behavior and the repo I've created to easily reproduce the issue.

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