Skip to content

Commit 08b62ce

Browse files
refactor: stop using deprecated patterns option (#423)
1 parent 0cd8dd7 commit 08b62ce

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/options/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ async function resolveWorkspace(
9191
} = workspace
9292
if (packages === 'auto') {
9393
packages = (
94-
await glob({
95-
patterns: '**/package.json',
94+
await glob('**/package.json', {
9695
ignore: exclude,
9796
cwd: rootCwd,
9897
expandDirectories: false,
@@ -102,8 +101,7 @@ async function resolveWorkspace(
102101
.map((file) => slash(path.resolve(rootCwd, file, '..')))
103102
} else {
104103
packages = (
105-
await glob({
106-
patterns: packages,
104+
await glob(packages, {
107105
ignore: exclude,
108106
cwd: rootCwd,
109107
onlyDirectories: true,

0 commit comments

Comments
 (0)