Skip to content

Commit 031bc20

Browse files
authoredNov 25, 2024
Add Astro middleware and actions (#850)
1 parent fd62124 commit 031bc20

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎packages/knip/src/plugins/astro/index.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ const isEnabled: IsPluginEnabled = ({ dependencies }) => hasDependency(dependenc
1212

1313
const entry = ['astro.config.{js,cjs,mjs,ts}', 'src/content/config.ts'];
1414

15-
const production = ['src/pages/**/*.{astro,mdx,js,ts}', 'src/content/**/*.mdx'];
15+
const production = [
16+
'src/pages/**/*.{astro,mdx,js,ts}',
17+
'src/content/**/*.mdx',
18+
'src/middleware.{js,ts}',
19+
'src/actions/index.{js,ts}',
20+
];
1621

1722
const resolve: Resolve = options => {
1823
const { manifest, isProduction } = options;

0 commit comments

Comments
 (0)