Skip to content

Add test for composer.json in sub-extensions #6

@TravisCarden

Description

@TravisCarden

The Drupal.org Composer service handles sub-extensions and their dependencies separately such that drupal/example_submodule can have different dependencies from drupal/example. Indeed, if a submodule requires packages that are not technically required to use the base extension, Acquia considers this a best practice so as not to require users to deploy unused code. Thus, since the Drupal.org Composer service dynamically creates an implicit composer.json for them anyway, sub-extensions should take ownership of their metadata and dependencies and create their own physical composer.json. Create a test for this.

  • Add a warning for sub-extensions that don't have their own composer.json.
  • Document the feature.
  • Link to the documentation in the warning message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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