Skip to content

Commit

Permalink
fix: load parserPreset with another await
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jan 27, 2024
1 parent 7e13406 commit e0e6b5b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion @commitlint/config-conventional/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion @commitlint/parse/src/index.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e0e6b5b

Please sign in to comment.