Skip to content

Commit f9fa455

Browse files
committed
Throw an error on attempts to use optional packages with multi-arch
1 parent 4269a27 commit f9fa455

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ function prebuildify (opts, cb) {
6464
}
6565
var packageData
6666
if (opts.optionalPackages) {
67+
if (opts.arch.indexOf('+') > -1) {
68+
throw new Error('Optional packages do not support multi-arch values')
69+
}
6770
packageData = JSON.parse(fs.readFileSync(path.join(opts.cwd, 'package.json')))
6871
}
6972

0 commit comments

Comments
 (0)