fix cyclic dependency issue

v1.18.x
barisusakli 8 years ago
parent e63559b6fd
commit 36df4cdf97

@ -4,10 +4,11 @@
if (typeof module === 'object' && module.exports) {
var winston = require('winston');
var file = require('../../src/file');
module.exports = factory(require('xregexp'));
module.exports.walk = function (dir, done) {
// DEPRECATED
var file = require('../../src/file');
winston.warn('[deprecated] `utils.walk` is deprecated. Use `file.walk` instead.');
file.walk(dir, done);
};

Loading…
Cancel
Save