From the CMA project root, bump the version of @scandipwa/magento-scripts
to the latest release and install it:
Yarn (recommended)
yarn add @scandipwa/magento-scripts@latest
NPM
npm install @scandipwa/magento-scripts@latest
<aside> ➡️ This will update the packages of Create Magento App. Find more information here.
</aside>
We commit to keeping the breaking changes to a minimum. However, you should check if there are any migration instructions in the changelog and follow them to adapt to a new version.
Restart the compilation script and verify that everything is working as expected.
In this example, you will upgrade Magento v2.4.3 Community edition to v2.4.4 Enterprise edition
First, you will need to upgrade the version of Magento in the composer.json file in the root dir manually as the following image, or using the following command:
composer require magento/product-enterprise-edition=2.4.4 --no-update
make sure you deleted the older version of magneto using the following command:
composer remove magento/product-community-edition --no-update
Then you will need to run the following commands in the root dir of the project using CLI:
magento composer:update -W
and then
magento setup:upgrade
or m s:up
and then
magento setup:di:compile
or m s:d:c
<aside> ➡️ You will need to upgrade the repository of the original extension to the enterprise edition as well and make sure you update the auth.json file with the correct keys.
</aside>
Second, you will need to upgrade yarn add @scandipwa/magento-scripts@latest
in the dependencies of package.json file in the root dir.
Last step, open cma.js
file in the root dir and change the edition to enterprise