Skip to content

Commit

Permalink
chore: bump glob and related usage (#3928)
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin authored and escapedcat committed Feb 27, 2024
1 parent 42d90f2 commit 02bf398
Show file tree
Hide file tree
Showing 13 changed files with 181 additions and 70 deletions.
4 changes: 2 additions & 2 deletions @commitlint/config-lerna-scopes/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {createRequire} from 'module';
import Path from 'path';

import glob from 'glob';
import {globSync} from 'glob';
import importFrom from 'import-from';
import semver from 'semver';

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

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

return wsGlobs.map((pJson) => require(Path.join(cwd, pJson)));
Expand Down
6 changes: 3 additions & 3 deletions @commitlint/config-lerna-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
},
"dependencies": {
"@lerna/project": "^6.0.0",
"glob": "^8.0.3",
"import-from": "4.0.0",
"semver": "7.6.0"
"glob": "^10.3.10",
"import-from": "^4.0.0",
"semver": "^7.6.0"
},
"devDependencies": {
"@commitlint/test": "^18.0.0",
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-patternplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@commitlint/config-angular": "^18.6.1",
"glob": "^8.0.3",
"glob": "^10.3.10",
"lodash.merge": "^4.6.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/ensure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/lodash.snakecase": "^4.1.8",
"@types/lodash.startcase": "^4.4.8",
"@types/lodash.upperfirst": "^4.3.8",
"glob": "^8.0.3"
"glob": "^10.3.10"
},
"dependencies": {
"@commitlint/types": "^18.6.1",
Expand Down
4 changes: 2 additions & 2 deletions @commitlint/ensure/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {test, expect} from 'vitest';
import path from 'path';
import {fileURLToPath} from 'url';

import glob from 'glob';
import {globSync} from 'glob';
import camelCase from 'lodash.camelcase';

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

function _glob(pattern: string): string[] {
const files = glob.sync(pattern, {
const files = globSync(pattern, {
ignore: ['**/index.ts', '**/*.test.ts'],
cwd: __dirname,
});
Expand Down
4 changes: 2 additions & 2 deletions @commitlint/is-ignored/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"@commitlint/parse": "^18.6.1",
"@commitlint/test": "^18.0.0",
"@commitlint/utils": "^18.6.1",
"@types/semver": "7.5.7"
"@types/semver": "^7.5.7"
},
"dependencies": {
"@commitlint/types": "^18.6.1",
"semver": "7.6.0"
"semver": "^7.6.0"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "@second-extend/recursive-parser-preset-conventional-atom",
"version": "1.0.0",
"devDependencies": {
"conventional-changelog-atom": "2.0.3"
"conventional-changelog-atom": "^2.0.3"
}
}
4 changes: 2 additions & 2 deletions @commitlint/rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@commitlint/parse": "^18.6.1",
"@commitlint/test": "^18.0.0",
"@commitlint/utils": "^18.6.1",
"conventional-changelog-angular": "7.0.0",
"glob": "^8.0.3"
"conventional-changelog-angular": "^7.0.0",
"glob": "^10.3.10"
},
"dependencies": {
"@commitlint/ensure": "^18.6.1",
Expand Down
4 changes: 2 additions & 2 deletions @commitlint/rules/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from 'fs';
import path from 'path';
import {fileURLToPath} from 'url';

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

import rules from './index.js';

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

function _glob(pattern: string) {
const files = glob.sync(pattern, {
const files = globSync(pattern, {
ignore: ['**/index.ts', '**/*.test.ts'],
cwd: __dirname,
});
Expand Down
2 changes: 1 addition & 1 deletion @packages/test-environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"@types/tmp": "^0.2.5",
"jest-environment-node": "^29.6.2",
"tmp": "0.2.1"
"tmp": "^0.2.1"
},
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"
}
4 changes: 2 additions & 2 deletions @packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"execa": "^8.0.1",
"fs-extra": "^11.0.0",
"pkg-dir": "^8.0.0",
"resolve-pkg": "2.0.0",
"tmp": "0.2.1"
"resolve-pkg": "^2.0.0",
"tmp": "^0.2.1"
},
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"
}
8 changes: 4 additions & 4 deletions @packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@
},
"dependencies": {
"execa": "^8.0.1",
"read-pkg": "9.0.1",
"require-from-string": "2.0.2",
"tar-fs": "3.0.5",
"tmp": "0.2.1",
"read-pkg": "^9.0.1",
"require-from-string": "^2.0.2",
"tar-fs": "^3.0.5",
"tmp": "^0.2.1",
"yargs": "^17.0.0"
},
"gitHead": "71f0194f33943954a8dac1c458be47e5049717cd"
Expand Down
Loading

0 comments on commit 02bf398

Please sign in to comment.