Skip to content

Commit

Permalink
Fix glob pattern to enforce forward slashes to prevent Windows issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rasshofer committed May 13, 2022
1 parent 94826d5 commit 7ee823d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.yaml
Expand Up @@ -27,5 +27,7 @@ overrides:
rules:
max-len: 0
no-mixed-operators: 0
prettier/prettier: error
prettier/prettier:
- error
- endOfLine: auto
import/extensions: 0
2 changes: 1 addition & 1 deletion jest.config.js
@@ -1,6 +1,6 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: 'src\\/.+\\.test\\.ts$',
testMatch: ['<rootDir>/src/**/*.test.ts'],
testPathIgnorePatterns: ['.d.ts'],
};
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -54,7 +54,7 @@
"clean": "rimraf 'dist' 'coverage'",
"build": "tsc --build --verbose",
"watch": "tsc --build --verbose --watch",
"lint": "eslint 'src/**/*.{js,ts}'",
"lint": "eslint \"src/**/*.{js,ts}\"",
"pretest": "npm run build",
"test": "jest --coverage"
},
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Expand Up @@ -32,7 +32,7 @@ let files: string[] = [];

(config._ || []).forEach((pattern: string) => {
files = files.concat(
globbySync(resolve(process.cwd(), pattern), {
globbySync(resolve(process.cwd(), pattern).replace(/\\/g, '/'), {
dot: true,
ignore: []
.concat(config.ignore)
Expand Down

0 comments on commit 7ee823d

Please sign in to comment.