mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-26 13:19:42 +00:00
fix bad src of files in hygiene
This commit is contained in:
@@ -12,6 +12,7 @@ const gulptslint = require('gulp-tslint');
|
||||
const gulpeslint = require('gulp-eslint');
|
||||
const tsfmt = require('typescript-formatter');
|
||||
const tslint = require('tslint');
|
||||
const vfs = require('vinyl-fs');
|
||||
|
||||
/**
|
||||
* Hygiene works by creating cascading subsets of all our files and
|
||||
@@ -235,7 +236,7 @@ const hygiene = exports.hygiene = (some, options) => {
|
||||
this.emit('data', file);
|
||||
});
|
||||
|
||||
const result = gulp.src(some || all, { base: '.' })
|
||||
const result = vfs.src(some || all, { base: '.', follow: true })
|
||||
.pipe(filter(f => !f.stat.isDirectory()))
|
||||
.pipe(filter(eolFilter))
|
||||
.pipe(options.skipEOL ? es.through() : eol)
|
||||
@@ -265,7 +266,7 @@ const hygiene = exports.hygiene = (some, options) => {
|
||||
}));
|
||||
};
|
||||
|
||||
gulp.task('hygiene', () => hygiene());
|
||||
gulp.task('hygiene', () => hygiene(''));
|
||||
|
||||
// this allows us to run hygiene as a git pre-commit hook
|
||||
if (require.main === module) {
|
||||
|
||||
Reference in New Issue
Block a user