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

turbo doesn't respect excludes in pnpm-workspace.yaml #998

@MBelniak

Description

@MBelniak

What version of Turborepo are you using?

1.2.0-canary.5

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

pnpm

What operating system are you using?

Linux

Describe the Bug

When having an exclude pattern in pnpm-workspace.yaml (e.g. !packages/**/ignored-package), PNPM correctly ignores matched packages when installing dependencies, but turbo still tries to run tasks there.

Expected Behavior

turbo correctly ignores packages matched by ignore pattern in pnpm workspace.

To Reproduce

npx create-turbo@latest
cd my-turborepo
mkdir packages/ignored
echo "  - '"'!'"packages/ignored'" >> pnpm-workspace.yaml
echo '{"name": "ignored", "scripts": {"build": "echo '"'Hello From ignored'"'"}}' >> packages/ignored/package.json
pnpm turbo run build

ignored package will be in scope and 'Hello From ignored' will be displayed from ignored:build task.

Metadata

Metadata

Assignees

Labels

area: ergonomicsIssues and features impacting the developer experience of using turbo

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions