Update dependencies

This commit is contained in:
Sindre Sorhus 2018-10-17 14:59:58 +07:00
parent ff1dfdb3f4
commit 32660293c7
3 changed files with 12 additions and 12 deletions

10
cli.js
View File

@ -45,13 +45,13 @@ if (!destPath) {
let infoPlist;
try {
infoPlist = fs.readFileSync(path.join(appPath, 'Contents/Info.plist'), 'utf8');
} catch (err) {
if (err.code === 'ENOENT') {
} catch (error) {
if (error.code === 'ENOENT') {
console.error(`Could not find \`${path.relative(process.cwd(), appPath)}\``);
process.exit(1);
}
throw err;
throw error;
}
const appInfo = plist.parse(infoPlist);
@ -137,8 +137,8 @@ ee.on('finish', async () => {
ora.info(`Code signing identity: ${match[1]}`).start();
ora.succeed('DMG created');
} catch (err) {
ora.fail(`Code signing failed. The DMG is fine, just not code signed.\n${err.stderr.trim()}`);
} catch (error) {
ora.fail(`Code signing failed. The DMG is fine, just not code signed.\n${error.stderr.trim()}`);
process.exit(1);
}
});

View File

@ -37,14 +37,14 @@
],
"dependencies": {
"appdmg": "^0.5.2",
"execa": "^0.10.0",
"execa": "^1.0.0",
"meow": "^5.0.0",
"ora": "^2.0.0",
"ora": "^3.0.0",
"plist": "^3.0.1"
},
"devDependencies": {
"ava": "*",
"ava": "^0.25.0",
"tempy": "^0.2.1",
"xo": "*"
"xo": "^0.23.0"
}
}

View File

@ -9,10 +9,10 @@ test('main', async t => {
try {
await execa(path.join(__dirname, 'cli.js'), [path.join(__dirname, 'fixture.app')], {cwd});
} catch (err) {
} catch (error) {
// Silence code signing failure
if (!/Code signing failed/.test(err.message)) {
throw err;
if (!/Code signing failed/.test(error.message)) {
throw error;
}
}