Skip to content

Commit 413bb46

Browse files
committed
fix(publint)!: use pkg from publint results, require publint v0.3.8+
closes #883
1 parent eb587c9 commit 413bb46

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
"@tsdown/css": "workspace:*",
9494
"@tsdown/exe": "workspace:*",
9595
"@vitejs/devtools": "*",
96-
"publint": "^0.3.0",
96+
"publint": "^0.3.8",
9797
"tsx": "*",
9898
"typescript": "^5.0.0 || ^6.0.0",
9999
"unplugin-unused": "^0.5.0",

src/features/pkg/publint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export async function publint(
3535
options.publint.module?.[1] ||
3636
(await importWithError<typeof import('publint/utils')>('publint/utils'))
3737

38-
const { messages } = await publint({
38+
const { messages, pkg } = await publint({
3939
...options.publint,
4040
pack: { tarball: tarball.buffer },
4141
})
@@ -52,7 +52,7 @@ export async function publint(
5252
}
5353

5454
for (const message of messages) {
55-
const formattedMessage = formatMessage(message, options.pkg)
55+
const formattedMessage = formatMessage(message, pkg)
5656
const logType = (
5757
{ error: 'error', warning: 'warn', suggestion: 'info' } as const
5858
)[message.type]

0 commit comments

Comments
 (0)