Skip to content

Commit 02bf398

Browse files
JounQinescapedcat
authored andcommitted
chore: bump glob and related usage (conventional-changelog#3928)
1 parent 42d90f2 commit 02bf398

File tree

13 files changed

+181
-70
lines changed

13 files changed

+181
-70
lines changed

@commitlint/config-lerna-scopes/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {createRequire} from 'module';
22
import Path from 'path';
33

4-
import glob from 'glob';
4+
import {globSync} from 'glob';
55
import importFrom from 'import-from';
66
import semver from 'semver';
77

@@ -27,7 +27,7 @@ function getPackages(context) {
2727

2828
const wsGlobs = workspaces.flatMap((ws) => {
2929
const path = Path.posix.join(ws, 'package.json');
30-
return glob.sync(path, {cwd, ignore: ['**/node_modules/**']});
30+
return globSync(path, {cwd, ignore: ['**/node_modules/**']});
3131
});
3232

3333
return wsGlobs.map((pJson) => require(Path.join(cwd, pJson)));

@commitlint/config-lerna-scopes/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
},
4242
"dependencies": {
4343
"@lerna/project": "^6.0.0",
44-
"glob": "^8.0.3",
45-
"import-from": "4.0.0",
46-
"semver": "7.6.0"
44+
"glob": "^10.3.10",
45+
"import-from": "^4.0.0",
46+
"semver": "^7.6.0"
4747
},
4848
"devDependencies": {
4949
"@commitlint/test": "^18.0.0",

@commitlint/config-patternplate/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
},
3333
"dependencies": {
3434
"@commitlint/config-angular": "^18.6.1",
35-
"glob": "^8.0.3",
35+
"glob": "^10.3.10",
3636
"lodash.merge": "^4.6.2"
3737
},
3838
"devDependencies": {

@commitlint/ensure/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@types/lodash.snakecase": "^4.1.8",
4343
"@types/lodash.startcase": "^4.4.8",
4444
"@types/lodash.upperfirst": "^4.3.8",
45-
"glob": "^8.0.3"
45+
"glob": "^10.3.10"
4646
},
4747
"dependencies": {
4848
"@commitlint/types": "^18.6.1",

@commitlint/ensure/src/index.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {test, expect} from 'vitest';
22
import path from 'path';
33
import {fileURLToPath} from 'url';
44

5-
import glob from 'glob';
5+
import {globSync} from 'glob';
66
import camelCase from 'lodash.camelcase';
77

88
import * as ensure from './index.js';
@@ -25,7 +25,7 @@ test('rules export functions', () => {
2525
});
2626

2727
function _glob(pattern: string): string[] {
28-
const files = glob.sync(pattern, {
28+
const files = globSync(pattern, {
2929
ignore: ['**/index.ts', '**/*.test.ts'],
3030
cwd: __dirname,
3131
});

@commitlint/is-ignored/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
3939
"@commitlint/parse": "^18.6.1",
4040
"@commitlint/test": "^18.0.0",
4141
"@commitlint/utils": "^18.6.1",
42-
"@types/semver": "7.5.7"
42+
"@types/semver": "^7.5.7"
4343
},
4444
"dependencies": {
4545
"@commitlint/types": "^18.6.1",
46-
"semver": "7.6.0"
46+
"semver": "^7.6.0"
4747
},
4848
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
4949
}

@commitlint/load/fixtures/recursive-parser-preset-conventional-atom/first-extended/second-extended/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "@second-extend/recursive-parser-preset-conventional-atom",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"conventional-changelog-atom": "2.0.3"
5+
"conventional-changelog-atom": "^2.0.3"
66
}
77
}

@commitlint/rules/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
"@commitlint/parse": "^18.6.1",
4040
"@commitlint/test": "^18.0.0",
4141
"@commitlint/utils": "^18.6.1",
42-
"conventional-changelog-angular": "7.0.0",
43-
"glob": "^8.0.3"
42+
"conventional-changelog-angular": "^7.0.0",
43+
"glob": "^10.3.10"
4444
},
4545
"dependencies": {
4646
"@commitlint/ensure": "^18.6.1",

@commitlint/rules/src/index.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import fs from 'fs';
33
import path from 'path';
44
import {fileURLToPath} from 'url';
55

6-
import glob from 'glob';
6+
import {globSync} from 'glob';
77

88
import rules from './index.js';
99

@@ -34,7 +34,7 @@ test('all rules are present in documentation', () => {
3434
});
3535

3636
function _glob(pattern: string) {
37-
const files = glob.sync(pattern, {
37+
const files = globSync(pattern, {
3838
ignore: ['**/index.ts', '**/*.test.ts'],
3939
cwd: __dirname,
4040
});

@packages/test-environment/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"dependencies": {
3232
"@types/tmp": "^0.2.5",
3333
"jest-environment-node": "^29.6.2",
34-
"tmp": "0.2.1"
34+
"tmp": "^0.2.1"
3535
},
3636
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"
3737
}

@packages/test/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
"execa": "^8.0.1",
3838
"fs-extra": "^11.0.0",
3939
"pkg-dir": "^8.0.0",
40-
"resolve-pkg": "2.0.0",
41-
"tmp": "0.2.1"
40+
"resolve-pkg": "^2.0.0",
41+
"tmp": "^0.2.1"
4242
},
4343
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"
4444
}

@packages/utils/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
},
4646
"dependencies": {
4747
"execa": "^8.0.1",
48-
"read-pkg": "9.0.1",
49-
"require-from-string": "2.0.2",
50-
"tar-fs": "3.0.5",
51-
"tmp": "0.2.1",
48+
"read-pkg": "^9.0.1",
49+
"require-from-string": "^2.0.2",
50+
"tar-fs": "^3.0.5",
51+
"tmp": "^0.2.1",
5252
"yargs": "^17.0.0"
5353
},
5454
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"

0 commit comments

Comments
 (0)