Skip to content

Commit

Permalink
Throw an error on attempts to use optional packages with multi-arch
Browse files Browse the repository at this point in the history
  • Loading branch information
kriszyp committed Apr 1, 2022
1 parent 4269a27 commit f9fa455
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ function prebuildify (opts, cb) {
}
var packageData
if (opts.optionalPackages) {
if (opts.arch.indexOf('+') > -1) {
throw new Error('Optional packages do not support multi-arch values')
}
packageData = JSON.parse(fs.readFileSync(path.join(opts.cwd, 'package.json')))
}

Expand Down

0 comments on commit f9fa455

Please sign in to comment.