We want a single source of truth for Magento driver versions to simplify version updates and to prevent version drift. To do this, we need a general entrypoint to the driver packages. At build time, Angular will resolve this entrypoint into the version-specific entrypoint that we defined in daff.json.
{
"exports": {
"./driver/magento/auto": {
"magento-2.4.1": {
"types": "./driver/magento/2.4.1/index.d.ts",
"default": "./fesm2022/daffodil-external-router-driver-magento-2.4.1.mjs"
},
"magento-2.4.2": {
"types": "./driver/magento/2.4.2/index.d.ts",
"default": "./fesm2022/daffodil-external-router-driver-magento-2.4.2.mjs"
},
"magento-2.4.3": {
"types": "./driver/magento/2.4.3/index.d.ts",
"default": "./fesm2022/daffodil-external-router-driver-magento-2.4.3.mjs"
},
"default": {
"types": "./driver/magento/2.4.3/index.d.ts",
"default": "./fesm2022/daffodil-external-router-driver-magento-2.4.3.mjs"
}
}
}
}
Feature description
We want a single source of truth for Magento driver versions to simplify version updates and to prevent version drift. To do this, we need a general entrypoint to the driver packages. At build time, Angular will resolve this entrypoint into the version-specific entrypoint that we defined in
daff.json.To do this:
'@daffodil/external-router/driver/magento/auto'@daffodil/external-router/driver/magento/<verison>'in commerce schematic to import from'@daffodil/external-router/driver/magento/auto'insteadexportsfield inlibs/external-router/package.jsonwith the following:daff.json. All the other versions should not be in the bundle. These tests should be included in the workflow created in Define adaff.jsonthat specifies driver version forangular.json#4437 that validatesdaff.jsonbehavior.Use case
No response
Prior work
Existing draft: #4424
Daffodil version
0.91.0
Additional context
No response