Skip to content

Commit

Permalink
adopt latest types (folding ranges)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed Jul 25, 2018
1 parent 418f7c2 commit a621e44
Show file tree
Hide file tree
Showing 12 changed files with 1,668 additions and 679 deletions.
15 changes: 10 additions & 5 deletions build/post-publish.js
Expand Up @@ -6,6 +6,7 @@
const cp = require('child_process');
const path = require('path');
const fs = require('fs');
const readline = require('readline');
const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';

function updateNextTag() {
Expand All @@ -21,13 +22,17 @@ function updateNextTag() {
opts = {};
opts.stdio = 'inherit';

console.log(name + ": set 'next' tag to latest version");
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });

const result = cp.spawnSync(npm, ['dist-tags', 'add', name + '@' + version, 'next'], opts);
rl.question('Enter OTP token: ', (token) => {
const result = cp.spawnSync(npm, ['--otp', token, 'dist-tags', 'add', name + '@' + version, 'next'], opts);

if (result.error || result.status !== 0) {
process.exit(1);
}
rl.close();

if (result.error || result.status !== 0) {
process.exit(1);
}
});
}

updateNextTag();
Expand Down

0 comments on commit a621e44

Please sign in to comment.