Skip to content

Commit 42d90f2

Browse files
JounQinescapedcat
authored andcommitted
chore: bump ESM only packages and minor version packages (conventional-changelog#3927)
1 parent 195078e commit 42d90f2

File tree

29 files changed

+395
-339
lines changed

29 files changed

+395
-339
lines changed

@alias/commitlint/cli.test.js

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

6-
import execa from 'execa';
6+
import {execa} from 'execa';
77
import {fix} from '@commitlint/test';
88

99
const require = createRequire(import.meta.url);

@alias/commitlint/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"devDependencies": {
4343
"@commitlint/test": "^18.0.0",
4444
"@commitlint/utils": "^18.6.1",
45-
"execa": "^5.0.0"
45+
"execa": "^8.0.1"
4646
},
4747
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
4848
}

@commitlint/cli/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"@commitlint/test": "^18.0.0",
4343
"@commitlint/utils": "^18.6.1",
4444
"@types/lodash.merge": "^4.6.8",
45-
"@types/node": "^18.11.9",
45+
"@types/node": "^18.19.17",
4646
"@types/yargs": "^17.0.29",
4747
"fs-extra": "^11.0.0",
4848
"lodash.merge": "^4.6.2"
@@ -53,9 +53,9 @@
5353
"@commitlint/load": "^18.6.1",
5454
"@commitlint/read": "^18.6.1",
5555
"@commitlint/types": "^18.6.1",
56-
"execa": "^5.0.0",
57-
"resolve-from": "5.0.0",
58-
"resolve-global": "1.0.0",
56+
"execa": "^8.0.1",
57+
"resolve-from": "^5.0.0",
58+
"resolve-global": "^2.0.0",
5959
"yargs": "^17.0.0"
6060
},
6161
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"

@commitlint/cli/src/cli.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'path';
44
import {fileURLToPath} from 'url';
55

66
import {fix, git} from '@commitlint/test';
7-
import execa from 'execa';
7+
import {execa} from 'execa';
88
import fs from 'fs-extra';
99
import merge from 'lodash.merge';
1010

@commitlint/cli/src/cli.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ import type {
1515
UserConfig,
1616
} from '@commitlint/types';
1717
import type {Options} from 'conventional-commits-parser';
18-
import execa, {ExecaError} from 'execa';
18+
import {execa, type ExecaError} from 'execa';
1919
import resolveFrom from 'resolve-from';
20-
import resolveGlobal from 'resolve-global';
20+
import {resolveGlobalSilent} from 'resolve-global';
2121
import yargs, {type Arguments} from 'yargs';
2222

2323
import {CliFlags} from './types.js';
@@ -460,7 +460,7 @@ function loadFormatter(
460460
const modulePath =
461461
resolveFrom.silent(__dirname, moduleName) ||
462462
resolveFrom.silent(flags.cwd, moduleName) ||
463-
resolveGlobal.silent(moduleName);
463+
resolveGlobalSilent(moduleName);
464464

465465
if (modulePath) {
466466
return dynamicImport<Formatter>(modulePath);

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"node": ">=v18"
3232
},
3333
"dependencies": {
34-
"@pnpm/read-project-manifest": "^4.1.4",
34+
"@pnpm/read-project-manifest": "^5.0.10",
3535
"fast-glob": "^3.3.1",
3636
"read-yaml-file": "^2.1.0"
3737
},

@commitlint/load/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"@types/lodash.isplainobject": "^4.0.8",
4141
"@types/lodash.merge": "^4.6.8",
4242
"@types/lodash.uniq": "^4.5.8",
43-
"@types/node": "^18.11.9",
43+
"@types/node": "^18.19.17",
4444
"conventional-changelog-atom": "^4.0.0",
4545
"typescript": "^5.2.2"
4646
},

@commitlint/prompt-cli/cli.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import {prompter} from '@commitlint/prompt';
3-
import execa from 'execa';
3+
import {execa} from 'execa';
44
import inquirer from 'inquirer';
55

66
main().catch((err) => {

@commitlint/prompt-cli/cli.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {test, expect} from 'vitest';
22
import {createRequire} from 'module';
33
import {git} from '@commitlint/test';
4-
import execa from 'execa';
4+
import {execa} from 'execa';
55

66
const require = createRequire(import.meta.url);
77

@commitlint/prompt-cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
},
3939
"dependencies": {
4040
"@commitlint/prompt": "^18.6.1",
41-
"execa": "^5.0.0",
42-
"inquirer": "^9.2.12"
41+
"execa": "^8.0.1",
42+
"inquirer": "^9.2.15"
4343
},
4444
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
4545
}

