Remove mariaDB image tag workaround (#44881)

* Remove sed commands in postinstall

* Add changelog
This commit is contained in:
Adrian Moldovan 2024-02-22 19:53:58 +02:00 committed by GitHub
parent 5e0dd983b7
commit 54ad039310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 4 deletions

View File

@ -107,8 +107,7 @@
"wp-env:config": "./bin/wp-env-pre-config.sh",
"watch:build": "pnpm --if-present --workspace-concurrency=Infinity --filter=\"$npm_package_name...\" --parallel '/^watch:build:project:.*$/'",
"watch:build:project": "pnpm --if-present run '/^watch:build:project:.*$/'",
"watch:build:project:bundle": "wireit",
"postinstall": "sed -i.bak \"s|image: 'mariadb'|image: 'mariadb:11.2'|g\" node_modules/@wordpress/env/lib/build-docker-compose-config.js"
"watch:build:project:bundle": "wireit"
},
"devDependencies": {
"@actions/core": "1.10.0",

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
Revert a workaround updating the mariadb image tag in wp-env

View File

@ -21,7 +21,6 @@
"e2e": "pnpm exec wc-e2e test:e2e",
"e2e:debug": "pnpm exec wc-e2e test:e2e-debug",
"e2e:dev": "pnpm exec wc-e2e test:e2e-dev",
"env:force-mariadb": "sed -i.bak \"s|image: 'mariadb'|image: 'mariadb:11.2'|g\" node_modules/@wordpress/env/lib/build-docker-compose-config.js",
"env:destroy": "pnpm wp-env destroy",
"env:dev": "pnpm wp-env start --update",
"env:down": "pnpm wp-env stop",
@ -32,7 +31,7 @@
"env:test": "WP_ENV_LIFECYCLE_SCRIPT_AFTER_START='./tests/e2e-pw/bin/test-env-setup.sh' && pnpm env:dev",
"env:test:cot": "WP_ENV_LIFECYCLE_SCRIPT_AFTER_START='ENABLE_HPOS=1 ./tests/e2e-pw/bin/test-env-setup.sh' && ENABLE_HPOS=1 pnpm env:dev",
"preinstall": "npx only-allow pnpm",
"postinstall": "composer install && pnpm env:force-mariadb",
"postinstall": "composer install",
"lint": "pnpm --if-present '/^lint:lang:.*$/'",
"lint:fix": "pnpm --if-present '/^lint:fix:lang:.*$/'",
"lint:fix:lang:php": "composer run-script phpcbf",