cli.js 268 B

123456789101112
  1. #!/usr/bin/env node
  2. 'use strict';
  3. const debug = require('debug')('ava');
  4. const importLocal = require('import-local');
  5. // Prefer the local installation of AVA
  6. if (importLocal(__filename)) {
  7. debug('Using local install of AVA');
  8. } else {
  9. require('./lib/cli').run();
  10. }