oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.56k stars 2.72k forks source link

Run different scripts from different workspaces in monorepo in parallel #10308

Open Arctomachine opened 5 months ago

Arctomachine commented 5 months ago

What is the problem this feature would solve?

Enhancement to parallel script (--filter) feature from 1.1.4 release If packages/package1 requires to run script dev, but packages/package2 requires script local, then it should be possible to run them in parallel too.

What is the feature you are proposing to solve the problem?

bun --filter 'packages/package1' dev --filter 'packages/package2' local or something similar

What alternatives have you considered?

Turborepo, concurrently

zhy0216 commented 5 months ago

it is probably better to use a flag to control if this is parallel or not. we can have a situation which package1 command1 requires package2 command2. the flag also benefits sometimes we want different packages run same script parallel, for example doing tsc.