From 357ab9856a20c1800e2f74ddc5a254cc3f40a60a Mon Sep 17 00:00:00 2001 From: spalger Date: Thu, 28 Dec 2017 14:03:29 -0700 Subject: [PATCH] [gulp-util/File] use Vinyl directly --- package.json | 3 ++- test/util.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 327269e..d4abc5f 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "lodash": "^4.12.0", "minimatch": "^3.0.3", "rcloader": "^0.2.2", - "through2": "^2.0.0" + "through2": "^2.0.0", + "vinyl": "^2.1.0" }, "peerDependencies": { "jshint": "2.x" diff --git a/test/util.js b/test/util.js index 71353ef..ec3a346 100644 --- a/test/util.js +++ b/test/util.js @@ -1,6 +1,6 @@ var isString = require('lodash/isString'); var jshint = require('../'); -var gutil = require('gulp-util'); +var Vinyl = require('vinyl'); var join = require('path').join; var extname = require('path').extname; var fs = require('fs'); @@ -22,7 +22,7 @@ function File(opts) { ? new Buffer(opts.contents, 'utf8') : fs.readFileSync(path); - return new gutil.File({ + return new Vinyl({ cwd: opts.cwd || ROOT, base: opts.base || ROOT, path: path,