Composer.json has incorrect type.

Created on 7 April 2024, 9 months ago

Problem/Motivation

Composer type is module and not drupal-module which causes the package to be installed in the wrong directory.

Steps to reproduce

Install via composer.

Proposed resolution

Change type in composer.json file.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States bamberjp

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

Comments & Activities

  • Issue created by @bamberjp
  • 🇺🇸United States bamberjp

    Temporary Workaround

    composer require oomphinc/composer-installers-extender
    

    Then in composer.json,

    "extra": {
            ...
            "installer-types": ["module"],
            "installer-paths": {
                "web/core": ["type:drupal-core"],
                "web/libraries/{$name}": ["type:drupal-library"],
                "web/modules/contrib/{$name}": ["type:drupal-module"],
                "web/profiles/contrib/{$name}": ["type:drupal-profile"],
                "web/themes/contrib/{$name}": ["type:drupal-theme"],
                "drush/Commands/contrib/{$name}": ["type:drupal-drush"],
                "web/modules/contrib/{$name}": ["type:module"]
            },
            ...
        }
    
  • Assigned to kishan@lnwebworks
  • Status changed to Needs review 2 days ago
  • 🇮🇳India kishan@lnwebworks

    Pushed the changes in the new release tag 1.0.2
    Now it's installed in the correct directory.
    @bamberjp
    Please review it once.

Production build 0.71.5 2024