mirror of
https://github.com/pnpm/action-setup.git
synced 2025-03-31 05:00:11 +08:00
fix: run-install array output
This commit is contained in:
parent
7df928f347
commit
8e68382d3a
@ -25,9 +25,7 @@ export function parseRunInstall(name: string): RunInstall[] {
|
||||
|
||||
validateRunInstallInput(input)
|
||||
|
||||
if (Array.isArray(input)) return input
|
||||
|
||||
return input;
|
||||
return Array.isArray(input) ? input : [input]
|
||||
}
|
||||
|
||||
function validateRunInstallInput(input: any) {
|
||||
@ -38,7 +36,6 @@ function validateRunInstallInput(input: any) {
|
||||
} else {
|
||||
validateRunInstallEntry(input)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function validateRunInstallEntry(input: any) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user