Skip to content

fix: resolve knip failures from plugin-git shiki refactor - #265

Merged
antfu merged 1 commit into
mainfrom
fix/ci-knip-git-plugin-shiki
Aug 19, 2026
Merged

fix: resolve knip failures from plugin-git shiki refactor#265
antfu merged 1 commit into
mainfrom
fix/ci-knip-git-plugin-shiki

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Summary

Main's CI unit-test / lint job has been failing at the knip step since #264 ("refactor(plugin-git): render diffs in-house via service-shiki"):

  • @devframes/service-shiki was listed as both a dependencies and a devDependencies entry in plugins/git/package.json, tripping knip's unused-devDependency check.
  • knip.jsonc's root-workspace ignoreDependencies: ["valibot"] exception (for the old spa-devframe.ts example) is stale — that file was deleted in refactor!: remove never-implemented SPA adapter remnants and other dead code #234, so the exception now just masks a config hint knip surfaces on every run.

Changes

  • Remove the duplicate @devframes/service-shiki from plugins/git/package.json's devDependencies (it's already a real runtime dependencies entry).
  • Drop the stale valibot exception and its comment from knip.jsonc.

Verification

  • pnpm build && pnpm run lint && pnpm run knip — all green, matching CI's build-for-lint: true sequencing.
  • pnpm build && pnpm run typecheck — 37/37 packages pass.
  • pnpm exec vitest run --project @devframes/plugin-git — 29/29 tests pass.

Created with the help of an agent.

- remove duplicate @devframes/service-shiki devDependency in
  plugins/git/package.json (already listed under dependencies)
- drop the stale valibot ignoreDependencies entry in knip.jsonc; the
  spa-devframe.ts example that used it was removed in #234
@netlify

netlify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit e508da3
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a8550ebfc30270008d35a89
😎 Deploy Preview https://deploy-preview-265--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu
antfu merged commit c04101b into main Aug 19, 2026
11 of 12 checks passed
@antfu
antfu deleted the fix/ci-knip-git-plugin-shiki branch August 19, 2026 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants