@ideasonpurpose/build-tools-wordpress 2.8.0 → 2.8.2

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,20 @@ 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.1
8
+
9
+ > 3 June 2026
10
+
11
+ - fix db connection checks in docker-compose
12
+
13
+ #### v2.8.0
14
+
15
+ > 3 June 2026
16
+
17
+ - bump deps
18
+ - refactor format functions and improve tests
19
+ - boilerplate and README SVGo info
20
+
7
21
  #### v2.7.0
8
22
 
9
23
  > 6 May 2026
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ideasonpurpose/build-tools-wordpress
2
2
 
3
- #### Version 2.8.0
3
+ #### Version 2.8.2
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)
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.0",
3
+ "version": "2.8.2",
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": {
@@ -173,7 +173,7 @@ services:
173
173
  command: |
174
174
  bash -c 'for i in {1..10}
175
175
  do echo -e "⏳ \033[33mWaiting for DB server...\033[0m" &&
176
- mysql --ssl-mode=DISABLED -s -h db -e "exit" && break || sleep 3
176
+ mysql --ssl-mode=DISABLED -s -h db -e "SELECT 1" && break || sleep 3
177
177
  done &&
178
178
  sleep 2 &&
179
179
  echo -e "✔️ \033[32mConnected to DB\033[0m" &&
@@ -197,7 +197,7 @@ services:
197
197
  command: |
198
198
  bash -c 'for i in {1..10}
199
199
  do echo -e "⏳ \033[33mWaiting for DB server...\033[0m" &&
200
- mysql --ssl-mode=DISABLED -s -h db -e "exit" && break || sleep 3
200
+ mysql --ssl-mode=DISABLED -s -h db -e "SELECT 1" && break || sleep 3
201
201
  done &&
202
202
  sleep 2 &&
203
203
  echo -e "✔️ \033[32mConnected to DB\033[0m" &&
@@ -205,7 +205,7 @@ services:
205
205
  mysqladmin --ssl-mode=DISABLED -hdb -v -f create $${MYSQL_DATABASE} &&
206
206
  echo Database \"$${MYSQL_DATABASE}\" created &&
207
207
  echo Reloading database from dumpfile &&
208
- mysql --ssl-mode=DISABLED -hdb $${MYSQL_DATABASE} < $$(ls /usr/src/dumpfiles/*.sql | tail -n1)'
208
+ mysql --ssl-mode=DISABLED -hdb $${MYSQL_DATABASE} < $$(ls -t /usr/src/dumpfiles/*.sql | head -n1)'
209
209
 
210
210
  # Activates the theme directly in the database
211
211
  theme-activate:
@@ -220,7 +220,7 @@ services:
220
220
  command: |
221
221
  bash -c 'for i in {1..10}
222
222
  do echo -e "⏳ \033[33mWaiting for DB server...\033[0m" &&
223
- mysql --ssl-mode=DISABLED -s -h db -e "exit" && break || sleep 3
223
+ mysql --ssl-mode=DISABLED -s -h db -e "SELECT 1" && break || sleep 3
224
224
  done &&
225
225
  sleep 2 &&
226
226
  echo -e "✔️ \033[32mConnected to DB\033[0m" &&