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