Add composer.json file in the module

Created on 27 June 2024, 3 days ago

Problem/Motivation

We should add composer.json file in our module root so that it fulfils Drupal standard.

Missing composer.json file will not allow you to add module using vcs, example:

- Add module using vcs path in root composer repository section as shown below.

        "moderation_sidebar": {
            "type": "path",
             "url": "git@git.drupal.org:issue/moderation_sidebar-3448524.git"
        }

- Then run composer require drupal/moderation_sidebar:dev-3448524-d11-ready and you will notice below error.

No valid composer.json was found in any branch or tag of git@git.drupal.org:issue/moderation_sidebar-3448524.git, could not load a package from it.  
✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India deepakkm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024