(
url: string,
isCommentWithDev: boolean,
selectedPackageManager: ("npm" | "yarn" | "pnpm" | "bun")[],
)
| 1 | import { installCommands } from "@pkg-pr-new/utils"; |
| 2 | |
| 3 | function generateShellCommand( |
| 4 | url: string, |
| 5 | isCommentWithDev: boolean, |
| 6 | selectedPackageManager: ("npm" | "yarn" | "pnpm" | "bun")[], |
| 7 | ) { |
| 8 | return selectedPackageManager |
| 9 | .map( |
| 10 | (pm) => |
| 11 | `\`\`\`sh\n${installCommands[pm]} ${url + (isCommentWithDev ? " -D" : "")}\n\`\`\``, |
| 12 | ) |
| 13 | .join("\n"); |
| 14 | } |
| 15 | |
| 16 | export const createDefaultTemplate = ( |
| 17 | dependencies: Record<string, string>, |
no outgoing calls
no test coverage detected