(cmd: string)
| 220 | }; |
| 221 | |
| 222 | const appendScripts = (cmd: string) => { |
| 223 | if (scriptPkgs.length === 0) return cmd; |
| 224 | const scriptsStr = scriptPkgs.join(' && '); |
| 225 | return cmd ? `${cmd} && ${scriptsStr}` : scriptsStr; |
| 226 | }; |
| 227 | |
| 228 | if (packageNames.length === 0 && extras.length === 0 && scriptPkgs.length === 0) { |
| 229 | return '# No packages selected'; |