Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deps): update dependency glob to v10 #491

Merged
merged 3 commits into from
Apr 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/index-node16.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import semver from 'semver';
import semverUtils from 'semver-utils';
import fs, { readFileSync, writeFileSync } from 'fs';
import { resolve } from 'import-meta-resolve';
import glob from 'glob';
import { globSync } from 'glob';

const getKeys = o => Object.keys(o);
const getEntries = o => Object.entries(o);
Expand Down Expand Up @@ -892,7 +892,7 @@ function createCheckPackageWithWorkspaces(createCheckPackageOptions = {}) {
const workspacePackagesPaths = [];
if (pkgWorkspaces) {
pkgWorkspaces.forEach(pattern => {
const match = glob.sync(pattern, {
const match = globSync(pattern, {
cwd: pkgDirname
});
match.forEach(pathMatch => {
Expand Down
2 changes: 1 addition & 1 deletion dist/index-node16.mjs.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
"dependencies": {
"chalk": "^5.2.0",
"glob": "^8.0.0",
"glob": "^10.0.0",
"import-meta-resolve": "^2.1.0",
"semver": "^7.3.8",
"semver-utils": "^1.1.4",
Expand All @@ -101,7 +101,6 @@
"@pob/eslint-config": "50.0.0",
"@pob/eslint-config-typescript": "50.0.0",
"@pob/root": "7.6.0",
"@types/glob": "8.1.0",
"@types/jest": "29.5.1",
"@types/semver": "7.3.13",
"@types/semver-utils": "1.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/check-package-with-workspaces.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable max-lines */
import fs from 'fs';
import path from 'path';
import glob from 'glob';
import { globSync } from 'glob';
import type { Except } from 'type-fest';
import type {
CreateCheckPackageOptions,
Expand Down Expand Up @@ -91,7 +91,7 @@ export function createCheckPackageWithWorkspaces(

if (pkgWorkspaces) {
pkgWorkspaces.forEach((pattern) => {
const match = glob.sync(pattern, { cwd: pkgDirname });
const match = globSync(pattern, { cwd: pkgDirname });
match.forEach((pathMatch) => {
if (!fs.existsSync(path.join(pathMatch, 'package.json'))) {
console.log(
Expand Down
112 changes: 90 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1212,6 +1212,13 @@ __metadata:
languageName: node
linkType: hard

"@pkgjs/parseargs@npm:^0.11.0":
version: 0.11.0
resolution: "@pkgjs/parseargs@npm:0.11.0"
checksum: 6ad6a00fc4f2f2cfc6bff76fb1d88b8ee20bc0601e18ebb01b6d4be583733a860239a521a7fbca73b612e66705078809483549d2b18f370eb346c5155c8e4a0f
languageName: node
linkType: hard

"@pob/commitlint-config@npm:5.1.1":
version: 5.1.1
resolution: "@pob/commitlint-config@npm:5.1.1"
Expand Down Expand Up @@ -1552,16 +1559,6 @@ __metadata:
languageName: node
linkType: hard

"@types/glob@npm:8.1.0":
version: 8.1.0
resolution: "@types/glob@npm:8.1.0"
dependencies:
"@types/minimatch": ^5.1.2
"@types/node": "*"
checksum: 9101f3a9061e40137190f70626aa0e202369b5ec4012c3fabe6f5d229cce04772db9a94fa5a0eb39655e2e4ad105c38afbb4af56a56c0996a8c7d4fc72350e3d
languageName: node
linkType: hard

"@types/graceful-fs@npm:^4.1.3":
version: 4.1.5
resolution: "@types/graceful-fs@npm:4.1.5"
Expand Down Expand Up @@ -1620,13 +1617,6 @@ __metadata:
languageName: node
linkType: hard

"@types/minimatch@npm:^5.1.2":
version: 5.1.2
resolution: "@types/minimatch@npm:5.1.2"
checksum: 0391a282860c7cb6fe262c12b99564732401bdaa5e395bee9ca323c312c1a0f45efbf34dce974682036e857db59a5c9b1da522f3d6055aeead7097264c8705a8
languageName: node
linkType: hard

"@types/minimist@npm:^1.2.0":
version: 1.2.2
resolution: "@types/minimist@npm:1.2.2"
Expand Down Expand Up @@ -2535,13 +2525,12 @@ __metadata:
"@pob/eslint-config": 50.0.0
"@pob/eslint-config-typescript": 50.0.0
"@pob/root": 7.6.0
"@types/glob": 8.1.0
"@types/jest": 29.5.1
"@types/semver": 7.3.13
"@types/semver-utils": 1.1.1
chalk: ^5.2.0
eslint: 8.39.0
glob: ^8.0.0
glob: ^10.0.0
import-meta-resolve: ^2.1.0
jest: 29.5.0
pob-babel: 35.6.2
Expand Down Expand Up @@ -2621,7 +2610,7 @@ __metadata:
languageName: node
linkType: hard

"cliui@npm:^7.0.2":
"cliui@npm:^7.0.2, cliui@npm:^7.0.4":
version: 7.0.4
resolution: "cliui@npm:7.0.4"
dependencies:
Expand Down Expand Up @@ -2825,7 +2814,7 @@ __metadata:
languageName: node
linkType: hard

"cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3":
"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.2, cross-spawn@npm:^7.0.3":
version: 7.0.3
resolution: "cross-spawn@npm:7.0.3"
dependencies:
Expand Down Expand Up @@ -3607,6 +3596,16 @@ __metadata:
languageName: node
linkType: hard

"foreground-child@npm:^3.1.0":
version: 3.1.1
resolution: "foreground-child@npm:3.1.1"
dependencies:
cross-spawn: ^7.0.0
signal-exit: ^4.0.1
checksum: 139d270bc82dc9e6f8bc045fe2aae4001dc2472157044fdfad376d0a3457f77857fa883c1c8b21b491c6caade9a926a4bed3d3d2e8d3c9202b151a4cbbd0bcd5
languageName: node
linkType: hard

"fs-extra@npm:^11.0.0":
version: 11.1.0
resolution: "fs-extra@npm:11.1.0"
Expand Down Expand Up @@ -3784,6 +3783,22 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^10.0.0":
version: 10.2.1
resolution: "glob@npm:10.2.1"
dependencies:
foreground-child: ^3.1.0
fs.realpath: ^1.0.0
jackspeak: ^2.0.3
minimatch: ^9.0.0
minipass: ^5.0.0
path-scurry: ^1.7.0
bin:
glob: dist/cjs/src/bin.js
checksum: 760a624138e7bbc49179859ba314a8547b114de2324cf571d43dc4ce3379be297034099b36857f966ec5445b30cbd558d0be90c9992ef186671aca53b1bde7a0
languageName: node
linkType: hard

"glob@npm:^7.1.3, glob@npm:^7.1.4":
version: 7.2.0
resolution: "glob@npm:7.2.0"
Expand All @@ -3798,7 +3813,7 @@ __metadata:
languageName: node
linkType: hard

"glob@npm:^8.0.0, glob@npm:^8.0.1":
"glob@npm:^8.0.1":
version: 8.0.3
resolution: "glob@npm:8.0.3"
dependencies:
Expand Down Expand Up @@ -4407,6 +4422,19 @@ __metadata:
languageName: node
linkType: hard

"jackspeak@npm:^2.0.3":
version: 2.0.3
resolution: "jackspeak@npm:2.0.3"
dependencies:
"@pkgjs/parseargs": ^0.11.0
cliui: ^7.0.4
dependenciesMeta:
"@pkgjs/parseargs":
optional: true
checksum: f58c7e1a0a57d04c4280057d32edef00da4e1f1f1798b8fbe7eb8fd2c0f885449d8165dd495c9883742ab0f43347fb64fe692f4845d6d3daf0c352aefcdeea42
languageName: node
linkType: hard

"jest-changed-files@npm:^29.5.0":
version: 29.5.0
resolution: "jest-changed-files@npm:29.5.0"
Expand Down Expand Up @@ -5208,6 +5236,13 @@ __metadata:
languageName: node
linkType: hard

"lru-cache@npm:^9.0.0":
version: 9.1.0
resolution: "lru-cache@npm:9.1.0"
checksum: 97b46faa2e8195b75b1c48a5515f8e458b8f6a0d0933c0484a4e45b6aa67406dcc5f6c8774fef206fd918dce6a4b4a6f627541fbdf74f8e6b3c71f688f43041e
languageName: node
linkType: hard

"lunr@npm:^2.3.9":
version: 2.3.9
resolution: "lunr@npm:2.3.9"
Expand Down Expand Up @@ -5378,6 +5413,15 @@ __metadata:
languageName: node
linkType: hard

"minimatch@npm:^9.0.0":
version: 9.0.0
resolution: "minimatch@npm:9.0.0"
dependencies:
brace-expansion: ^2.0.1
checksum: 7bd57899edd1d1b0560f50b5b2d1ea4ad2a366c5a2c8e0a943372cf2f200b64c256bae45a87a80915adbce27fa36526264296ace0da57b600481fe5ea3e372e5
languageName: node
linkType: hard

"minimist-options@npm:4.1.0":
version: 4.1.0
resolution: "minimist-options@npm:4.1.0"
Expand Down Expand Up @@ -5456,6 +5500,13 @@ __metadata:
languageName: node
linkType: hard

"minipass@npm:^5.0.0":
version: 5.0.0
resolution: "minipass@npm:5.0.0"
checksum: 425dab288738853fded43da3314a0b5c035844d6f3097a8e3b5b29b328da8f3c1af6fc70618b32c29ff906284cf6406b6841376f21caaadd0793c1d5a6a620ea
languageName: node
linkType: hard

"minizlib@npm:^2.1.1, minizlib@npm:^2.1.2":
version: 2.1.2
resolution: "minizlib@npm:2.1.2"
Expand Down Expand Up @@ -5838,6 +5889,16 @@ __metadata:
languageName: node
linkType: hard

"path-scurry@npm:^1.7.0":
version: 1.7.0
resolution: "path-scurry@npm:1.7.0"
dependencies:
lru-cache: ^9.0.0
minipass: ^5.0.0
checksum: 4e86df0fa6848cef1ba672d4a332b8dbd0297c42d5123bcc419d714c34b25ee6775b0d2e66dd5e698a38e9bcd808f8fc47333e3a3357307cada98e16bfae8b98
languageName: node
linkType: hard

"path-type@npm:^4.0.0":
version: 4.0.0
resolution: "path-type@npm:4.0.0"
Expand Down Expand Up @@ -6381,6 +6442,13 @@ __metadata:
languageName: node
linkType: hard

"signal-exit@npm:^4.0.1":
version: 4.0.1
resolution: "signal-exit@npm:4.0.1"
checksum: 832043367dca23e61ab6033e8b41c595fc805119bfe4fee63dea201cdc809a8b086bc54597bbbc1b2cde1a63c7dd554d1295ed2cca92db598233834a0b59b281
languageName: node
linkType: hard

"sisteransi@npm:^1.0.5":
version: 1.0.5
resolution: "sisteransi@npm:1.0.5"
Expand Down