drupflare/worker - v1.0.0
    Preparing search index...

    Function planInstall

    • Builds the install plan for one module: itself plus its catalog dependencies, in mount order.

      DEPENDENCIES FIRST, and that ordering is load-bearing rather than tidy. lazy-fs merges layers BEFORE node creation and a LATER layer overrides an earlier one on the same path, so the requested module has to come last or a dependency could shadow it.

      Refuses rather than guesses in four cases, because each would otherwise produce a site that mounts and then breaks: a module absent from the catalog, a dependency absent from the catalog, and a pack built against a core version this site does not run. The core check uses the constraint checker in composer-constraint.ts, so an unjudgeable constraint is a refusal too -- unknown is not a yes.

      Parameters

      • catalog: Catalog
      • name: string
      • shippedCore: string
      • runningPhp: string
      • seen: Set<string> = ...
      • capabilities: RuntimeCapabilities = SHIPPED_CAPABILITIES

      Returns InstallPlan