Skip to content

Commit a1279d3

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 507a350 + 272c682 commit a1279d3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

extensions/gulp/src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ class FolderDetector {
120120
let gulpCommand: string;
121121
let platform = process.platform;
122122
if (platform === 'win32' && await exists(path.join(rootPath!, 'node_modules', '.bin', 'gulp.cmd'))) {
123-
gulpCommand = path.join('.', 'node_modules', '.bin', 'gulp.cmd');
123+
const globalGulp = path.join(process.env.APPDATA ? process.env.APPDATA : '', 'npm', 'gulp.cmd');
124+
if (await exists(globalGulp)) {
125+
gulpCommand = globalGulp;
126+
} else {
127+
gulpCommand = path.join('.', 'node_modules', '.bin', 'gulp.cmd');
128+
}
124129
} else if ((platform === 'linux' || platform === 'darwin') && await exists(path.join(rootPath!, 'node_modules', '.bin', 'gulp'))) {
125130
gulpCommand = path.join('.', 'node_modules', '.bin', 'gulp');
126131
} else {

0 commit comments

Comments
 (0)