Skip to content

Commit 937d566

Browse files
committed
fix publishing
1 parent f837e93 commit 937d566

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tools/prepublish-to-npm.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,18 @@ var gyp = require('node-pre-gyp');
44

55
rimraf.sync('./build');
66

7-
var versions = ['0.10.0', '0.12.0', '4.0.0', '5.0.0'];
7+
var versions = ['0.10.0', '0.12.0', '4.0.0', '5.0.0', '6.0.0'];
88
var matrix = {
99
x64: ['win32', 'linux', 'darwin'],
10-
ia32: ['win32'],
11-
except: { '4.0.0-win32-ia32': true }
10+
ia32: ['win32']
1211
};
12+
var except = { '4.0.0-win32-ia32': true };
1313

1414
var targets = [];
1515
Object.keys(matrix).forEach(function(arch) {
1616
matrix[arch].forEach(function(platform) {
1717
versions.forEach(function(version) {
18-
var key = version + '-' + platform + '-' + arch;
19-
if (matrix.except[key]) return;
18+
if (except[version + '-' + platform + '-' + arch]) return;
2019

2120
targets.push({
2221
target: version,

tools/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var args = process.argv.slice(2);
2-
var version = args.splice(-1);
2+
var version = args.splice(0, 1);
33

44
var npm = require('./update-npm-version');
55
var changelog = require('./update-changelog');

0 commit comments

Comments
 (0)