From 2ea09ada97c481b6d8a6474224a2c98f0dfcd200 Mon Sep 17 00:00:00 2001 From: Robert Jackson Date: Wed, 16 Oct 2019 10:08:37 -0400 Subject: [PATCH] Use posix paths with patterns passed to globby. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit globby uses the fast-glob package, which states this in its README (RE: patterns): > ⚠️ Always use forward-slashes in glob expressions (patterns and ignore > option). Use backslashes for escaping characters. Previously, we were using `path.join` which will use the OS specific separator and therefore fail to match files when invoked with a directory path directly. --- src/runner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runner.js b/src/runner.js index 207935a9..dfb4f519 100644 --- a/src/runner.js +++ b/src/runner.js @@ -1,7 +1,8 @@ const http = require('http'); const https = require('https'); const { writeFileSync } = require('fs'); -const { resolve, extname, join } = require('path'); +const { join } = require('path').posix; +const { resolve, extname } = require('path'); const colors = require('colors/safe'); const globby = require('globby'); const ora = require('ora');