Skip to content

Commit 85c10f3

Browse files
committed
refactor!(attw): rename profile value from esmOnly to esm-only
1 parent 712a733 commit 85c10f3

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

src/features/attw.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,7 @@ export async function attw(options: ResolvedConfig): Promise<void> {
6161
options.logger.warn('attw is enabled but package.json is not found')
6262
return
6363
}
64-
let { profile = 'strict', level = 'warn', ...attwOptions } = options.attw
65-
66-
// @ts-expect-error - deprecated key
67-
if (profile === 'esmOnly') {
68-
options.logger.warn(
69-
'attw option "esmOnly" is deprecated, use "esm-only" instead',
70-
)
71-
profile = 'esm-only'
72-
}
64+
const { profile = 'strict', level = 'warn', ...attwOptions } = options.attw
7365

7466
const t = performance.now()
7567
debug('Running attw check')

0 commit comments

Comments
 (0)