wallet-core/node_modules/ava/cli.js
2017-08-14 05:02:09 +02:00

21 lines
458 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
const debug = require('debug')('ava');
const importLocal = require('import-local');
// Prefer the local installation of AVA
if (importLocal(__filename)) {
debug('Using local install of AVA');
} else {
if (debug.enabled) {
require('time-require'); // eslint-disable-line import/no-unassigned-import
}
try {
require('./lib/cli').run();
} catch (err) {
console.error(`\n ${err.message}`);
process.exit(1);
}
}