Problem/Motivation

It's necessary to add a composer.json file and include all the required information.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Andrii Momotov created an issue. See original summary.

andrii momotov’s picture

Assigned: Unassigned » andrii momotov

andrii momotov’s picture

Added composer.json file. Please review.
Thanks!

andrii momotov’s picture

Assigned: andrii momotov » Unassigned
Status: Needs work » Needs review
jasjeet kaur brar’s picture

Hiiee @Andrii, Your composer.json file looks good, but there are a couple of optional additions you might consider.
"require": {
"drupal/core": "^9"
}
Drupal 8/9 modules generally follow PSR-4 autoloading standards. You can configure autoload settings in your composer.json file. For example:

"autoload": {
"psr-4": {
"Drupal\\taxonomy_protect\\": "src/"
}
}

But still good to go

jasjeet kaur brar’s picture

Status: Needs review » Reviewed & tested by the community

  • jrb committed 8610077f on 2.1.x
    Issue #3426889: Add composer.json file
    
jrb’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.