@ideasonpurpose/build-tools-wordpress 2.8.1 → 2.8.3

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,18 @@ 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
+ #### v2.8.2
8
+
9
+ > 3 June 2026
10
+
11
+ - update zip script to use ESM archiver
12
+
13
+ #### v2.8.1
14
+
15
+ > 3 June 2026
16
+
17
+ - fix db connection checks in docker-compose
18
+
7
19
  #### v2.8.0
8
20
 
9
21
  > 3 June 2026
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ideasonpurpose/build-tools-wordpress
2
2
 
3
- #### Version 2.8.1
3
+ #### Version 2.8.3
4
4
 
5
5
  [![NPM Version](https://img.shields.io/npm/v/%40ideasonpurpose%2Fbuild-tools-wordpress?logo=npm)](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
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)](https://github.com/ideasonpurpose/build-tools-wordpress#readme)
@@ -58,7 +58,7 @@ const isInTag = (html, offset) => {
58
58
  */
59
59
  export function tokenizeHTML(htmlContent) {
60
60
  let tokenizedHTML = "";
61
- const phpCodeBlocks = new Map(); // Changed to Map for better performance and type safety
61
+ const phpCodeBlocks = new Map(); // Changed to Map for better performance and type safety
62
62
  let tokenCount = 0;
63
63
 
64
64
  /**
@@ -182,4 +182,5 @@ export async function main(filepath = process.argv[2]) {
182
182
  }
183
183
  await formatHTMLThenPHP(resolve(filepath));
184
184
  }
185
- if (import.meta.url === `file://${process.argv[1]}`) main();
185
+
186
+ if (process.argv[2]) main();
@@ -211,4 +211,4 @@ export async function main(filepath = process.argv[2]) {
211
211
  }
212
212
  await formatWPBlockPattern(resolve(filepath));
213
213
  }
214
- if (import.meta.url === `file://${process.argv[1]}`) main();
214
+ if (process.argv[2]) main();
package/bin/zip.js CHANGED
@@ -11,7 +11,7 @@ import { clearLine, cursorTo } from "node:readline";
11
11
  import url from "url";
12
12
  import { fileURLToPath, pathToFileURL } from "node:url";
13
13
 
14
- import archiver from "archiver";
14
+ import { ZipArchive } from "archiver";
15
15
  import chalk from "chalk";
16
16
  import { cosmiconfig, cosmiconfigSync } from "cosmiconfig";
17
17
  import { filesize } from "filesize";
@@ -69,7 +69,7 @@ const output = createWriteStream(zipFile);
69
69
 
70
70
  output.on("finish", finishReporter);
71
71
 
72
- const archive = archiver("zip", { zlib: { level: 9 } });
72
+ const archive = new ZipArchive({ zlib: { level: 9 } });
73
73
  archive.pipe(output);
74
74
 
75
75
  console.log(chalk.bold("Bundling Project for Deployment"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideasonpurpose/build-tools-wordpress",
3
- "version": "2.8.1",
3
+ "version": "2.8.3",
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": {
@@ -63,6 +63,7 @@ services:
63
63
  - 9003
64
64
 
65
65
  # Link external plugin projects by defining host:container path pairs in .env
66
+ # Set a custom environment by assigning a value to WP_ENVIRONMENT_TYPE
66
67
  environment:
67
68
  IOP_DEV_PLUGIN_1:
68
69
  IOP_DEV_PLUGIN_2:
@@ -72,6 +73,7 @@ services:
72
73
  IOP_DEV_PLUGIN_6:
73
74
  IOP_DEV_PLUGIN_7:
74
75
  IOP_DEV_PLUGIN_8:
76
+ WP_ENVIRONMENT_TYPE:
75
77
 
76
78
  # Required for iptables port-mapping to work inside the Docker image
77
79
  # This is used to fix a PHP/WordPress issue where internal requests