Skip to content

chore: bump ESM only packages and minor version packages #3927

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

Merged
merged 1 commit into from
Feb 22, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion @alias/commitlint/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {createRequire} from 'module';
import path from 'path';
import {fileURLToPath} from 'url';

import execa from 'execa';
import {execa} from 'execa';
import {fix} from '@commitlint/test';

const require = createRequire(import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion @alias/commitlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@commitlint/test": "^18.0.0",
"@commitlint/utils": "^18.6.1",
"execa": "^5.0.0"
"execa": "^8.0.1"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
8 changes: 4 additions & 4 deletions @commitlint/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@commitlint/test": "^18.0.0",
"@commitlint/utils": "^18.6.1",
"@types/lodash.merge": "^4.6.8",
"@types/node": "^18.11.9",
"@types/node": "^18.19.17",
"@types/yargs": "^17.0.29",
"fs-extra": "^11.0.0",
"lodash.merge": "^4.6.2"
Expand All @@ -53,9 +53,9 @@
"@commitlint/load": "^18.6.1",
"@commitlint/read": "^18.6.1",
"@commitlint/types": "^18.6.1",
"execa": "^5.0.0",
"resolve-from": "5.0.0",
"resolve-global": "1.0.0",
"execa": "^8.0.1",
"resolve-from": "^5.0.0",
"resolve-global": "^2.0.0",
"yargs": "^17.0.0"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/cli/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path';
import {fileURLToPath} from 'url';

import {fix, git} from '@commitlint/test';
import execa from 'execa';
import {execa} from 'execa';
import fs from 'fs-extra';
import merge from 'lodash.merge';

Expand Down
6 changes: 3 additions & 3 deletions @commitlint/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import type {
UserConfig,
} from '@commitlint/types';
import type {Options} from 'conventional-commits-parser';
import execa, {ExecaError} from 'execa';
import {execa, type ExecaError} from 'execa';
import resolveFrom from 'resolve-from';
import resolveGlobal from 'resolve-global';
import {resolveGlobalSilent} from 'resolve-global';
import yargs, {type Arguments} from 'yargs';

import {CliFlags} from './types.js';
Expand Down Expand Up @@ -460,7 +460,7 @@ function loadFormatter(
const modulePath =
resolveFrom.silent(__dirname, moduleName) ||
resolveFrom.silent(flags.cwd, moduleName) ||
resolveGlobal.silent(moduleName);
resolveGlobalSilent(moduleName);

if (modulePath) {
return dynamicImport<Formatter>(modulePath);
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-pnpm-scopes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"node": ">=v18"
},
"dependencies": {
"@pnpm/read-project-manifest": "^4.1.4",
"@pnpm/read-project-manifest": "^5.0.10",
"fast-glob": "^3.3.1",
"read-yaml-file": "^2.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/load/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/lodash.isplainobject": "^4.0.8",
"@types/lodash.merge": "^4.6.8",
"@types/lodash.uniq": "^4.5.8",
"@types/node": "^18.11.9",
"@types/node": "^18.19.17",
"conventional-changelog-atom": "^4.0.0",
"typescript": "^5.2.2"
},
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/prompt-cli/cli.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import {prompter} from '@commitlint/prompt';
import execa from 'execa';
import {execa} from 'execa';
import inquirer from 'inquirer';

main().catch((err) => {
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/prompt-cli/cli.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {test, expect} from 'vitest';
import {createRequire} from 'module';
import {git} from '@commitlint/test';
import execa from 'execa';
import {execa} from 'execa';

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

Expand Down
4 changes: 2 additions & 2 deletions @commitlint/prompt-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
},
"dependencies": {
"@commitlint/prompt": "^18.6.1",
"execa": "^5.0.0",
"inquirer": "^9.2.12"
"execa": "^8.0.1",
"inquirer": "^9.2.15"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
2 changes: 1 addition & 1 deletion @commitlint/prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@commitlint/load": "^18.6.0",
"@commitlint/types": "^18.6.0",
"chalk": "^5.3.0",
"inquirer": "^9.2.12"
"inquirer": "^9.2.15"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
6 changes: 3 additions & 3 deletions @commitlint/read/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"@commitlint/utils": "^18.6.1",
"@types/git-raw-commits": "^2.0.3",
"@types/minimist": "^1.2.4",
"execa": "^5.0.0"
"execa": "^8.0.1"
},
"dependencies": {
"@commitlint/top-level": "^18.6.1",
"@commitlint/types": "^18.6.1",
"git-raw-commits": "^2.0.11",
"minimist": "^1.2.6"
"git-raw-commits": "^4.0.0",
"minimist": "^1.2.8"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
2 changes: 1 addition & 1 deletion @commitlint/read/src/read.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {test, expect} from 'vitest';
import fs from 'fs/promises';
import path from 'path';
import {git} from '@commitlint/test';
import execa from 'execa';
import {execa} from 'execa';

import read from './read.js';

Expand Down
2 changes: 1 addition & 1 deletion @commitlint/resolve-extends/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"import-fresh": "^3.0.0",
"import-meta-resolve": "^4.0.0",
"lodash.mergewith": "^4.6.2",
"resolve-global": "^1.0.0"
"resolve-global": "^2.0.0"
},
"gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749"
}
2 changes: 1 addition & 1 deletion @commitlint/rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@commitlint/message": "^18.6.1",
"@commitlint/to-lines": "^18.6.1",
"@commitlint/types": "^18.6.1",
"execa": "^5.0.0"
"execa": "^8.0.1"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
4 changes: 2 additions & 2 deletions @commitlint/rules/src/trailer-exists.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import execa from 'execa';
import {execaSync} from 'execa';
import message from '@commitlint/message';
import toLines from '@commitlint/to-lines';
import {SyncRule} from '@commitlint/types';
Expand All @@ -8,7 +8,7 @@ export const trailerExists: SyncRule<string> = (
when = 'always',
value = ''
) => {
const trailers = execa.sync('git', ['interpret-trailers', '--parse'], {
const trailers = execaSync('git', ['interpret-trailers', '--parse'], {
input: parsed.raw || '',
}).stdout;

Expand Down
2 changes: 1 addition & 1 deletion @commitlint/top-level/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@commitlint/utils": "^18.6.1"
},
"dependencies": {
"find-up": "^5.0.0"
"find-up": "^7.0.0"
},
"gitHead": "d829bf6260304ca8d6811f329fcdd1b6c50e9749"
}
6 changes: 3 additions & 3 deletions @commitlint/top-level/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from 'path';
import up from 'find-up';
import {findUp} from 'find-up';

export default toplevel;

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

return foundFile || foundDir;
}
2 changes: 1 addition & 1 deletion @commitlint/travis-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@commitlint/cli": "^18.6.1",
"execa": "^5.0.0"
"execa": "^8.0.1"
},
"gitHead": "70f7f4688b51774e7ac5e40e896cdaa3f132b2bc"
}
4 changes: 2 additions & 2 deletions @commitlint/travis-cli/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import path from 'path';
import {fileURLToPath} from 'url';

