|
183 | 183 | "entry": [], |
184 | 184 | "project": [] |
185 | 185 | }, |
| 186 | + // Each plugin's lockstep `--assets` package is referenced only as a |
| 187 | + // runtime string (`${pkg.name}--assets` in `cli.distDir`), never imported, |
| 188 | + // so knip can't see the dev-only workspace link. A workspace config |
| 189 | + // replaces (not merges) the `plugins/*` glob's `entry`, so repeat it. |
| 190 | + "plugins/og": { |
| 191 | + "entry": ["src/{index,cli,vite,constants,types}.ts", "src/{client,node,rpc,inject,engine,registry}/index.ts"], |
| 192 | + "ignoreDependencies": ["@devframes/plugin-og--assets"] |
| 193 | + }, |
| 194 | + "plugins/og/assets-pkg": { "entry": [], "project": [] }, |
| 195 | + "plugins/data-inspector": { |
| 196 | + "entry": ["src/{index,cli,vite,constants,types}.ts", "src/{client,node,rpc,inject,engine,registry}/index.ts"], |
| 197 | + "ignoreDependencies": ["@devframes/plugin-data-inspector--assets"] |
| 198 | + }, |
| 199 | + "plugins/data-inspector/assets-pkg": { "entry": [], "project": [] }, |
| 200 | + "plugins/code-server": { |
| 201 | + "entry": ["src/{index,cli,vite,constants,types}.ts", "src/{client,node,rpc,inject,engine,registry}/index.ts"], |
| 202 | + "ignoreDependencies": ["@devframes/plugin-code-server--assets"] |
| 203 | + }, |
| 204 | + "plugins/code-server/assets-pkg": { "entry": [], "project": [] }, |
| 205 | + "plugins/assets": { |
| 206 | + "entry": ["src/{index,cli,vite,constants,types}.ts", "src/{client,node,rpc,inject,engine,registry}/index.ts"], |
| 207 | + "ignoreDependencies": ["@devframes/plugin-assets--assets"] |
| 208 | + }, |
| 209 | + "plugins/assets/assets-pkg": { "entry": [], "project": [] }, |
| 210 | + "plugins/messages": { |
| 211 | + "entry": ["src/{index,cli,vite,constants,types}.ts", "src/{client,node,rpc,inject,engine,registry}/index.ts"], |
| 212 | + "ignoreDependencies": ["@devframes/plugin-messages--assets"] |
| 213 | + }, |
| 214 | + "plugins/messages/assets-pkg": { "entry": [], "project": [] }, |
| 215 | + "plugins/terminals": { |
| 216 | + "entry": ["src/{index,cli,vite,constants,types}.ts", "src/{client,node,rpc,inject,engine,registry}/index.ts"], |
| 217 | + "ignoreDependencies": ["@devframes/plugin-terminals--assets"] |
| 218 | + }, |
| 219 | + "plugins/terminals/assets-pkg": { "entry": [], "project": [] }, |
| 220 | + "plugins/a11y/assets-pkg": { "entry": [], "project": [] }, |
| 221 | + "plugins/git/assets-pkg": { "entry": [], "project": [] }, |
186 | 222 | "plugins/a11y": { |
187 | 223 | // `storybook-solidjs-vite` (not an official `@storybook/*` framework |
188 | 224 | // package) doesn't match knip's Storybook plugin trigger, so it never |
|
199 | 235 | "src/{index,cli,vite,constants,types}.ts", |
200 | 236 | "src/{client,node,rpc,inject,engine,registry}/index.ts", |
201 | 237 | "src/**/*.stories.tsx" |
202 | | - ] |
| 238 | + ], |
| 239 | + "ignoreDependencies": ["@devframes/plugin-a11y--assets"] |
203 | 240 | }, |
204 | 241 | "plugins/git": { |
205 | 242 | // The React client build's root sits at `src/client` (`next dev |
206 | 243 | // src/client`), not the workspace root, so knip's default PostCSS |
207 | 244 | // config glob (workspace-root `postcss.config.*`) misses it. |
208 | 245 | "postcss": { |
209 | 246 | "config": ["src/client/postcss.config.mjs"] |
210 | | - } |
| 247 | + }, |
| 248 | + "ignoreDependencies": ["@devframes/plugin-git--assets"] |
211 | 249 | } |
212 | 250 | } |
213 | 251 | } |
0 commit comments