Skip to content

Commit

Permalink
chore(eslint-plugin-next): upgrade glob dependency (#60732)
Browse files Browse the repository at this point in the history
- Closes #60651 

Closes NEXT-2118
  • Loading branch information
styfle authored Jan 16, 2024
1 parent 8627e7c commit 6a3608f
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 22 deletions.
3 changes: 1 addition & 2 deletions packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
"dist"
],
"dependencies": {
"glob": "7.1.7"
"glob": "10.3.10"
},
"devDependencies": {
"@types/glob": "7.1.1",
"eslint": "7.24.0"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin-next/src/utils/get-root-dirs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as glob from 'glob'
import { globSync } from 'glob'
import type { Rule } from 'eslint'

/**
Expand All @@ -7,7 +7,7 @@ import type { Rule } from 'eslint'
const processRootDir = (rootDir: string): string[] => {
// Ensures we only match folders.
if (!rootDir.endsWith('/')) rootDir += '/'
return glob.sync(rootDir)
return globSync(rootDir)
}

/**
Expand Down
124 changes: 106 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6a3608f

Please sign in to comment.