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

Input of **/*.js does not match *.js files in root directory of package. #1250

@sppatel

Description

@sppatel

What version of Turborepo are you using?

1.2.9

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

Yarn v1

What operating system are you using?

Mac

Describe the Bug

Consider a package with the following structure.

./foo.js
./somedir/foo.js

An input for a task with **/*.js should match on both files.

However it only matches on ./somedir/foo.js`

Expected Behavior

**/*.js should be matching on files in the root of the package. The workaround is having to add both **/*.js and *.js which is not ideal.

To Reproduce

Create a task with the following input.

"inputs": [
        "**/*.js",
      ],

Modify a js file in a nested directory - the finger print will change.

Modify a js file in the root of the package - the finger print will not change.

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