Skip to content

Commit

Permalink
fix: add named export to @commitlint/parse (#3614)
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlancollins authored and escapedcat committed May 30, 2023
1 parent eea8da8 commit 2cd236b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion @commitlint/parse/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {Commit, Parser, ParserOptions} from '@commitlint/types';
const {sync} = require('conventional-commits-parser');
const defaultChangelogOpts = require('conventional-changelog-angular');

export default async function parse(
export async function parse(
message: string,
parser: Parser = sync,
parserOpts?: ParserOptions
Expand All @@ -18,3 +18,5 @@ export default async function parse(
parsed.raw = message;
return parsed;
}

export default parse;

0 comments on commit 2cd236b

Please sign in to comment.