Skip to content

Add npm workspace deduplication utility and CI check #1997

@coderabbitai

Description

@coderabbitai

Context

In PR #1994, we identified that duplicated dependency specifications can occur in the webui workspace when multiple node_modules directories exist. Currently, this requires manual intervention to resolve.

Reference: #1994 (comment)

Proposed Solution

  1. Add utility task to taskfiles/deps/lock.yaml:

    • Create a task that automates the npm workspace deduplication process
    • Commands to include:
      cd components/webui
      rm -rf node_modules server/node_modules
      npm dedupe
      npm install --workspaces
  2. Add CI check:

    • Implement a CI workflow check to detect duplicated dependency specifications
    • This should fail the build if duplicates are found, preventing the issue from reoccurring

Benefits

  • Prevents manual intervention for dependency conflicts
  • Ensures consistent dependency resolution across the workspace
  • Catches duplication issues early in CI before they reach production

Related

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions