Skip to content

Commit 7a6b3c1

Browse files
committed
Update dependencies and some other minor tweaks
1 parent 0464b14 commit 7a6b3c1

File tree

4 files changed

+21
-32
lines changed

4 files changed

+21
-32
lines changed

.iron-node.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ module.exports = {
33
openDevToolsDetached: true,
44
hideMainWindow: true
55
},
6-
workSpaceDirectory: function () {
7-
return __dirname;
8-
}
6+
workSpaceDirectory: () => __dirname
97
};

lib/babel-config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ function resolveOptions(baseConfig, cache, optionsFile, verifierFile) {
8484
function build(projectDir, cacheDir, userOptions, powerAssert) {
8585
// Compute a seed based on the Node.js version and the project directory.
8686
// Dependency hashes may vary based on the Node.js version, e.g. with the
87-
// @ava/stage-4 Babel preset. Sources and dependencies paths are absolute in
87+
// @ava/stage-4 Babel preset. Sources and dependencies paths are absolute in
8888
// the generated module and verifier state. Those paths wouldn't necessarily
8989
// be valid if the project directory changes.
9090
const seed = md5Hex([process.versions.node, projectDir]);

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"clean-yaml-object": "^0.1.0",
107107
"cli-cursor": "^2.1.0",
108108
"cli-spinners": "^1.0.0",
109-
"cli-truncate": "^0.2.0",
109+
"cli-truncate": "^1.0.0",
110110
"co-with-promise": "^4.6.0",
111111
"code-excerpt": "^2.1.0",
112112
"common-path-prefix": "^1.0.0",
@@ -162,23 +162,22 @@
162162
"strip-bom-buf": "^1.0.0",
163163
"time-require": "^0.1.2",
164164
"unique-temp-dir": "^1.0.0",
165-
"update-notifier": "^1.0.0"
165+
"update-notifier": "^2.1.0"
166166
},
167167
"devDependencies": {
168168
"babel-preset-react": "^6.5.0",
169169
"cli-table2": "^0.2.0",
170170
"coveralls": "^2.11.4",
171171
"delay": "^1.3.0",
172172
"execa": "^0.6.0",
173-
"flow-bin": "^0.38.0",
173+
"flow-bin": "^0.40.0",
174174
"get-stream": "^3.0.0",
175175
"git-branch": "^0.3.0",
176176
"has-ansi": "^2.0.0",
177-
"inquirer": "^2.0.0",
177+
"inquirer": "^3.0.5",
178178
"is-array-sorted": "^1.0.0",
179179
"lolex": "^1.4.0",
180180
"nyc": "^10.0.0",
181-
"pify": "^2.3.0",
182181
"proxyquire": "^1.7.4",
183182
"rimraf": "^2.5.0",
184183
"signal-exit": "^3.0.0",

test/visual/run-visual-tests.js

+15-23
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ const path = require('path');
44
const childProcess = require('child_process');
55
const chalk = require('chalk');
66
const arrify = require('arrify');
7-
const Promise = require('bluebird');
8-
const pify = require('pify');
9-
const inquirer = pify(require('inquirer'));
7+
const inquirer = require('inquirer');
108

119
const cwd = path.resolve(__dirname, '../../');
1210

@@ -26,28 +24,22 @@ function exec(args) {
2624
}
2725

2826
function run(name, args, message, question) {
29-
return new Promise((resolve, reject) => {
30-
console.log(chalk.cyan(`**BEGIN ${name}**`));
31-
exec(args);
32-
console.log(chalk.cyan(`**END ${name}**\n`));
33-
console.log(arrify(message).join('\n') + '\n');
27+
console.log(chalk.cyan(`**BEGIN ${name}**`));
28+
exec(args);
29+
console.log(chalk.cyan(`**END ${name}**\n`));
30+
console.log(arrify(message).join('\n') + '\n');
3431

35-
inquirer.prompt(
36-
[{
37-
type: 'confirm',
38-
name: 'confirmed',
39-
message: question || 'Does it appear correctly',
40-
default: false
41-
}],
42-
data => {
43-
if (!data.confirmed) {
44-
reject(new Error(arrify(args).join(' ') + ' failed'));
45-
}
46-
47-
resolve();
32+
return inquirer.prompt([{
33+
type: 'confirm',
34+
name: 'confirmed',
35+
message: question || 'Does it appear correctly',
36+
default: false
37+
}])
38+
.then(data => {
39+
if (!data.confirmed) {
40+
throw new Error(arrify(args).join(' ') + ' failed');
4841
}
49-
);
50-
});
42+
});
5143
}
5244

5345
// Thunked version of run for promise handlers

0 commit comments

Comments
 (0)