@commitlint/prompt/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@commitlint/load": "^18.6.0",
5050
"@commitlint/types": "^18.6.0",
5151
"chalk": "^5.3.0",
52-
"inquirer": "^9.2.12"
52+
"inquirer": "^9.2.15"
5353
},
5454
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
5555
}

@commitlint/read/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
"@commitlint/utils": "^18.6.1",
4141
"@types/git-raw-commits": "^2.0.3",
4242
"@types/minimist": "^1.2.4",
43-
"execa": "^5.0.0"
43+
"execa": "^8.0.1"
4444
},
4545
"dependencies": {
4646
"@commitlint/top-level": "^18.6.1",
4747
"@commitlint/types": "^18.6.1",
48-
"git-raw-commits": "^2.0.11",
49-
"minimist": "^1.2.6"
48+
"git-raw-commits": "^4.0.0",
49+
"minimist": "^1.2.8"
5050
},
5151
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
5252
}

@commitlint/read/src/read.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {test, expect} from 'vitest';
22
import fs from 'fs/promises';
33
import path from 'path';
44
import {git} from '@commitlint/test';
5-
import execa from 'execa';
5+
import {execa} from 'execa';
66

77
import read from './read.js';
88

@commitlint/resolve-extends/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"import-fresh": "^3.0.0",
4646
"import-meta-resolve": "^4.0.0",
4747
"lodash.mergewith": "^4.6.2",
48-
"resolve-global": "^1.0.0"
48+
"resolve-global": "^2.0.0"
4949
},
5050
"gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749"
5151
}

@commitlint/rules/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@commitlint/message": "^18.6.1",
4848
"@commitlint/to-lines": "^18.6.1",
4949
"@commitlint/types": "^18.6.1",
50-
"execa": "^5.0.0"
50+
"execa": "^8.0.1"
5151
},
5252
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
5353
}

