We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
req-cwd
1 parent 225d355 commit bffdb4cCopy full SHA for bffdb4c
2 files changed
index.js
@@ -4,7 +4,7 @@ var gutil = require('gulp-util');
4
var through = require('through');
5
var Mocha = require('mocha');
6
var plur = require('plur');
7
-var resolveFrom = require('resolve-from');
+var reqCwd = require('req-cwd');
8
9
module.exports = function (opts) {
10
opts = opts || {};
@@ -26,7 +26,7 @@ module.exports = function (opts) {
26
27
if (Array.isArray(opts.require) && opts.require.length) {
28
opts.require.forEach(function (x) {
29
- require(resolveFrom(process.cwd(), x));
+ reqCwd(x);
30
});
31
}
32
package.json
@@ -36,7 +36,7 @@
36
"gulp-util": "^3.0.0",
37
"mocha": "^2.0.1",
38
"plur": "^2.1.0",
39
- "resolve-from": "^1.0.0",
+ "req-cwd": "^1.0.1",
40
"temp": "^0.8.3",
41
"through": "^2.3.4"
42
0 commit comments