Update @woocommerce/components
This commit is contained in:
22
.pnpmfile.cjs
Normal file
22
.pnpmfile.cjs
Normal file
@@ -0,0 +1,22 @@
|
||||
function readPackage(pkg) {
|
||||
// Resolve @wordpress/* dependencies of @woocommerce packages to those used by MailPoet.
|
||||
// This avoids their duplication and downgrading due to @woocommerce pinning them to wp-6.0.
|
||||
// This should be removed once we adopt similar pinning strategy and use dependency extraction.
|
||||
// See: https://github.com/woocommerce/woocommerce/pull/37034
|
||||
if (pkg.name?.startsWith('@woocommerce/')) {
|
||||
pkg.dependencies = Object.fromEntries(
|
||||
Object.entries(pkg.dependencies).map(([name, version]) =>
|
||||
name.startsWith('@wordpress/') || name.startsWith('@types/wordpress__')
|
||||
? [name, '*']
|
||||
: [name, version],
|
||||
),
|
||||
);
|
||||
}
|
||||
return pkg;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
hooks: {
|
||||
readPackage,
|
||||
},
|
||||
};
|
||||
@@ -34,7 +34,7 @@
|
||||
"@mailpoet/components": "workspace:^",
|
||||
"@marvelapp/react-ab-test": "^3.1.0",
|
||||
"@types/select2": "^4.0.55",
|
||||
"@woocommerce/components": "^10.0.0",
|
||||
"@woocommerce/components": "^12.1.0",
|
||||
"@woocommerce/currency": "^4.2.0",
|
||||
"@woocommerce/date": "^4.2.0",
|
||||
"@wordpress/a11y": "^3.28.0",
|
||||
|
||||
1076
pnpm-lock.yaml
generated
1076
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user