Modify package.json to still do the lerna bootstrap by default.

Also remove the "install:e2e" script as it's not really useful.
This commit is contained in:
Nestor Soriano 2021-01-27 10:09:28 +01:00
parent f239075b2f
commit bacbd75ac8
1 changed files with 2 additions and 11 deletions

View File

@ -13,10 +13,10 @@
"wp_org_slug": "woocommerce" "wp_org_slug": "woocommerce"
}, },
"scripts": { "scripts": {
"install": " if [ -z \"$SKIP_LERNA_BOOTSTRAP\" ]; then npx lerna bootstrap --hoist; fi",
"check:subset-installed": "npm list --depth 1 install-subset > /dev/null 2>&1", "check:subset-installed": "npm list --depth 1 install-subset > /dev/null 2>&1",
"install:subset-only": "npm install --no-package-lock --no-save install-subset", "install:subset-only": "npm install --no-package-lock --no-save install-subset",
"install:no-e2e": "npm run check:subset-installed --silent || npm run install:subset-only && npx install-subset i no-e2e", "install:no-e2e": "npm run check:subset-installed --silent || npm run install:subset-only && SKIP_LERNA_BOOTSTRAP=true npx install-subset i no-e2e",
"install:e2e": "npx lerna bootstrap --hoist && npm run check:subset-installed --silent || npm run install:subset-only && npx install-subset i e2e",
"build": "./bin/build-zip.sh", "build": "./bin/build-zip.sh",
"build:core": "grunt && npm run makepot", "build:core": "grunt && npm run makepot",
"build:dev": "npm run build:core && npm run build:packages", "build:dev": "npm run build:core && npm run build:packages",
@ -130,15 +130,6 @@
"ie 9" "ie 9"
], ],
"subsets": { "subsets": {
"no-e2e": {
"exclude": [
"@woocommerce/api",
"@woocommerce/e2e-core-tests",
"@woocommerce/e2e-environment",
"@woocommerce/e2e-utils",
"@wordpress/e2e-test-utils"
]
},
"e2e": { "e2e": {
"include": [ "include": [
"@woocommerce/api", "@woocommerce/api",