Skip to content

Commit bffdb4c

Browse files
committed
switch to req-cwd module
1 parent 225d355 commit bffdb4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var gutil = require('gulp-util');
44
var through = require('through');
55
var Mocha = require('mocha');
66
var plur = require('plur');
7-
var resolveFrom = require('resolve-from');
7+
var reqCwd = require('req-cwd');
88

99
module.exports = function (opts) {
1010
opts = opts || {};
@@ -26,7 +26,7 @@ module.exports = function (opts) {
2626

2727
if (Array.isArray(opts.require) && opts.require.length) {
2828
opts.require.forEach(function (x) {
29-
require(resolveFrom(process.cwd(), x));
29+
reqCwd(x);
3030
});
3131
}
3232

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"gulp-util": "^3.0.0",
3737
"mocha": "^2.0.1",
3838
"plur": "^2.1.0",
39-
"resolve-from": "^1.0.0",
39+
"req-cwd": "^1.0.1",
4040
"temp": "^0.8.3",
4141
"through": "^2.3.4"
4242
}

0 commit comments

Comments
 (0)