@wordpress/env 5.4.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ You may also specify the port numbers in your `.wp-env.json` file, but the envir
|
|
|
123
123
|
|
|
124
124
|
Restarting `wp-env` will restart the underlying Docker containers which can fix many issues.
|
|
125
125
|
|
|
126
|
-
To restart `wp-env`, just run `wp-env start` again. It will automatically stop and start the container. If you also pass the `--update` argument, it will download updates and configure WordPress
|
|
126
|
+
To restart `wp-env`, just run `wp-env start` again. It will automatically stop and start the container. If you also pass the `--update` argument, it will download updates and configure WordPress again.
|
|
127
127
|
|
|
128
128
|
```sh
|
|
129
129
|
$ wp-env start --update
|
|
@@ -312,7 +312,7 @@ Positionals:
|
|
|
312
312
|
The run command can be used to open shell sessions or invoke WP-CLI commands.
|
|
313
313
|
|
|
314
314
|
<div class="callout callout-alert">
|
|
315
|
-
In some cases, `wp-env` may consume options that you are attempting to pass to
|
|
315
|
+
In some cases, `wp-env` may consume options that you are attempting to pass to
|
|
316
316
|
the container. This happens with options that `wp-env` has already declared,
|
|
317
317
|
such as `--debug`, `--help`, and `--version`. When this happens, you should fall
|
|
318
318
|
back to using quotation marks; `wp-env` considers everything inside the
|
|
@@ -206,6 +206,7 @@ module.exports = function buildDockerComposeConfig( config ) {
|
|
|
206
206
|
image: 'mariadb',
|
|
207
207
|
ports: [ '3306' ],
|
|
208
208
|
environment: {
|
|
209
|
+
MYSQL_ROOT_HOST: '%',
|
|
209
210
|
MYSQL_ROOT_PASSWORD:
|
|
210
211
|
dbEnv.credentials.WORDPRESS_DB_PASSWORD,
|
|
211
212
|
MYSQL_DATABASE: dbEnv.development.WORDPRESS_DB_NAME,
|
|
@@ -216,6 +217,7 @@ module.exports = function buildDockerComposeConfig( config ) {
|
|
|
216
217
|
image: 'mariadb',
|
|
217
218
|
ports: [ '3306' ],
|
|
218
219
|
environment: {
|
|
220
|
+
MYSQL_ROOT_HOST: '%',
|
|
219
221
|
MYSQL_ROOT_PASSWORD:
|
|
220
222
|
dbEnv.credentials.WORDPRESS_DB_PASSWORD,
|
|
221
223
|
MYSQL_DATABASE: dbEnv.tests.WORDPRESS_DB_NAME,
|
package/lib/cli.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Error subtype which indicates that an expected validation erorr
|
|
9
|
+
* Error subtype which indicates that an expected validation erorr occurred
|
|
10
10
|
* while reading wp-env configuration.
|
|
11
11
|
*/
|
|
12
12
|
class ValidationError extends Error {}
|
|
@@ -16,7 +16,7 @@ class ValidationError extends Error {}
|
|
|
16
16
|
* do not match the required format.
|
|
17
17
|
*
|
|
18
18
|
* @param {Object} config A config object to validate.
|
|
19
|
-
* @param {?string} envLocation Identifies if the error
|
|
19
|
+
* @param {?string} envLocation Identifies if the error occurred in a specific environment property.
|
|
20
20
|
* @return {Object} The passed config object with no modifications.
|
|
21
21
|
*/
|
|
22
22
|
function validateConfig( config, envLocation ) {
|
|
@@ -122,7 +122,7 @@ async function downloadTestSuite(
|
|
|
122
122
|
// Alpha, Beta, and RC versions are bleeding edge and should pull from trunk.
|
|
123
123
|
let ref;
|
|
124
124
|
const fetchRaw = [];
|
|
125
|
-
if ( ! wpVersion || wpVersion.match( /-(?:alpha|beta|rc)/ ) ) {
|
|
125
|
+
if ( ! wpVersion || wpVersion.match( /-(?:alpha|beta|rc)/i ) ) {
|
|
126
126
|
ref = 'trunk';
|
|
127
127
|
fetchRaw.push( 'fetch', 'origin', ref, '--depth', '1' );
|
|
128
128
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/env",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.6.0",
|
|
4
4
|
"description": "A zero-config, self contained local WordPress environment for development and testing.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"scripts": {
|
|
52
52
|
"test": "echo \"Error: run tests from root\" && exit 1"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "511f4cc1f0138641bc4394bc1cf36e833109c791"
|
|
55
55
|
}
|