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 85e65d8 commit 6a0d98cCopy full SHA for 6a0d98c
1 file changed
src/features/pkg/index.ts
@@ -95,8 +95,9 @@ export async function bundleDone(
95
const publintConfigs = dedupeConfigs(configs, 'publint')
96
const attwConfigs = dedupeConfigs(configs, 'attw')
97
98
- if (publintConfigs.length > 1 || attwConfigs.length > 1) {
99
- publintConfigs[1].logger.warn(
+ const duplicate = publintConfigs[1] || attwConfigs[1]
+ if (duplicate) {
100
+ duplicate.logger.warn(
101
`Multiple publint or attw configurations found for package at ${pkg.packageJsonPath}. Consider merging them for better consistency and performance.`,
102
)
103
}
0 commit comments