mirror of
https://github.com/wmn1525/grasscutterTools.git
synced 2024-11-22 15:37:59 +00:00
8 lines
278 B
JavaScript
8 lines
278 B
JavaScript
export default function getCommand(packageManager, scriptName) {
|
|
if (scriptName === 'install') {
|
|
return packageManager === 'yarn' ? 'yarn' : `${packageManager} install`
|
|
}
|
|
|
|
return packageManager === 'npm' ? `npm run ${scriptName}` : `${packageManager} ${scriptName}`
|
|
}
|