дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-08 19:02:17 +02:00
8 рядки
389 B
TypeScript
8 рядки
389 B
TypeScript
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];
|
|
}
|