We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df36ab5 commit 7ae611aCopy full SHA for 7ae611a
src/features/publint.ts
@@ -1,3 +1,4 @@
1
+import path from 'node:path'
2
import process from 'node:process'
3
import { dim } from 'ansis'
4
import Debug from 'debug'
@@ -16,9 +17,10 @@ export async function publint(options: ResolvedOptions): Promise<void> {
16
17
debug('Running publint')
18
const { publint } = await import('publint')
19
const { formatMessage } = await import('publint/utils')
- const { messages } = await publint(
20
- options.publint === true ? {} : options.publint,
21
- )
+ const { messages } = await publint({
+ ...(options.publint === true ? {} : options.publint),
22
+ pkgDir: path.dirname(options.pkg.packageJsonPath),
23
+ })
24
debug('Found %d issues', messages.length)
25
26
if (!messages.length) {
0 commit comments