Skip to content

Commit e0e6b5b

Browse files
committed
fix: load parserPreset with another await
1 parent 7e13406 commit e0e6b5b

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

@commitlint/config-conventional/index.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const dynamicImport = async (id) => {
1515
};
1616

1717
const commitLint = async (message) => {
18-
const preset = (await dynamicImport(parserPreset))();
18+
const preset = await (await dynamicImport(parserPreset))();
1919
return lint(message, rules, {...preset});
2020
};
2121

@commitlint/load/fixtures/parser-preset-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "parser-preset-angular",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"conventional-changelog-angular": "^5.0.0"
5+
"conventional-changelog-angular": "^7.0.0"
66
}
77
}

@commitlint/load/fixtures/parser-preset-conventional-without-factory/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "parser-preset-conventional-without-factory",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"conventional-changelog-conventionalcommits": "^4.3.1"
5+
"conventional-changelog-conventionalcommits": "^7.0.2"
66
}
77
}

@commitlint/load/fixtures/parser-preset-conventionalcommits/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"name": "parser-preset-conventionalcommits",
33
"version": "1.0.0",
44
"devDependencies": {
5-
"conventional-changelog-conventionalcommits": "^4.3.1"
5+
"conventional-changelog-conventionalcommits": "^7.0.2"
66
}
77
}

@commitlint/parse/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {Parser} from '@commitlint/types';
1+
import type {Parser} from '@commitlint/types';
22

33
import {type Commit, type Options, sync} from 'conventional-commits-parser';
44
// @ts-expect-error -- no typings

0 commit comments

Comments
 (0)