aboutsummaryrefslogtreecommitdiff
path: root/node_modules/ava/lib/babel-config.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-08-14 05:01:11 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-08-14 05:02:09 +0200
commit363723fc84f7b8477592e0105aeb331ec9a017af (patch)
tree29f92724f34131bac64d6a318dd7e30612e631c7 /node_modules/ava/lib/babel-config.js
parent5634e77ad96bfe1818f6b6ee70b7379652e5487f (diff)
node_modules
Diffstat (limited to 'node_modules/ava/lib/babel-config.js')
-rw-r--r--node_modules/ava/lib/babel-config.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/ava/lib/babel-config.js b/node_modules/ava/lib/babel-config.js
index c3be0dcfb..62e841f05 100644
--- a/node_modules/ava/lib/babel-config.js
+++ b/node_modules/ava/lib/babel-config.js
@@ -5,7 +5,7 @@ const chalk = require('chalk');
const figures = require('figures');
const configManager = require('hullabaloo-config-manager');
const md5Hex = require('md5-hex');
-const mkdirp = require('mkdirp');
+const makeDir = require('make-dir');
const colors = require('./colors');
function validate(conf) {
@@ -19,7 +19,7 @@ function validate(conf) {
if (!conf || (typeof conf === 'string' && !isValidShortcut)) {
let message = colors.error(figures.cross);
message += ' Unexpected Babel configuration for AVA. ';
- message += 'See ' + chalk.underline('https://github.com/avajs/ava#es2015-support') + ' for allowed values.';
+ message += 'See ' + chalk.underline('https://github.com/avajs/ava#es2017-support') + ' for allowed values.';
throw new Error(message);
}
@@ -90,7 +90,7 @@ function build(projectDir, cacheDir, userOptions, powerAssert) {
const seed = md5Hex([process.versions.node, projectDir]);
// Ensure cacheDir exists
- mkdirp.sync(cacheDir);
+ makeDir.sync(cacheDir);
// The file names predict where valid options may be cached, and thus should
// include the seed.
@@ -136,7 +136,7 @@ function build(projectDir, cacheDir, userOptions, powerAssert) {
return resolveOptions(baseConfig, cache, optionsFile, verifierFile);
})
.then(cacheKeys => ({
- getOptions: require(optionsFile).getOptions, // eslint-disable-line import/no-dynamic-require
+ getOptions: require(optionsFile).getOptions,
// Include the seed in the cache keys used to store compilation results.
cacheKeys: Object.assign({seed}, cacheKeys)
}));