Package builds: avoid building dependency-extraction-webpack-plugin (https://github.com/woocommerce/woocommerce-admin/pull/5598)

* fix starter pack

* fixes

* revert lock

* fixup package.json
This commit is contained in:
Paul Sealock 2020-11-12 22:31:18 +13:00 committed by GitHub
parent 25c2841a20
commit 4e785e30a7
8 changed files with 30 additions and 16 deletions

View File

@ -263,6 +263,11 @@ if ( files.length ) {
} else {
process.stdout.write( chalk.inverse( '>> Building packages \n' ) );
buildDependencyExtractionAssets();
getPackages().forEach( buildPackage );
getPackages()
.filter(
( package ) =>
! /dependency-extraction-webpack-plugin/.test( package )
)
.forEach( buildPackage );
process.stdout.write( '\n' );
}

View File

@ -1,3 +0,0 @@
{
"extends": [ "plugin:@woocommerce/eslint-plugin/recommended" ]
}

View File

@ -0,0 +1,12 @@
module.exports = {
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
rules: {
// temporary conversion to warnings until the below are all handled.
'@wordpress/i18n-translator-comments': 'warn',
'@wordpress/valid-sprintf': 'warn',
'jsdoc/check-tag-names': [
'error',
{ definedTags: [ 'jest-environment' ] },
],
},
};

View File

@ -0,0 +1 @@
"@wordpress/prettier-config"

View File

@ -22,6 +22,6 @@
"devDependencies": {
"@wordpress/scripts": "^12.2.1",
"@woocommerce/eslint-plugin": "1.0.0-beta.0",
"@woocommerce/dependency-extraction-webpack-plugin": "1.0.0-beta.0"
"@woocommerce/dependency-extraction-webpack-plugin": "1.0.0"
}
}

View File

@ -9,7 +9,8 @@ const files = [
'_webpack.config.js',
'_main.php',
'_package.json',
'._eslintrc',
'._eslintrc.js',
'._prettierrc.json',
];
const maybeThrowError = ( error ) => {
if ( error ) throw error;

View File

@ -68,7 +68,7 @@
"@testing-library/jest-dom": "5.11.4",
"@testing-library/react": "11.1.1",
"@testing-library/react-hooks": "3.4.2",
"@testing-library/user-event": "12.2.2",
"@testing-library/user-event": "12.1.10",
"@woocommerce/components": "file:packages/components",
"@woocommerce/csv-export": "file:packages/csv-export",
"@woocommerce/currency": "file:packages/currency",
@ -7640,9 +7640,9 @@
}
},
"node_modules/@testing-library/user-event": {
"version": "12.2.2",
"resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.2.2.tgz",
"integrity": "sha512-mTYL9LrwiSeyorStUOMuRGQDn1ca40tIhuv//o/K3lY8wBEp+9Im90MFVx5i3u7zCPmavn3uWZs/10chsbI8Tg==",
"version": "12.1.10",
"resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.1.10.tgz",
"integrity": "sha512-StlNdKHp2Rpb7yrny/5/CGpz8bR3jLa1Ge59ODGU6TmAhkrxSpvR6tCD1gaMFkkjEUWkmmye8BaXsZPcaiJ6Ug==",
"dev": true,
"dependencies": {
"@babel/runtime": "^7.10.2"
@ -46230,9 +46230,9 @@
}
},
"@testing-library/user-event": {
"version": "12.2.2",
"resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.2.2.tgz",
"integrity": "sha512-mTYL9LrwiSeyorStUOMuRGQDn1ca40tIhuv//o/K3lY8wBEp+9Im90MFVx5i3u7zCPmavn3uWZs/10chsbI8Tg==",
"version": "12.1.10",
"resolved": "https://registry.npmjs.org/@testing-library/user-event/-/user-event-12.1.10.tgz",
"integrity": "sha512-StlNdKHp2Rpb7yrny/5/CGpz8bR3jLa1Ge59ODGU6TmAhkrxSpvR6tCD1gaMFkkjEUWkmmye8BaXsZPcaiJ6Ug==",
"dev": true,
"requires": {
"@babel/runtime": "^7.10.2"

View File

@ -16,9 +16,7 @@
"bugs": {
"url": "https://github.com/woocommerce/woocommerce-admin/issues"
},
"main": "build/index.js",
"module": "build-module/index.js",
"react-native": "src/index",
"main": "src/index.js",
"dependencies": {
"@wordpress/dependency-extraction-webpack-plugin": "^2.8.0"
},