Exclude e2e infrastructure from the zip build process

Use the new "install:no-e2e" script instead of "npm install"
for building the zip file.
This commit is contained in:
Nestor Soriano 2021-01-27 16:59:31 +01:00
parent 1d3e83ff55
commit 1b04bedd3d
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
/** @format */
const { useE2EEsLintConfig } = require( '@woocommerce/e2e-environment' );
module.exports = useE2EEsLintConfig( {
module.exports = {
root: true,
env: {
browser: true,
@ -29,4 +28,4 @@ module.exports = useE2EEsLintConfig( {
jsx: true
}
},
} );
};

View File

@ -10,7 +10,7 @@ rm -rf "$BUILD_PATH"
mkdir -p "$DEST_PATH"
echo "Installing PHP and JS dependencies..."
npm install
npm run install:no-e2e
composer install || exit "$?"
echo "Running JS Build..."
npm run build:core || exit "$?"