1
0
Fork 0
mirror of synced 2024-07-01 04:21:06 +12:00

Merge pull request #8114 from rosnerdev/develop

Update exec.js
This commit is contained in:
Michael Drury 2022-10-04 10:45:24 +01:00 committed by GitHub
commit 85371b5cbf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,6 @@ exports.runPkgCommand = async (command, dir = "./") => {
throw new Error("Must have yarn or npm installed to run build.")
}
const npmCmd = command === "install" ? `npm ${command}` : `npm run ${command}`
const cmd = yarn ? `yarn ${command}` : npmCmd
const cmd = yarn ? `yarn ${command} --ignore-engines` : npmCmd
await exports.exec(cmd, dir)
}