Skip to content

Commit

Permalink
Bump glob to v10.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jessetan committed Oct 1, 2024
1 parent df0e18a commit 9095192
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@
"@sanity/tsdoc": "1.0.105",
"@sanity/ui": "^2.8.9",
"@sanity/uuid": "^3.0.2",
"@types/glob": "^7.2.0",
"@types/lodash": "^4.17.7",
"@types/node": "^18.19.8",
"@types/react": "^18.3.5",
Expand Down Expand Up @@ -147,7 +146,7 @@
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.2.0",
"execa": "^2.0.0",
"glob": "^7.2.0",
"glob": "^10.4.0",
"globby": "^10.0.0",
"husky": "^9.0.11",
"jest": "^29.7.0",
Expand Down
9 changes: 3 additions & 6 deletions pnpm-lock.yaml

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

4 changes: 2 additions & 2 deletions scripts/normalizeDependencyVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from 'node:fs'
import path from 'node:path'

import chalk from 'chalk'
import glob from 'glob'
import {globSync} from 'glob'
import semver from 'semver'

interface LernaConfig {
Expand Down Expand Up @@ -42,7 +42,7 @@ const sortRanges = (ranges: string[]) =>
const patterns = config.packages.map((pkg) => path.join(pkg, 'package.json'))

const pkgs = patterns
.flatMap((pattern) => glob.sync(pattern))
.flatMap((pattern) => globSync(pattern))
.map((file) => path.join(rootPath, file))
.map((file) => ({contents: fs.readFileSync(file, 'utf8'), file}))
.map(({contents, file}) => ({file, pkg: JSON.parse(contents)}))
Expand Down
4 changes: 2 additions & 2 deletions scripts/utils/getPackagePaths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import fs from 'node:fs'
import path from 'node:path'

import glob from 'glob'
import {globSync} from 'glob'

interface LernaConfig {
packages: string[]
Expand All @@ -22,7 +22,7 @@ const patterns = config.packages.map((pkg) => path.join(pkg, 'package.json'))
* @internal
*/
export function getManifestPaths(): string[] {
return patterns.flatMap((pattern) => glob.sync(pattern))
return patterns.flatMap((pattern) => globSync(pattern))
}

/**
Expand Down

0 comments on commit 9095192

Please sign in to comment.