@wordpress-flow/cli 1.2.3 → 1.2.4
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/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -116132,7 +116132,7 @@ class DockerEnvManager {
|
|
|
116132
116132
|
// package.json
|
|
116133
116133
|
var package_default = {
|
|
116134
116134
|
name: "@wordpress-flow/cli",
|
|
116135
|
-
version: "1.2.
|
|
116135
|
+
version: "1.2.4",
|
|
116136
116136
|
type: "module",
|
|
116137
116137
|
description: "TypeScript-based WordPress block creation system",
|
|
116138
116138
|
main: "dist/index.js",
|
|
@@ -116739,8 +116739,16 @@ class DevModeOrchestrator {
|
|
|
116739
116739
|
}, this.ignoreTimeout);
|
|
116740
116740
|
}
|
|
116741
116741
|
async rescanBlocks() {
|
|
116742
|
+
const previousBlockNames = new Set(this.blockFilePaths.keys());
|
|
116742
116743
|
const blocks = await this.scanBlocks();
|
|
116743
116744
|
logger.debug(`Re-scanned: ${blocks.length} blocks`);
|
|
116745
|
+
const newBlocks = blocks.filter((block) => !previousBlockNames.has(block.name));
|
|
116746
|
+
if (newBlocks.length > 0) {
|
|
116747
|
+
logger.info(`Detected ${newBlocks.length} new block(s): ${newBlocks.map((b) => b.name).join(", ")}`);
|
|
116748
|
+
for (const block of newBlocks) {
|
|
116749
|
+
this.changeQueue.queueBlockChange(block.name, block.filePath, "add");
|
|
116750
|
+
}
|
|
116751
|
+
}
|
|
116744
116752
|
}
|
|
116745
116753
|
async processBatch(batch) {
|
|
116746
116754
|
const blockNames = Array.from(batch.blocks.keys());
|