@ideasonpurpose/build-tools-wordpress 1.1.4 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
+ #### v1.1.4
8
+
9
+ > 25 January 2024
10
+
11
+ - deps, formatting, debugging
12
+
7
13
  #### v1.1.3
8
14
 
9
15
  > 24 January 2024
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ideasonpurpose/build-tools-wordpress
2
2
 
3
- #### Version 1.1.4
3
+ #### Version 1.1.5
4
4
 
5
5
  ![NPM Version](https://img.shields.io/npm/v/%40ideasonpurpose%2Fbuild-tools-wordpress?logo=npm)
6
6
  ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/ideasonpurpose/build-tools-wordpress/npm-publish.yml?logo=github&logoColor=white)
@@ -167,17 +167,6 @@ export async function buildConfig(configFile = { config: {} }) {
167
167
  if (config.proxy === true) {
168
168
  config.proxy = defaultConfig.proxy;
169
169
  }
170
- const localPort = await findLocalPort();
171
-
172
- config.proxy = `http://${localPort.hostname}:${localPort.port}`;
173
- console.log(
174
- chalk.cyan.bold(
175
- `FOUND THE PORT IN BUILDCONFIG ${localPort.port}`,
176
- config.proxy,
177
- ),
178
- );
179
-
180
- /// TODO: Move the port-finding stuff in here?
181
170
 
182
171
  return config;
183
172
  }
@@ -66,6 +66,18 @@ export async function devserverProxy(config) {
66
66
  * Pass anything else straight through
67
67
  */
68
68
  target = config.proxy;
69
+
70
+ // TODO: This obliterates any default values, sort out this setting.
71
+
72
+ const localPort = await findLocalPort();
73
+
74
+ target = `http://${localPort.hostname}:${localPort.port}`;
75
+ console.log(
76
+ chalk.cyan.bold(
77
+ `FOUND THE PORT IN BUILDCONFIG ${localPort.port}`,
78
+ target,
79
+ ),
80
+ );
69
81
  }
70
82
 
71
83
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideasonpurpose/build-tools-wordpress",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Build scripts and dependencies for IOP's WordPress development environments.",
5
5
  "homepage": "https://github.com/ideasonpurpose/build-tools-wordpress#readme",
6
6
  "bugs": {