Saturday, 20 April 2019

How tell composer to install a module in a custom path?

I have tried to install a Drupal module with the composer in a specific path,

I check these links but I can't figure out that.

Please check this and tell me what is wrong and what I should do?

What do I want?

Install the Signature field module in the modules/patched directory.

this is part of my composer.json file that is related to this issue.

"require": {
    "composer/installers": "^1.0.24",
    "drupal/signature_field": "^1.0@RC",
},

    "installer-paths": {
        "core": ["type:drupal-core"],
        "modules/contrib/{$name}": ["type:drupal-module"],
        "profiles/contrib/{$name}": ["type:drupal-profile"],
        "themes/contrib/{$name}": ["type:drupal-theme"],
        "drush/contrib/{$name}": ["type:drupal-drush"],
        "modules/custom/{$name}": ["type:drupal-custom-module"],
        "themes/custom/{$name}": ["type:drupal-custom-theme"],
        "modules/patched/{$name}": ["type:drupal-patched-module"]
    },
    "patches": {
        "drupal/signature_field": {
            "Drupal Signature Field fix multi feilds": "modules/patched/signature_field/signature_field-2993223-08.patch"     
        }
    }
},

At the end I do composer install and composer update, but the module doesn't transfer to the folder that I want



from How tell composer to install a module in a custom path?

No comments:

Post a Comment