fix: optional arch parameter (#1153)

This commit is contained in:
Norman Breau 2021-01-19 21:33:06 -04:00 committed by GitHub
parent 7428bd3a7f
commit 3081e5e6e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,7 +55,7 @@ const outputFileComparator = compareByAll([
* @param {'debug' | 'release'} buildType * @param {'debug' | 'release'} buildType
* @param {{arch?: string}} options * @param {{arch?: string}} options
*/ */
function findOutputFiles (bundleType, buildType, { arch }) { function findOutputFiles (bundleType, buildType, { arch } = {}) {
let files = glob.sync(`**/*.${bundleType}`, { let files = glob.sync(`**/*.${bundleType}`, {
absolute: true, absolute: true,
cwd: path.resolve(this[`${bundleType}Dir`], buildType) cwd: path.resolve(this[`${bundleType}Dir`], buildType)