@ideasonpurpose/build-tools-wordpress 2.2.2 → 2.2.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 +6 -0
- package/README.md +1 -1
- package/bin/format-php-prettier.js +4 -0
- package/package.json +1 -1
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
|
+
#### v2.2.2
|
|
8
|
+
|
|
9
|
+
> 9 September 2025
|
|
10
|
+
|
|
11
|
+
- tweaking deps
|
|
12
|
+
|
|
7
13
|
#### v2.2.1
|
|
8
14
|
|
|
9
15
|
> 9 September 2025
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @ideasonpurpose/build-tools-wordpress
|
|
2
2
|
|
|
3
|
-
#### Version 2.2.
|
|
3
|
+
#### Version 2.2.3
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@ideasonpurpose/build-tools-wordpress)
|
|
6
6
|
[](https://github.com/ideasonpurpose/build-tools-wordpress#readme)
|
|
@@ -11,6 +11,9 @@
|
|
|
11
11
|
import prettier from "prettier";
|
|
12
12
|
import prettierConfig from "@ideasonpurpose/prettier-config" with { type: "json" };
|
|
13
13
|
|
|
14
|
+
// Add dynamic import for the plugin
|
|
15
|
+
const phpPlugin = (await import("@prettier/plugin-php")).default;
|
|
16
|
+
|
|
14
17
|
import { readFile, writeFile } from "fs/promises";
|
|
15
18
|
import { resolve, basename } from "path";
|
|
16
19
|
|
|
@@ -157,6 +160,7 @@ async function formatHTMLThenPHP(filepath) {
|
|
|
157
160
|
...phpOptions,
|
|
158
161
|
parser: "php",
|
|
159
162
|
embeddedLanguageFormatting: "auto",
|
|
163
|
+
plugins: [phpPlugin], // Explicitly pass the plugin
|
|
160
164
|
});
|
|
161
165
|
|
|
162
166
|
await writeFile(filepath, phpFormatted, "utf8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ideasonpurpose/build-tools-wordpress",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.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": {
|