You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
able to run package manager commands/actions on individual project
still able to benefits running tasks with caching from turbo
Non-goals
running non-task at root level
Background
There are many cases you want to run something against a particular project within a monorepo.
For example, run build, run test, or add a dependency.
One way is using package manager filter feature. Using pnpm as an example, it is pnpm --filter <project> ....
The benefit of this approach is you can do pnpm --filter <project> add -D jest.
But the down side is when running pnpm --filter <project> build, turbo is not involved thus the result is not cached.
On the other hand, using turbo --filter <project> ... does not support turbo --filter <project> add -D jest.
To streamline things, I would typically add an alias at the top level, as ... --filter <project> ... is too much typing (e.g. pnpm --filter ./packages/package-a ... or pnpm --filter @repobuddy/biome ...). So I would do:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
turboNon-goals
Background
There are many cases you want to run something against a particular project within a monorepo.
For example, run
build, runtest, or add a dependency.One way is using package manager filter feature. Using
pnpmas an example, it ispnpm --filter <project> ....The benefit of this approach is you can do
pnpm --filter <project> add -D jest.But the down side is when running
pnpm --filter <project> build,turbois not involved thus the result is not cached.On the other hand, using
turbo --filter <project> ...does not supportturbo --filter <project> add -D jest.To streamline things, I would typically add an alias at the top level, as
... --filter <project> ...is too much typing (e.g.pnpm --filter ./packages/package-a ...orpnpm --filter @repobuddy/biome ...). So I would do:so that I can do:
nr tp buildornr tp add -D jestProposal
The
nr tp add -D jestdoesn't work withturbo.That's what I purpose to add.
When the command is not a defined task, pass it through to the package manager.
This can be enable behind a config option.
Beta Was this translation helpful? Give feedback.
All reactions