Skip to content

Support headless dev install driven by repos.json #97

@taylortom

Description

@taylortom

Feature description

Two related limitations currently make --dev installs unusable in forks with multi-org workspace packages and impossible to run without the UI:

  1. --dev has no effect in headless mode. bin/install.js explicitly logs "IMPORTANT: dev mode flag currently has no effect when running in headless mode" and falls through to a regular install. This prevents scripting, CI, or agent-driven dev setups.
  2. cloneRepo hardcodes the adapt-security GitHub org. Any workspace module from another org (e.g. @cgkineo/*, adaptlearning/adapt-cli, cgkineo/adapt-schemas) cannot be cloned by the dev install — cloneRepo.js builds https://github.com/adapt-security/${repo}.git unconditionally.

Proposed solution

Introduce a repos.json config file at the umbrella root that enumerates workspace packages and their git URLs. When install --dev runs headlessly (or in the UI), read this config to drive installLocalModules. Make cloneRepo accept an optional explicit url so callers can override the hardcoded base. Backward compatible — falls back to existing behaviour when no config / no url is provided.

Can you work on this feature?

  • I can contribute (PR to follow)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew or additional functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions