Skip to content

Commit a097c3f

Browse files
Fix for windows (#107)
* fix for windows
1 parent 3a2cd15 commit a097c3f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

analyzer/lib/listOfAnalyser.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ const path = require("path");
44
let requiredModules = [];
55

66
// Match only directories in the current directory
7-
const directories = glob.sync(path.join(__dirname, "/*/")); // Synchronously match directories in the current directory
7+
// Fix Windows backslash issue: glob only recognizes forward slashes as path separators
8+
const directories = glob.sync(path.join(__dirname, "/*/").replace(/\\/g, '/'));
89
directories.forEach((directory) => {
910
// Match all files in each directory
10-
const pathName = path.join(directory, "*.*");
11+
const pathName = path.join(directory, "*.*").replace(/\\/g, '/'); // Fix Windows backslash issue
1112
const files = glob.sync(pathName); // Synchronously match files in the directory
1213
files.forEach((file) => {
1314
const filePath = path.resolve(file);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@auth0/auth0-checkmate",
3-
"version": "1.7.0",
3+
"version": "1.7.1",
44
"description": "A command line tool for checking configuration of your Auth0 tenant",
55
"main": "analyzer/report.js",
66
"scripts": {

0 commit comments

Comments
 (0)