From 30ea7d5ed0e3e24b18f8a309227cf3ef3dd82b9a Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sat, 22 Jul 2017 16:01:13 +0100 Subject: [PATCH] Fix "gulp benchmark" for Windows I'm presuming this task worked fine on Linux, but I use a Windows 10 laptop, and since Windows doesn't open extensionless files to check their shebang, this task failed. Node.js on the other hand ignore's JavaScript files with a shebang, so this simple fix should make it work on all platforms now. --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index fbd5a5c..5d3a4ad 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -71,7 +71,7 @@ gulp.task("test", () => // Run benchmarks. gulp.task("benchmark", () => - spawn("benchmark/run", { stdio: "inherit" }) + spawn("node", ["benchmark/run"], { stdio: "inherit" }) ); // Create the browser build.