Skip to content
This repository was archived by the owner on May 9, 2026. It is now read-only.

@clearcms/admin@0.4.2

Choose a tag to compare

@github-actions github-actions released this 07 May 04:23
a0fa1bd

Patch Changes

  • 3821bc7 Thanks @slavasolutions! - Stop publishing test files in the @clearcms/admin npm tarball (closes #88).

    The files field in apps/admin/package.json listed src whole, so
    every .test.ts/.test.tsx, __tests__/, and __snapshots__/ under
    src/ shipped to npm. The test files import vitest, which is a
    devDependency — Vite's dependency scanner walks the published tree on
    admin boot, fails to resolve vitest, 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 whole src/ umbrella.

    This change adds explicit negation patterns to files:

    "!**/*.test.ts", "!**/*.test.tsx",
    "!**/*.spec.ts", "!**/*.spec.tsx",
    "!**/__tests__/**",
    "!**/__snapshots__/**",
    "!src/test/**"

    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