Wireit Dependencies Set
This commit is contained in:
parent
75ade33dbf
commit
d015950e86
|
@ -48,7 +48,7 @@ function updatePackageFile( packagePath, packageFile ) {
|
|||
*
|
||||
* @param {string} packageFile The package file to read file outputs from.
|
||||
*
|
||||
* @return {Array.<string>} The globs describing the package's files.
|
||||
* @return {Object.<string, Array.<string>} The include and exclude globs describing the package's files.
|
||||
*/
|
||||
function getPackageOutputs( packageFile ) {
|
||||
// All of the outputs should be relative to the package's path instead of the monorepo root.
|
||||
|
@ -56,7 +56,11 @@ function getPackageOutputs( packageFile ) {
|
|||
const basePath = path.join( 'node_modules', packageFile.name );
|
||||
|
||||
// We're going to construct the package outputs according to the same rules that NPM follows when packaging.
|
||||
const packageOutputs = [];
|
||||
// Note: In order to work with wireit optimally we need to put the excludes at the very end of the list.
|
||||
const packageOutputs = {
|
||||
include: [],
|
||||
exclude: [],
|
||||
};
|
||||
|
||||
// Packages that explicitly declare their outputs have made this easy for us.
|
||||
if ( packageFile.files ) {
|
||||
|
@ -66,28 +70,32 @@ function getPackageOutputs( packageFile ) {
|
|||
let relativeGlob = fileGlob;
|
||||
|
||||
// Negation globs need to move the exclamation point to the beginning of the output glob.
|
||||
let negation = relativeGlob.startsWith( '!' ) ? '!' : '';
|
||||
let negation = relativeGlob.startsWith( '!' ) ? true : false;
|
||||
if ( negation ) {
|
||||
relativeGlob = relativeGlob.substring( 1 );
|
||||
}
|
||||
|
||||
// Normalize leading slashes.
|
||||
// Remove leading slashes.
|
||||
if ( relativeGlob.startsWith( '/' ) ) {
|
||||
relativeGlob = relativeGlob.substring( 1 );
|
||||
}
|
||||
|
||||
// Now we can construct a glob relative to the package directory.
|
||||
packageOutputs.push( `${ negation }${ basePath }/${ relativeGlob }` );
|
||||
if ( negation ) {
|
||||
packageOutputs.exclude.push( `!${ basePath }/${ relativeGlob }` );
|
||||
} else {
|
||||
packageOutputs.include.push( `${ basePath }/${ relativeGlob }` );
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// This is a VERY heavy-handed approach and will simply include every file in the package directory.
|
||||
packageOutputs.push( `${ basePath }/**/*` );
|
||||
packageOutputs.include.push( `${ basePath }/` );
|
||||
|
||||
// We can make this a little bit smarter by ignoring some common directories.
|
||||
packageOutputs.push( `!${ basePath }/node_modules` );
|
||||
packageOutputs.push( `!${ basePath }/.git` );
|
||||
packageOutputs.push( `!${ basePath }/.svn` );
|
||||
packageOutputs.push( `!${ basePath }/src` ); // We generally name our source directories "src" and don't need source files.
|
||||
packageOutputs.exclude.push( `!${ basePath }/node_modules` );
|
||||
packageOutputs.exclude.push( `!${ basePath }/.git` );
|
||||
packageOutputs.exclude.push( `!${ basePath }/.svn` );
|
||||
packageOutputs.exclude.push( `!${ basePath }/src` ); // We generally name our source directories "src" and don't need source files.
|
||||
}
|
||||
|
||||
return packageOutputs;
|
||||
|
@ -204,7 +212,10 @@ function updateWireitDependencies( lockPackages, context ) {
|
|||
// wireit and it will fingerprint them for us.
|
||||
for ( const linkedPackage of linkedPackages ) {
|
||||
const packageOutputs = getPackageOutputs( linkedPackage );
|
||||
packageFile.wireit.dependencyOutputs.files.push( ...packageOutputs );
|
||||
// Put includes at the front and excludes at the end. This is important because otherwise
|
||||
// wireit will blow the call stack due to the way it handles negation globs.
|
||||
packageFile.wireit.dependencyOutputs.files.unshift( ...packageOutputs.include );
|
||||
packageFile.wireit.dependencyOutputs.files.push( ...packageOutputs.exclude );
|
||||
|
||||
context.log(
|
||||
`[wireit][${ packageFile.name }] Added '${ linkedPackage.name }' Outputs`
|
||||
|
|
|
@ -91,7 +91,20 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/e2e-environment/",
|
||||
"node_modules/@woocommerce/e2e-utils/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/e2e-utils/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-utils/.git",
|
||||
"!node_modules/@woocommerce/e2e-utils/.svn",
|
||||
"!node_modules/@woocommerce/e2e-utils/src",
|
||||
"!node_modules/@woocommerce/e2e-environment/node_modules",
|
||||
"!node_modules/@woocommerce/e2e-environment/.git",
|
||||
"!node_modules/@woocommerce/e2e-environment/.svn",
|
||||
"!node_modules/@woocommerce/e2e-environment/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,7 +114,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -147,7 +147,20 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -93,7 +93,10 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -137,7 +137,25 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/expression-evaluation/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/expression-evaluation/node_modules",
|
||||
"!node_modules/@woocommerce/expression-evaluation/.git",
|
||||
"!node_modules/@woocommerce/expression-evaluation/.svn",
|
||||
"!node_modules/@woocommerce/expression-evaluation/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -221,7 +221,45 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/date/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/currency/",
|
||||
"node_modules/@woocommerce/csv-export/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/csv-export/node_modules",
|
||||
"!node_modules/@woocommerce/csv-export/.git",
|
||||
"!node_modules/@woocommerce/csv-export/.svn",
|
||||
"!node_modules/@woocommerce/csv-export/src",
|
||||
"!node_modules/@woocommerce/currency/node_modules",
|
||||
"!node_modules/@woocommerce/currency/.git",
|
||||
"!node_modules/@woocommerce/currency/.svn",
|
||||
"!node_modules/@woocommerce/currency/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/date/node_modules",
|
||||
"!node_modules/@woocommerce/date/.git",
|
||||
"!node_modules/@woocommerce/date/.svn",
|
||||
"!node_modules/@woocommerce/date/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -106,7 +106,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,7 +109,20 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/number/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/number/node_modules",
|
||||
"!node_modules/@woocommerce/number/.git",
|
||||
"!node_modules/@woocommerce/number/.svn",
|
||||
"!node_modules/@woocommerce/number/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -146,7 +146,40 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -138,7 +138,30 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/date/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/date/node_modules",
|
||||
"!node_modules/@woocommerce/date/.git",
|
||||
"!node_modules/@woocommerce/date/.svn",
|
||||
"!node_modules/@woocommerce/date/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,7 +116,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -156,7 +156,25 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,7 +113,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,7 +99,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -115,7 +115,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -91,7 +91,10 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -119,7 +119,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -108,7 +108,10 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,7 +105,15 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -142,7 +142,40 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/explat/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/explat/node_modules",
|
||||
"!node_modules/@woocommerce/explat/.git",
|
||||
"!node_modules/@woocommerce/explat/.svn",
|
||||
"!node_modules/@woocommerce/explat/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -194,7 +194,70 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/number/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/customer-effort-score/",
|
||||
"node_modules/@woocommerce/currency/",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"node_modules/@woocommerce/block-templates/",
|
||||
"node_modules/@woocommerce/admin-layout/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/admin-layout/node_modules",
|
||||
"!node_modules/@woocommerce/admin-layout/.git",
|
||||
"!node_modules/@woocommerce/admin-layout/.svn",
|
||||
"!node_modules/@woocommerce/admin-layout/src",
|
||||
"!node_modules/@woocommerce/block-templates/node_modules",
|
||||
"!node_modules/@woocommerce/block-templates/.git",
|
||||
"!node_modules/@woocommerce/block-templates/.svn",
|
||||
"!node_modules/@woocommerce/block-templates/src",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/currency/node_modules",
|
||||
"!node_modules/@woocommerce/currency/.git",
|
||||
"!node_modules/@woocommerce/currency/.svn",
|
||||
"!node_modules/@woocommerce/currency/src",
|
||||
"!node_modules/@woocommerce/customer-effort-score/node_modules",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.git",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.svn",
|
||||
"!node_modules/@woocommerce/customer-effort-score/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/number/node_modules",
|
||||
"!node_modules/@woocommerce/number/.git",
|
||||
"!node_modules/@woocommerce/number/.svn",
|
||||
"!node_modules/@woocommerce/number/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -95,7 +95,10 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -274,9 +274,7 @@
|
|||
"client/**/*.{js,jsx,ts,tsx}",
|
||||
"client/**/*.scss"
|
||||
],
|
||||
"output": [
|
||||
"../woocommerce/assets/client"
|
||||
],
|
||||
"output": [],
|
||||
"dependencies": [
|
||||
"dependencyOutputs"
|
||||
]
|
||||
|
@ -290,8 +288,109 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"node_modules/@woocommerce/tracks/",
|
||||
"node_modules/@woocommerce/product-editor/",
|
||||
"node_modules/@woocommerce/onboarding/",
|
||||
"node_modules/@woocommerce/number/",
|
||||
"node_modules/@woocommerce/notices/",
|
||||
"node_modules/@woocommerce/navigation/",
|
||||
"node_modules/@woocommerce/internal-style-build/",
|
||||
"node_modules/@woocommerce/internal-js-tests/",
|
||||
"node_modules/@woocommerce/explat/",
|
||||
"node_modules/@woocommerce/experimental/",
|
||||
"node_modules/@woocommerce/eslint-plugin/configs",
|
||||
"node_modules/@woocommerce/eslint-plugin/rules",
|
||||
"node_modules/@woocommerce/eslint-plugin/index.js",
|
||||
"node_modules/@woocommerce/dependency-extraction-webpack-plugin/",
|
||||
"node_modules/@woocommerce/date/",
|
||||
"node_modules/@woocommerce/data/",
|
||||
"node_modules/@woocommerce/customer-effort-score/",
|
||||
"node_modules/@woocommerce/currency/",
|
||||
"node_modules/@woocommerce/csv-export/",
|
||||
"node_modules/@woocommerce/components/",
|
||||
"node_modules/@woocommerce/ai/",
|
||||
"node_modules/@woocommerce/admin-layout/",
|
||||
"node_modules/@woocommerce/admin-e2e-tests/build/",
|
||||
"package.json",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.ts.map",
|
||||
"!node_modules/@woocommerce/admin-e2e-tests/*.tsbuildinfo",
|
||||
"!node_modules/@woocommerce/admin-layout/node_modules",
|
||||
"!node_modules/@woocommerce/admin-layout/.git",
|
||||
"!node_modules/@woocommerce/admin-layout/.svn",
|
||||
"!node_modules/@woocommerce/admin-layout/src",
|
||||
"!node_modules/@woocommerce/ai/node_modules",
|
||||
"!node_modules/@woocommerce/ai/.git",
|
||||
"!node_modules/@woocommerce/ai/.svn",
|
||||
"!node_modules/@woocommerce/ai/src",
|
||||
"!node_modules/@woocommerce/components/node_modules",
|
||||
"!node_modules/@woocommerce/components/.git",
|
||||
"!node_modules/@woocommerce/components/.svn",
|
||||
"!node_modules/@woocommerce/components/src",
|
||||
"!node_modules/@woocommerce/csv-export/node_modules",
|
||||
"!node_modules/@woocommerce/csv-export/.git",
|
||||
"!node_modules/@woocommerce/csv-export/.svn",
|
||||
"!node_modules/@woocommerce/csv-export/src",
|
||||
"!node_modules/@woocommerce/currency/node_modules",
|
||||
"!node_modules/@woocommerce/currency/.git",
|
||||
"!node_modules/@woocommerce/currency/.svn",
|
||||
"!node_modules/@woocommerce/currency/src",
|
||||
"!node_modules/@woocommerce/customer-effort-score/node_modules",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.git",
|
||||
"!node_modules/@woocommerce/customer-effort-score/.svn",
|
||||
"!node_modules/@woocommerce/customer-effort-score/src",
|
||||
"!node_modules/@woocommerce/data/node_modules",
|
||||
"!node_modules/@woocommerce/data/.git",
|
||||
"!node_modules/@woocommerce/data/.svn",
|
||||
"!node_modules/@woocommerce/data/src",
|
||||
"!node_modules/@woocommerce/date/node_modules",
|
||||
"!node_modules/@woocommerce/date/.git",
|
||||
"!node_modules/@woocommerce/date/.svn",
|
||||
"!node_modules/@woocommerce/date/src",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/node_modules",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/.git",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/.svn",
|
||||
"!node_modules/@woocommerce/dependency-extraction-webpack-plugin/src",
|
||||
"!node_modules/@woocommerce/experimental/node_modules",
|
||||
"!node_modules/@woocommerce/experimental/.git",
|
||||
"!node_modules/@woocommerce/experimental/.svn",
|
||||
"!node_modules/@woocommerce/experimental/src",
|
||||
"!node_modules/@woocommerce/explat/node_modules",
|
||||
"!node_modules/@woocommerce/explat/.git",
|
||||
"!node_modules/@woocommerce/explat/.svn",
|
||||
"!node_modules/@woocommerce/explat/src",
|
||||
"!node_modules/@woocommerce/internal-js-tests/node_modules",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.git",
|
||||
"!node_modules/@woocommerce/internal-js-tests/.svn",
|
||||
"!node_modules/@woocommerce/internal-js-tests/src",
|
||||
"!node_modules/@woocommerce/internal-style-build/node_modules",
|
||||
"!node_modules/@woocommerce/internal-style-build/.git",
|
||||
"!node_modules/@woocommerce/internal-style-build/.svn",
|
||||
"!node_modules/@woocommerce/internal-style-build/src",
|
||||
"!node_modules/@woocommerce/navigation/node_modules",
|
||||
"!node_modules/@woocommerce/navigation/.git",
|
||||
"!node_modules/@woocommerce/navigation/.svn",
|
||||
"!node_modules/@woocommerce/navigation/src",
|
||||
"!node_modules/@woocommerce/notices/node_modules",
|
||||
"!node_modules/@woocommerce/notices/.git",
|
||||
"!node_modules/@woocommerce/notices/.svn",
|
||||
"!node_modules/@woocommerce/notices/src",
|
||||
"!node_modules/@woocommerce/number/node_modules",
|
||||
"!node_modules/@woocommerce/number/.git",
|
||||
"!node_modules/@woocommerce/number/.svn",
|
||||
"!node_modules/@woocommerce/number/src",
|
||||
"!node_modules/@woocommerce/onboarding/node_modules",
|
||||
"!node_modules/@woocommerce/onboarding/.git",
|
||||
"!node_modules/@woocommerce/onboarding/.svn",
|
||||
"!node_modules/@woocommerce/onboarding/src",
|
||||
"!node_modules/@woocommerce/product-editor/node_modules",
|
||||
"!node_modules/@woocommerce/product-editor/.git",
|
||||
"!node_modules/@woocommerce/product-editor/.svn",
|
||||
"!node_modules/@woocommerce/product-editor/src",
|
||||
"!node_modules/@woocommerce/tracks/node_modules",
|
||||
"!node_modules/@woocommerce/tracks/.git",
|
||||
"!node_modules/@woocommerce/tracks/.svn",
|
||||
"!node_modules/@woocommerce/tracks/src"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -50,10 +50,7 @@
|
|||
"js/**/*.js",
|
||||
"css/**/*.scss"
|
||||
],
|
||||
"output": [
|
||||
"../../assets/css",
|
||||
"../../assets/js"
|
||||
],
|
||||
"output": [],
|
||||
"dependencies": [
|
||||
"dependencyOutputs"
|
||||
]
|
||||
|
@ -61,8 +58,8 @@
|
|||
"dependencyOutputs": {
|
||||
"allowUsuallyExcludedPaths": true,
|
||||
"files": [
|
||||
"required"
|
||||
"package.json"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -13,10 +13,6 @@
|
|||
"build": "pnpm --if-present --filter=\"$npm_package_name...\" run build:project",
|
||||
"build:zip": "./bin/build-zip.sh",
|
||||
"changelog": "composer exec -- changelogger",
|
||||
"lint": "pnpm --if-present run '/^lint:lang:.*$/'",
|
||||
"lint:fix": "pnpm --if-present run '/^lint:fix:lang:.*$/'",
|
||||
"lint:fix:lang:php": "composer run-script phpcbf",
|
||||
"lint:lang:php": "composer run-script phpcs",
|
||||
"docker:down": "pnpm exec wc-e2e docker:down",
|
||||
"docker:ssh": "pnpm exec wc-e2e docker:ssh",
|
||||
"docker:up": "pnpm exec wc-e2e docker:up",
|
||||
|
@ -34,6 +30,10 @@
|
|||
"env:test:cot": "WP_ENV_LIFECYCLE_SCRIPT_AFTER_START='ENABLE_HPOS=1 ./tests/e2e-pw/bin/test-env-setup.sh' && ENABLE_HPOS=1 pnpm run env:dev",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"postinstall": "composer install",
|
||||
"lint": "pnpm --if-present run '/^lint:lang:.*$/'",
|
||||
"lint:fix": "pnpm --if-present run '/^lint:fix:lang:.*$/'",
|
||||
"lint:fix:lang:php": "composer run-script phpcbf",
|
||||
"lint:lang:php": "composer run-script phpcs",
|
||||
"lint:php": "composer run-script phpcs",
|
||||
"lint:php:changes": "composer run-script lint",
|
||||
"lint:php:changes:branch": "composer run-script lint-branch",
|
||||
|
|
|
@ -185,16 +185,6 @@ importers:
|
|||
version: 0.14.1
|
||||
|
||||
packages/js/admin-layout:
|
||||
dependencies:
|
||||
'@woocommerce/components':
|
||||
specifier: workspace:*
|
||||
version: link:../components
|
||||
'@wordpress/components':
|
||||
specifier: wp-6.0
|
||||
version: 19.8.5(@types/react@17.0.71)(react-dom@17.0.2)(react-with-direction@1.4.0)(react@17.0.2)
|
||||
'@wordpress/element':
|
||||
specifier: wp-6.0
|
||||
version: 4.4.1
|
||||
devDependencies:
|
||||
'@types/react':
|
||||
specifier: ^17.0.71
|
||||
|
@ -17100,7 +17090,7 @@ packages:
|
|||
dependencies:
|
||||
'@babel/runtime': 7.23.5
|
||||
'@testing-library/dom': 8.11.3
|
||||
'@types/react-dom': 18.0.10
|
||||
'@types/react-dom': 17.0.25
|
||||
react: 17.0.2
|
||||
react-dom: 17.0.2(react@17.0.2)
|
||||
|
||||
|
@ -17897,7 +17887,7 @@ packages:
|
|||
dependencies:
|
||||
'@types/react': 17.0.71
|
||||
'@types/wordpress__blocks': 11.0.9(react-dom@17.0.2)(react@17.0.2)
|
||||
'@types/wordpress__components': 23.0.10(react-dom@17.0.2)(react@17.0.2)
|
||||
'@types/wordpress__components': 19.10.5(react-dom@17.0.2)(react@17.0.2)
|
||||
'@types/wordpress__data': 6.0.2
|
||||
'@types/wordpress__keycodes': 2.3.1
|
||||
'@wordpress/element': 4.4.1
|
||||
|
@ -17913,7 +17903,7 @@ packages:
|
|||
resolution: {integrity: sha512-8BcT3CUxHt73CepaLtQHAhA7uBhDOK9x5HJOAxzV+Bl37W04u4jSNulXxwX/6tI7t7Knux5lnN9bvKf/1sg+Rw==}
|
||||
dependencies:
|
||||
'@types/react': 17.0.71
|
||||
'@types/wordpress__components': 23.0.10(react-dom@17.0.2)(react@17.0.2)
|
||||
'@types/wordpress__components': 19.10.5(react-dom@17.0.2)(react@17.0.2)
|
||||
'@wordpress/element': 4.4.1
|
||||
transitivePeerDependencies:
|
||||
- react
|
||||
|
@ -17971,6 +17961,7 @@ packages:
|
|||
transitivePeerDependencies:
|
||||
- react
|
||||
- react-dom
|
||||
dev: true
|
||||
|
||||
/@types/wordpress__compose@4.0.1:
|
||||
resolution: {integrity: sha512-2Czdu9Nyhxn0R7lSl+LwVyzHF+xgP6nuikRDt26VJPLAZhmgE9c/lmB8v8xiby8UGVWj6oKGQDmKda8kvoBWBQ==}
|
||||
|
@ -20777,12 +20768,12 @@ packages:
|
|||
'@wordpress/api-fetch': 6.3.1
|
||||
'@wordpress/blocks': 11.21.0(react@17.0.2)
|
||||
'@wordpress/data': 6.6.1(react@17.0.2)
|
||||
'@wordpress/deprecated': 3.41.0
|
||||
'@wordpress/deprecated': 3.6.1
|
||||
'@wordpress/element': 4.4.1
|
||||
'@wordpress/html-entities': 3.24.0
|
||||
'@wordpress/i18n': 4.47.0
|
||||
'@wordpress/html-entities': 3.6.1
|
||||
'@wordpress/i18n': 4.6.1
|
||||
'@wordpress/is-shallow-equal': 4.24.0
|
||||
'@wordpress/url': 3.13.0
|
||||
'@wordpress/url': 3.7.1
|
||||
equivalent-key-map: 0.2.2
|
||||
lodash: 4.17.21
|
||||
memize: 1.1.0
|
||||
|
|
Loading…
Reference in New Issue