Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By nod_ on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
9.3.x
Introduced in version:
9.3.0
Issue links:
Description:
For core development we are now using package.json and a custom build step to add third party scripts to Drupal core. This is to make it easier to stay up to date and simplify the updating process. Currently all libraries are managed this way, except CKEditor and modernizr, which requires custom builds that can't be easily automated at the moment.
To update a library
Before
- Check each library page to see if a new version is available
- download the latest library, from github, npm, or the library site
- Update core and create a patch
After
Execute the following commands:
- run
yarn outdated
to check what needs to be updated - run
yarn upgrade <library>
for each library that needs updating - run
yarn vendor-update
which will update the library in thecore/assets/vendor
folder, as well as thecore.libraries.yml
entry. - and submit the change to the core queue