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 outdatedto check what needs to be updated - run
yarn upgrade <library>for each library that needs updating - run
yarn vendor-updatewhich will update the library in thecore/assets/vendorfolder, as well as thecore.libraries.ymlentry. - and submit the change to the core queue