Skip to content

Commit

Permalink
fixes: move file in configs list
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanesik committed Jul 16, 2024
1 parent 8b3dcb0 commit 12d14c6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/knip/src/plugins/vite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ const enablers = ['vite', 'vitest'];

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

export const config = ['vite*.config.{js,mjs,ts,cjs,mts,cts}'];

const entry = ['src/vite-env.d.ts'];
export const config = ['vite*.config.{js,mjs,ts,cjs,mts,cts}', 'src/vite-env.d.ts'];

const production: string[] = [];

Expand All @@ -21,7 +19,6 @@ export default {
enablers,
isEnabled,
config,
entry,
production,
resolveEntryPaths,
resolveConfig,
Expand Down

0 comments on commit 12d14c6

Please sign in to comment.