@commitlint/rules/src/trailer-exists.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import execa from 'execa';
1+
import {execaSync} from 'execa';
22
import message from '@commitlint/message';
33
import toLines from '@commitlint/to-lines';
44
import {SyncRule} from '@commitlint/types';
@@ -8,7 +8,7 @@ export const trailerExists: SyncRule<string> = (
88
when = 'always',
99
value = ''
1010
) => {
11-
const trailers = execa.sync('git', ['interpret-trailers', '--parse'], {
11+
const trailers = execaSync('git', ['interpret-trailers', '--parse'], {
1212
input: parsed.raw || '',
1313
}).stdout;
1414

@commitlint/top-level/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"@commitlint/utils": "^18.6.1"
4040
},
4141
"dependencies": {
42-
"find-up": "^5.0.0"
42+
"find-up": "^7.0.0"
4343
},
4444
"gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749"
4545
}

@commitlint/top-level/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import path from 'path';
2-
import up from 'find-up';
2+
import {findUp} from 'find-up';
33

44
export default toplevel;
55

@@ -20,8 +20,8 @@ async function toplevel(cwd?: string) {
2020
* Search .git, the '.git' can be a file(submodule), also can be a directory(normal)
2121
*/
2222
async function searchDotGit(cwd?: string) {
23-
const foundFile = await up('.git', {cwd, type: 'file'});
24-
const foundDir = await up('.git', {cwd, type: 'directory'});
23+
const foundFile = await findUp('.git', {cwd, type: 'file'});
24+
const foundDir = await findUp('.git', {cwd, type: 'directory'});
2525

2626
return foundFile || foundDir;
2727
}

@commitlint/travis-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
"dependencies": {
4444
"@commitlint/cli": "^18.6.1",
45-
"execa": "^5.0.0"
45+
"execa": "^8.0.1"
4646
},
4747
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
4848
}

@commitlint/travis-cli/src/cli.test.ts

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

66
import {git} from '@commitlint/test';
7-
import execa from 'execa';
7+
import {Options, execa} from 'execa';
88

99
const require = createRequire(import.meta.url);
1010

@@ -27,7 +27,7 @@ const validBaseEnv = {
2727
TRAVIS_PULL_REQUEST_SLUG: 'TRAVIS_PULL_REQUEST_SLUG',
2828
};
2929

30-
const cli = async (config: execa.Options = {}, args: string[] = []) => {
30+
const cli = async (config: Options = {}, args: string[] = []) => {
3131
try {
3232
return await execa(bin, args, config);
3333
} catch (err: any) {

@commitlint/travis-cli/src/cli.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {createRequire} from 'module';
22

3-
import execa from 'execa';
3+
import {Options, execa} from 'execa';
44

55
const require = createRequire(import.meta.url);
66

@@ -57,7 +57,7 @@ async function main() {
5757
}
5858
}
5959

60-
async function git(args: string[], options: execa.Options = {}) {
60+
async function git(args: string[], options: Options = {}) {
6161
return execa(GIT, args, {
6262
stdio: 'inherit',
6363
...options,
@@ -76,7 +76,7 @@ async function isClean() {
7676
return !(result.stdout && result.stdout.trim());
7777
}
7878

79-
async function lint(args: string[], options: execa.Options = {}) {
79+
async function lint(args: string[], options: Options = {}) {
8080
return execa(COMMITLINT, args, {
8181
stdio: ['pipe', 'inherit', 'inherit'],
8282
...options,

@packages/test/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
"dependencies": {
3535
"@types/fs-extra": "^11.0.3",
3636
"@types/tmp": "^0.2.5",
37-
"execa": "^5.0.0",
37+
"execa": "^8.0.1",
3838
"fs-extra": "^11.0.0",
39-
"pkg-dir": "5.0.0",
39+
"pkg-dir": "^8.0.0",
4040
"resolve-pkg": "2.0.0",
4141
"tmp": "0.2.1"
4242
},

@packages/test/src/fix.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import path from 'path';
22

33
import fs from 'fs-extra';
4-
import pkgDir from 'pkg-dir';
4+
import {packageDirectory as pkgDir} from 'pkg-dir';
55
import tmp from 'tmp';
66

77
export async function bootstrap(fixture?: string, directory?: string) {
@@ -11,7 +11,7 @@ export async function bootstrap(fixture?: string, directory?: string) {
1111
});
1212

1313
if (typeof fixture !== 'undefined') {
14-
const packageDir = await pkgDir(directory);
14+
const packageDir = await pkgDir({cwd: directory});
1515
if (!packageDir) {
1616
throw new Error(`ENOENT, no such file or directory '${packageDir}'`);
1717
}

@packages/test/src/git.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import execa from 'execa';
1+
import {execa} from 'execa';
22

33
import * as fix from './fix.js';
44

@packages/utils/dep-check.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import path from 'path';
3-
import execa from 'execa';
3+
import {execa} from 'execa';
44

55
const cwd = process.cwd();
66

@packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@types/yargs": "^17.0.29"
4545
},
4646
"dependencies": {
47-
"execa": "^5.0.0",
47+
"execa": "^8.0.1",
4848
"read-pkg": "9.0.1",
4949
"require-from-string": "2.0.2",
5050
"tar-fs": "3.0.5",

@packages/utils/pkg-check.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import path from 'path';
33
import fs from 'fs';
44

5-
import execa from 'execa';
5+
import {execa} from 'execa';
66
import readPkg from 'read-pkg';
77
import requireFromString from 'require-from-string';
88
import tar from 'tar-fs';

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,21 @@
8484
},
8585
"devDependencies": {
8686
"@lerna/project": "^6.0.0",
87-
"@swc/core": "^1.3.93",
88-
"@typescript-eslint/eslint-plugin": "^7.0.0",
89-
"@typescript-eslint/parser": "^7.0.0",
90-
"@vitest/coverage-istanbul": "^1.2.2",
87+
"@swc/core": "^1.4.2",
88+
"@typescript-eslint/eslint-plugin": "^7.0.2",
89+
"@typescript-eslint/parser": "^7.0.2",
90+
"@vitest/coverage-istanbul": "^1.3.1",
9191
"cross-env": "^7.0.3",
9292
"docsify-cli": "^4.4.3",
9393
"eslint": "^8.46.0",
9494
"eslint-config-prettier": "^9.0.0",
9595
"eslint-plugin-import": "^2.28.0",
96-
"eslint-plugin-jest": "^27.2.3",
97-
"husky": "^9.0.6",
96+
"eslint-plugin-jest": "^27.9.0",
97+
"husky": "^9.0.11",
9898
"lerna": "^6.0.0",
9999
"lint-staged": "15.2.2",
100100
"prettier": "^2.8.8",
101101
"typescript": "^5.2.2",
102-
"vitest": "^1.2.2"
102+
"vitest": "^1.3.1"
103103
}
104104
}

0 commit comments

Comments
 (0)