Skip to content

Commit

Permalink
[gulp-util/File] use Vinyl directly
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Dec 28, 2017
1 parent 807bead commit 357ab98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions test/util.js
Original file line number Diff line number Diff line change
@@ -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');
Expand All @@ -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,
Expand Down

0 comments on commit 357ab98

Please sign in to comment.