Closed (fixed)
Project:
Clipboard.js
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Jul 2022 at 09:33 UTC
Updated:
13 Feb 2025 at 12:39 UTC
Jump to comment: Most recent
When using asset-packagist for downloading clipboard,js library, the package is downloaded in `libraries/clipboard` folder instead of `libraries/clipboard.js`.
Here is a patch to change the library path.
| Comment | File | Size | Author |
|---|---|---|---|
| change-library-path.patch | 410 bytes | sharique |
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
Comment #2
sanduhrsWe might be able to leverage hook_library_info_alter to support the old and the new path for backwards compatibility:
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...
Comment #3
david.muffley commentedSimilarly when installing the library through an explicit composer package it goes into
/libraries/clipboardjs(no dot).Edited incorrect composerjs to correct clipboardjs.
Comment #4
tim-dielsI'm much more a fan of using the asset-packagist then using the merge plugin. So if someone has time and interest to fix this, would be great.
Comment #5
tim-dielsLets support this in 2.1.x
Comment #8
tim-dielsComment #11
tim-diels