From 8267e1152efc94d3f2bdbe08080d05e7fde5069e Mon Sep 17 00:00:00 2001 From: jddxf <740531372@qq.com> Date: Thu, 10 Nov 2016 00:51:02 +0800 Subject: [PATCH] #8021 (#8241) Fix gulp tasks: eslint and flow error on Windows --- gulp/tasks/eslint.js | 3 +-- gulp/tasks/flow.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gulp/tasks/eslint.js b/gulp/tasks/eslint.js index 6d87cdfd43..47d8f51fad 100644 --- a/gulp/tasks/eslint.js +++ b/gulp/tasks/eslint.js @@ -19,9 +19,8 @@ module.exports = function(gulp, plugins) { return function(done) { spawn( - process.execPath, + path.join('node_modules', '.bin', 'eslint' + extension), [ - path.join('node_modules', '.bin', 'eslint' + extension), '.', ], { diff --git a/gulp/tasks/flow.js b/gulp/tasks/flow.js index a32d8837b6..f076c79d84 100644 --- a/gulp/tasks/flow.js +++ b/gulp/tasks/flow.js @@ -19,9 +19,8 @@ module.exports = function(gulp, plugins) { return function(done) { spawn( - process.execPath, + path.join('node_modules', '.bin', 'flow' + extension), [ - path.join('node_modules', '.bin', 'flow' + extension), 'check', '.', ],