Skip to content

Commit

Permalink
chore(deps): update dependency glob to ^11.0.0 (#7949)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars authored Dec 6, 2024
1 parent 6eacd33 commit ccee1f4
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"eslint-plugin-unicorn": "^52.0.0",
"eslint-plugin-unused-imports": "^3.2.0",
"execa": "^2.0.0",
"glob": "^7.2.0",
"glob": "^11.0.0",
"globby": "^10.0.0",
"husky": "^9.0.11",
"js-yaml": "^4.1.0",
Expand Down
49 changes: 47 additions & 2 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 ccee1f4

Please sign in to comment.