Skip to content

feat: verify and fix CVE Lite CLI compatibility with NX workspaces #688

@sonukapoor

Description

@sonukapoor

Summary

Verify and document CVE Lite CLI compatibility with NX workspaces, and fix any gaps found.

NX is a widely used monorepo build system for JavaScript and TypeScript projects. NX workspaces come in two forms:

Integrated repos - single root lockfile (package-lock.json, pnpm-lock.yaml, or yarn.lock) with all dependencies managed at the root. CVE Lite CLI likely works here already.

Package-based repos - each project under apps/ or libs/ has its own package.json and potentially its own lockfile. CVE Lite CLI's --search-depth flag may or may not discover these depending on the workspace structure.

What needs investigation

  • Does cve-lite . --search-depth 4 correctly discover lockfiles nested inside NX apps/ and libs/ directories?
  • Does CVE Lite CLI handle the case where there is a root lockfile AND nested lockfiles (mixed)?
  • Does the output correctly label findings by workspace project?
  • Does --search-depth need to be higher for deeply nested NX structures?

Acceptance criteria

  • Run CVE Lite CLI against a real NX workspace (integrated and package-based)
  • Document the recommended scan command for NX in the docs
  • Fix any lockfile discovery gaps found during testing
  • Add an NX example under examples/ if a gap is fixed

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions