Skip to content

Commit 247acdd

Browse files
fix: Update @commitlint/parse (#5491)
See conventional-changelog/commitlint#3614
1 parent d490832 commit 247acdd

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@babel/preset-env": "^7.21.5",
3535
"@babel/preset-react": "^7.18.6",
3636
"@babel/preset-typescript": "^7.21.5",
37-
"@commitlint/parse": "^17.4.4",
37+
"@commitlint/parse": "^17.6.5",
3838
"@rollup/plugin-babel": "^6.0.3",
3939
"@rollup/plugin-commonjs": "^25.0.0",
4040
"@rollup/plugin-node-resolve": "^15.0.2",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/publish.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import chalk from 'chalk'
77
import jsonfile from 'jsonfile'
88
import * as semver from 'semver'
99
import currentGitBranch from 'current-git-branch'
10-
import parseCommit from '@commitlint/parse'
10+
import { parse as parseCommit } from '@commitlint/parse'
1111
import log from 'git-log-parser'
1212
import streamToArray from 'stream-to-array'
1313
import axios from 'axios'
@@ -104,8 +104,7 @@ async function run() {
104104

105105
Promise.all(
106106
arr.map(async (d) => {
107-
// @ts-ignore
108-
const parsed = await parseCommit.default(d.subject)
107+
const parsed = await parseCommit(d.subject)
109108

110109
return { ...d, parsed }
111110
}),

0 commit comments

Comments
 (0)