diff --git a/@commitlint/config-conventional/index.test.js b/@commitlint/config-conventional/index.test.js index da662aec697..239f05eceb7 100644 --- a/@commitlint/config-conventional/index.test.js +++ b/@commitlint/config-conventional/index.test.js @@ -15,7 +15,7 @@ const dynamicImport = async (id) => { }; const commitLint = async (message) => { - const preset = (await dynamicImport(parserPreset))(); + const preset = await (await dynamicImport(parserPreset))(); return lint(message, rules, {...preset}); }; diff --git a/@commitlint/load/fixtures/parser-preset-angular/package.json b/@commitlint/load/fixtures/parser-preset-angular/package.json index 1016e705f92..5bc9d3e3a79 100644 --- a/@commitlint/load/fixtures/parser-preset-angular/package.json +++ b/@commitlint/load/fixtures/parser-preset-angular/package.json @@ -2,6 +2,6 @@ "name": "parser-preset-angular", "version": "1.0.0", "devDependencies": { - "conventional-changelog-angular": "^5.0.0" + "conventional-changelog-angular": "^7.0.0" } } diff --git a/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json b/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json index 0b3db72ca4b..2c11da94987 100644 --- a/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json +++ b/@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json @@ -2,6 +2,6 @@ "name": "parser-preset-conventional-without-factory", "version": "1.0.0", "devDependencies": { - "conventional-changelog-conventionalcommits": "^4.3.1" + "conventional-changelog-conventionalcommits": "^7.0.2" } } diff --git a/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json b/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json index 2fe7e8cbba7..5812d97c348 100644 --- a/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json +++ b/@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json @@ -2,6 +2,6 @@ "name": "parser-preset-conventionalcommits", "version": "1.0.0", "devDependencies": { - "conventional-changelog-conventionalcommits": "^4.3.1" + "conventional-changelog-conventionalcommits": "^7.0.2" } } diff --git a/@commitlint/parse/src/index.ts b/@commitlint/parse/src/index.ts index 6415209a401..7490fc88ec5 100644 --- a/@commitlint/parse/src/index.ts +++ b/@commitlint/parse/src/index.ts @@ -1,4 +1,4 @@ -import {Parser} from '@commitlint/types'; +import type {Parser} from '@commitlint/types'; import {type Commit, type Options, sync} from 'conventional-commits-parser'; // @ts-expect-error -- no typings