дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 19:25:54 +02:00
fix(run): preserve pnpm test selection arguments (#2092)
Цей коміт міститься в:
1 джерело
11911a12c6
коміт
86ed4d6c59
6 files changed
+53
-12
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { commandName } from "./commandName";
|
||||
|
||||
/** pnpm forwards `--` to the script, where it ends the test runner's option parsing. */
|
||||
export function appendScriptArgs(command: string, args: string[], extra: string[]): string[] {
|
||||
const separator = !args.includes("--") && ["npm", "yarn", "bun"].includes(commandName(command)) ? ["--"] : [];
|
||||
return [...args, ...separator, ...extra];
|
||||
}
|
||||
Reference in new issue
Заблокувати користувача