@cloudcatch/wp-esbuild 1.1.0 → 1.2.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
@@ -1,5 +1,10 @@
1
1
  # @cloudcatch/wp-esbuild
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@cloudcatch/wp-esbuild.svg)](https://www.npmjs.com/package/@cloudcatch/wp-esbuild)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@cloudcatch/wp-esbuild.svg)](https://www.npmjs.com/package/@cloudcatch/wp-esbuild)
5
+ [![Node.js](https://img.shields.io/node/v/@cloudcatch/wp-esbuild.svg)](https://www.npmjs.com/package/@cloudcatch/wp-esbuild)
6
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
7
+
3
8
  **Fast esbuild-based builds for WordPress plugins and themes.**
4
9
 
5
10
  wp-esbuild is a build tool for modern WordPress development. It compiles your blocks, JavaScript, and styles into optimized assets your plugin or theme can enqueue in PHP — with sensible defaults and a config file when you need more control.
package/lib/build.mjs CHANGED
@@ -82,7 +82,7 @@ export async function build( projectRoot, options = {} ) {
82
82
 
83
83
  const watcher = chokidar.watch( watchPaths, {
84
84
  ignoreInitial: true,
85
- ignored: /(^|[/\\])\../,
85
+ ignored: ( p ) => /(^|[/\\])\../.test( p ),
86
86
  } );
87
87
 
88
88
  let debounceTimer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudcatch/wp-esbuild",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Shared esbuild toolchain for WordPress development",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,11 +17,10 @@
17
17
  "bin",
18
18
  "lib",
19
19
  "README.md",
20
- "ROADMAP.md",
21
20
  "LICENSE"
22
21
  ],
23
22
  "scripts": {
24
- "test": "node --test tests/**/*.test.mjs"
23
+ "test": "node --test ./tests/*.test.mjs"
25
24
  },
26
25
  "engines": {
27
26
  "node": ">=18"
@@ -39,13 +38,13 @@
39
38
  },
40
39
  "dependencies": {
41
40
  "autoprefixer": "^10.4.21",
42
- "change-case": "^4.1.2",
43
- "chokidar": "^4.0.3",
44
- "esbuild": "^0.27.2",
41
+ "change-case": "^5.0.0",
42
+ "chokidar": "^5.0.0",
43
+ "esbuild": "^0.28.1",
45
44
  "esbuild-sass-plugin": "^3.3.1",
46
45
  "fast-glob": "^3.3.3",
47
46
  "postcss": "^8.5.3",
48
47
  "rtlcss": "^4.3.0",
49
48
  "sass-embedded": "^1.97.2"
50
49
  }
51
- }
50
+ }