import {git} from '@commitlint/test';
import execa from 'execa';
import {Options, execa} from 'execa';

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

Expand All @@ -27,7 +27,7 @@ const validBaseEnv = {
TRAVIS_PULL_REQUEST_SLUG: 'TRAVIS_PULL_REQUEST_SLUG',
};

const cli = async (config: execa.Options = {}, args: string[] = []) => {
const cli = async (config: Options = {}, args: string[] = []) => {
try {
return await execa(bin, args, config);
} catch (err: any) {
Expand Down
6 changes: 3 additions & 3 deletions @commitlint/travis-cli/src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {createRequire} from 'module';

import execa from 'execa';
import {Options, execa} from 'execa';

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

Expand Down Expand Up @@ -57,7 +57,7 @@ async function main() {
}
}

async function git(args: string[], options: execa.Options = {}) {
async function git(args: string[], options: Options = {}) {
return execa(GIT, args, {
stdio: 'inherit',
...options,
Expand All @@ -76,7 +76,7 @@ async function isClean() {
return !(result.stdout && result.stdout.trim());
}

async function lint(args: string[], options: execa.Options = {}) {
async function lint(args: string[], options: Options = {}) {
return execa(COMMITLINT, args, {
stdio: ['pipe', 'inherit', 'inherit'],
...options,
Expand Down
4 changes: 2 additions & 2 deletions @packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
"dependencies": {
"@types/fs-extra": "^11.0.3",
"@types/tmp": "^0.2.5",
"execa": "^5.0.0",
"execa": "^8.0.1",
"fs-extra": "^11.0.0",
"pkg-dir": "5.0.0",
"pkg-dir": "^8.0.0",
"resolve-pkg": "2.0.0",
"tmp": "0.2.1"
},
Expand Down
4 changes: 2 additions & 2 deletions @packages/test/src/fix.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';

import fs from 'fs-extra';
import pkgDir from 'pkg-dir';
import {packageDirectory as pkgDir} from 'pkg-dir';
import tmp from 'tmp';

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

if (typeof fixture !== 'undefined') {
const packageDir = await pkgDir(directory);
const packageDir = await pkgDir({cwd: directory});
if (!packageDir) {
throw new Error(`ENOENT, no such file or directory '${packageDir}'`);
}
Expand Down
2 changes: 1 addition & 1 deletion @packages/test/src/git.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import execa from 'execa';
import {execa} from 'execa';

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

Expand Down
2 changes: 1 addition & 1 deletion @packages/utils/dep-check.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import path from 'path';
import execa from 'execa';
import {execa} from 'execa';

const cwd = process.cwd();

Expand Down
2 changes: 1 addition & 1 deletion @packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/yargs": "^17.0.29"
},
"dependencies": {
"execa": "^5.0.0",
"execa": "^8.0.1",
"read-pkg": "9.0.1",
"require-from-string": "2.0.2",
"tar-fs": "3.0.5",
Expand Down
2 changes: 1 addition & 1 deletion @packages/utils/pkg-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import path from 'path';
import fs from 'fs';

import execa from 'execa';
import {execa} from 'execa';
import readPkg from 'read-pkg';
import requireFromString from 'require-from-string';
import tar from 'tar-fs';
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,21 @@
},
"devDependencies": {
"@lerna/project": "^6.0.0",
"@swc/core": "^1.3.93",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@vitest/coverage-istanbul": "^1.2.2",
"@swc/core": "^1.4.2",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"@vitest/coverage-istanbul": "^1.3.1",
"cross-env": "^7.0.3",
"docsify-cli": "^4.4.3",
"eslint": "^8.46.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-jest": "^27.2.3",
"husky": "^9.0.6",
"eslint-plugin-jest": "^27.9.0",
"husky": "^9.0.11",
"lerna": "^6.0.0",
"lint-staged": "15.2.2",
"prettier": "^2.8.8",
"typescript": "^5.2.2",
"vitest": "^1.2.2"
"vitest": "^1.3.1"
}
}
Loading