Remove redundant deps on e2e in wc-admin (#39746)

This commit is contained in:
Sam Seay 2023-08-16 08:15:03 +08:00 committed by GitHub
parent a9ac6a43cb
commit 462c690d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 15 deletions

View File

@ -1,14 +1,16 @@
const {
babelConfig: e2eBabelConfig,
} = require( '@woocommerce/e2e-environment' );
module.exports = function ( api ) {
api.cache( true );
return {
...e2eBabelConfig,
presets: [
...e2eBabelConfig.presets,
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
'@babel/preset-typescript',
'@wordpress/babel-preset-default',
],

View File

@ -55,8 +55,6 @@
"@react-spring/web": "^9.4.3",
"@types/wordpress__blocks": "^11.0.7",
"@woocommerce/api": "^0.2.0",
"@woocommerce/e2e-environment": "^0.3.0",
"@woocommerce/e2e-utils": "^0.2.0",
"@wordpress/a11y": "wp-6.0",
"@wordpress/api-fetch": "wp-6.0",
"@wordpress/base-styles": "wp-6.0",

View File

@ -0,0 +1,4 @@
Significance: minor
Type: dev
Remove dependency on e2e-environment and e2e-utils in wc-admin.

View File

@ -2711,12 +2711,6 @@ importers:
'@woocommerce/api':
specifier: ^0.2.0
version: 0.2.0
'@woocommerce/e2e-environment':
specifier: ^0.3.0
version: link:../../packages/js/e2e-environment
'@woocommerce/e2e-utils':
specifier: ^0.2.0
version: link:../../packages/js/e2e-utils
'@wordpress/a11y':
specifier: wp-6.0
version: 3.6.1
@ -41123,7 +41117,7 @@ packages:
sass: 1.60.0
schema-utils: 3.1.1
semver: 7.5.0
webpack: 5.76.3(webpack-cli@4.9.2)
webpack: 5.76.3(webpack-cli@3.3.12)
dev: true
/sass-loader@12.6.0(sass@1.60.0)(webpack@5.76.3):