(argv: Array<string>)
| 8 | const wrapCommands = new Set(["index-multi", "packagejson", "packagejson-packages"]) |
| 9 | |
| 10 | export const patchArgvForWrapCommands = (argv: Array<string>): void => { |
| 11 | const subIdx = argv.findIndex((a, i) => i >= 2 && wrapCommands.has(a)) |
| 12 | if (subIdx === -1 || subIdx + 1 >= argv.length) return |
| 13 | |
| 14 | const wrapArgs = argv.splice(subIdx + 1) |
| 15 | argv.push(wrapArgs.join(" ")) |
| 16 | } |
no test coverage detected
searching dependent graphs…