Skip to content

Commit

Permalink
use path.join for making paths
Browse files Browse the repository at this point in the history
  • Loading branch information
floatdrop committed Nov 15, 2015
1 parent 364c85d commit ef3fbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ require('./lib/babel').avaRequired();
var setImmediate = require('set-immediate-shim');
var hasFlag = require('has-flag');
var chalk = require('chalk');
var join = require('path').join;
var relative = require('path').relative;
var serializeError = require('destroy-circular');
var Runner = require('./lib/runner');
var log = require('./lib/logger');
var runner = new Runner();
var xdgBasedir = require('xdg-basedir');
var cache = require('cacha')(xdgBasedir.cache + '/ava');
var cache = require('cacha')(join(xdgBasedir.cache, 'ava'));
var Configstore = require('configstore');
var config = new Configstore('ava', {
lastCacheClean: Date.now()
Expand Down
3 changes: 2 additions & 1 deletion lib/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ var requireFromString = require('require-from-string');
var hasha = require('hasha');
var hashObj = require('hash-obj');
var xdgBasedir = require('xdg-basedir');
var cache = require('cacha')(xdgBasedir.cache + '/ava');
var path = require('path');
var cache = require('cacha')(path.join(xdgBasedir.cache, 'ava'));

var hasGenerators = parseInt(process.version.slice(1), 10) > 0;
var testPath = process.argv[2];
Expand Down

0 comments on commit ef3fbb1

Please sign in to comment.