Fix API plugin-manager Vitest failure loading plugin host UI deps #278
Labels
No labels
abandoned
active
audit
blocked
data-safety
difficulty:easy
difficulty:hard
difficulty:high
difficulty:medium
docs
done
duplicate
notebook-v0
open
priority:high
ready
release-critical
safe-mode
spec
spec-backlog
subsystem:api
subsystem:backlog
subsystem:bases
subsystem:ci
subsystem:command
subsystem:configuration
subsystem:consolidate
subsystem:dependencies
subsystem:desktop-electron
subsystem:diffmerge
subsystem:docker
subsystem:docs
subsystem:fuzzy
subsystem:graph
subsystem:hotkeys
subsystem:lapis
subsystem:maint
subsystem:maintenance
subsystem:markdown
subsystem:markdown-lint
subsystem:md018
subsystem:notebook
subsystem:notifications
subsystem:opfs
subsystem:package
subsystem:plugin-markdown
subsystem:plugin-tasks
subsystem:plugins
subsystem:registry
subsystem:release
subsystem:renovate
subsystem:restore
subsystem:scripts
subsystem:search
subsystem:settings
subsystem:spec
subsystem:tasks
subsystem:testing
subsystem:ui
subsystem:web
subsystem:workspace
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lapis-notes/lapis#278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
pnpm testfails in@lapis-notes/apibecauseplugin-manager.test.tsloadsworkspace/src/lib/depsand generated plugin-host provider values. That pullsbits-ui→vaul-svelte.sveltefiles into Vitest without Vite transform,raising
Unknown file extension ".svelte".Forgejo
checks.ymlalso skipspnpm testand runs smoke only aftercheck:all.Goal
Restore green
pnpm testand align CI/docker CI check with unit tests beforesmoke.
Acceptance Criteria
pnpm --filter @lapis-notes/api testpasses (plugin-manager suite included)pnpm testpasses.forgejo/workflows/checks.ymlrunspnpm testafter spec lint and before smokepnpm docker:ci-checkscript mirrors the same stepspec/src/80-maintenance/monorepo-scripts.mddocuments CI unit-test stepImplementation Notes
Add
vaul-svelteto API Vitestssr.noExternalso transitive UI deps compile.Add
pnpm testto checks workflow andbuildCiScript.Validation Commands
pnpm --filter @lapis-notes/api testpnpm testpnpm test:scriptspnpm check:allmake spec-lintImplementation Summary
Added vaul-svelte to API Vitest ssr.noExternal so plugin-manager tests can load workspace deps and plugin-host UI providers without Node .svelte errors. Added pnpm test to checks.yml and docker:ci-check after spec lint and before smoke; updated monorepo-scripts.md and run-lapis-ci-check.test.mjs. Validated: pnpm test, pnpm test:scripts, pnpm check:all, make spec-lint.