@wordpress/env 5.14.0 → 5.16.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
@@ -456,7 +456,7 @@ $ wp-env install-path
456
456
 
457
457
  You can customize the WordPress installation, plugins and themes that the development environment will use by specifying a `.wp-env.json` file in the directory that you run `wp-env` from.
458
458
 
459
- `.wp-env.json` supports six fields for options applicable to both the tests and development instances.
459
+ `.wp-env.json` supports fields for options applicable to both the tests and development instances.
460
460
 
461
461
  | Field | Type | Default | Description |
462
462
  | -------------- | -------------- | -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
@@ -465,6 +465,7 @@ You can customize the WordPress installation, plugins and themes that the develo
465
465
  | `"plugins"` | `string[]` | `[]` | A list of plugins to install and activate in the environment. |
466
466
  | `"themes"` | `string[]` | `[]` | A list of themes to install in the environment. |
467
467
  | `"port"` | `integer` | `8888` (`8889` for the tests instance) | The primary port number to use for the installation. You'll access the instance through the port: 'http://localhost:8888'. |
468
+ | `"testsPort"` | `integer` | `8889` | The port number for the test site. You'll access the instance through the port: 'http://localhost:8889'. |
468
469
  | `"config"` | `Object` | See below. | Mapping of wp-config.php constants to their desired values. |
469
470
  | `"mappings"` | `Object` | `"{}"` | Mapping of WordPress directories to local directories to be mounted in the WordPress instance. |
470
471
 
@@ -331,7 +331,7 @@ function getNumberFromEnvVariable( varName ) {
331
331
  * Gets the `wp-env` home directory in which generated files are created.
332
332
  *
333
333
  * By default: '~/.wp-env/'. On Linux with snap packages: '~/wp-env/'. Can be
334
- * overriden with the WP_ENV_HOME environment variable.
334
+ * overridden with the WP_ENV_HOME environment variable.
335
335
  *
336
336
  * @return {Promise<string>} The absolute path to the `wp-env` home directory.
337
337
  */
@@ -825,7 +825,7 @@ describe( 'readConfig', () => {
825
825
  )
826
826
  );
827
827
  const config = await readConfig( '.wp-env.json' );
828
- // Custom port is overriden while testsPort gets the deault value.
828
+ // Custom port is overridden while testsPort gets the deault value.
829
829
  expect( config ).toMatchObject( {
830
830
  env: {
831
831
  development: {
@@ -848,7 +848,7 @@ describe( 'readConfig', () => {
848
848
  )
849
849
  );
850
850
  const config = await readConfig( '.wp-env.json' );
851
- // Custom port is overriden while testsPort gets the deault value.
851
+ // Custom port is overridden while testsPort gets the deault value.
852
852
  expect( config ).toMatchObject( {
853
853
  env: {
854
854
  development: {
@@ -884,7 +884,7 @@ describe( 'readConfig', () => {
884
884
  )
885
885
  );
886
886
  const config = await readConfig( '.wp-env.json' );
887
- // Custom port is overriden while testsPort gets the deault value.
887
+ // Custom port is overridden while testsPort gets the deault value.
888
888
  expect( config ).toMatchObject( {
889
889
  env: {
890
890
  development: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/env",
3
- "version": "5.14.0",
3
+ "version": "5.16.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": "9534a7b3bbf07c1d40b94fdb7a3d091f297bfb06"
54
+ "gitHead": "d61700b9f1c72ba0b030fc815ef1685b4f4031ec"
55
55
  }