@clearcms/admin@0.4.2
Patch Changes
-
3821bc7Thanks @slavasolutions! - Stop publishing test files in the@clearcms/adminnpm tarball (closes #88).The
filesfield inapps/admin/package.jsonlistedsrcwhole, so
every.test.ts/.test.tsx,__tests__/, and__snapshots__/under
src/shipped to npm. The test files importvitest, which is a
devDependency — Vite's dependency scanner walks the published tree on
admin boot, fails to resolvevitest, and prints:[vite] (!) Failed to run dependency scan ... vitest ... Are they installed?Non-fatal but noisy on every cold start.
Adopter testers hit it on PreviewPanel.test.tsx and
pages/api/admin/schemas/key.test.ts on different runs — the leak isn't
file-specific, it's the wholesrc/umbrella.This change adds explicit negation patterns to
files:Verified with
npm pack --dry-run— the tarball no longer contains any
.test.*,.spec.*,__tests__/, or__snapshots__/entries. -
Updated dependencies [
68f91de]:- @clearcms/db@0.1.2
- @clearcms/index@0.2.3