oven-sh / bun

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

Turborepo --filter argument conflict #11122

Open szmarci opened 1 month ago

szmarci commented 1 month ago

What version of Bun is running?

1.1.8+89d25807f

What platform is your computer?

Microsoft Windows NT 10.0.22621.0 x64

What steps can reproduce the bug?

I have a monorepo that utilizes turborepo for caching. I run this command with pnpm: turbo build --filter=./apps/* --filter=./packages/* --no-daemon.

What is the expected behavior?

I try to run it with bun: bun run --bun turbo build --filter=./apps/* --filter=./forms/* --no-daemon

--filter here is turborepo's argument, but bun has it as well, so I guess it hijacked.

What do you see instead?

The error: bun: no matches found: --filter=./apps/*

Additional information

Is it possible to call it so that the arguments --filter=./apps/* --filter=./forms/* --no-daemon are supplied to the turbo build command?

Jarred-Sumner commented 1 month ago

The conflict is not on our end, as we do not read arguments for bun run after the first non-positional argument

szmarci commented 1 month ago

@Jarred-Sumner but running bun run build works for this build script turbo build --no-color, it only dies with the --filter argument. Sure it is a turbo bug?