Skip to content

Commit dbdd98b

Browse files
authored
refactor: use toC12config for bump plugin (#1280)
1 parent e0ff0b5 commit dbdd98b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/knip/src/plugins/bumpp/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { IsPluginEnabled, Plugin } from '../../types/config.js';
2+
import { toC12config } from '../../util/plugin-config.js';
23
import { hasDependency } from '../../util/plugin.js';
34

45
// https://github.com/antfu-collective/bumpp#bumpp
@@ -9,7 +10,7 @@ const enablers = ['bumpp'];
910

1011
const isEnabled: IsPluginEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
1112

12-
const entry = ['bump.config.{mjs,ts,js,cjs,mts,cts}'];
13+
const entry = ['package.json', ...toC12config('bump')];
1314

1415
export default {
1516
title,

0 commit comments

Comments
 (0)