@wordpress-flow/cli 1.0.20 → 1.0.21
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 +17 -4
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -114264,7 +114264,10 @@ import * as path10 from "path";
|
|
|
114264
114264
|
import * as path8 from "path";
|
|
114265
114265
|
import * as fs8 from "fs";
|
|
114266
114266
|
import { execSync } from "child_process";
|
|
114267
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
114267
114268
|
var import_chalk3 = __toESM(require_source(), 1);
|
|
114269
|
+
var __filename2 = fileURLToPath4(import.meta.url);
|
|
114270
|
+
var __dirname2 = path8.dirname(__filename2);
|
|
114268
114271
|
|
|
114269
114272
|
class WebpackRunner {
|
|
114270
114273
|
async runBuild(entryPoint, outputDir, webpackConfigPath) {
|
|
@@ -114339,7 +114342,7 @@ class WebpackRunner {
|
|
|
114339
114342
|
const possiblePaths = [
|
|
114340
114343
|
path8.join(process.cwd(), "packages", "block", "node_modules", ".bin", "webpack"),
|
|
114341
114344
|
path8.join(process.cwd(), "node_modules", ".bin", "webpack"),
|
|
114342
|
-
path8.join(
|
|
114345
|
+
path8.join(__dirname2, "..", "..", "..", "node_modules", ".bin", "webpack"),
|
|
114343
114346
|
path8.join(process.cwd(), "..", "node_modules", ".bin", "webpack")
|
|
114344
114347
|
];
|
|
114345
114348
|
for (const webpackPath of possiblePaths) {
|
|
@@ -115065,6 +115068,10 @@ add_action('enqueue_block_assets', 'wordpress_flow_enqueue_block_scripts');
|
|
|
115065
115068
|
import { Worker } from "worker_threads";
|
|
115066
115069
|
import * as path14 from "path";
|
|
115067
115070
|
import * as os from "os";
|
|
115071
|
+
import { fileURLToPath as fileURLToPath5 } from "url";
|
|
115072
|
+
var __filename3 = fileURLToPath5(import.meta.url);
|
|
115073
|
+
var __dirname3 = path14.dirname(__filename3);
|
|
115074
|
+
|
|
115068
115075
|
class WorkerPool {
|
|
115069
115076
|
concurrency;
|
|
115070
115077
|
outputDir;
|
|
@@ -115076,7 +115083,7 @@ class WorkerPool {
|
|
|
115076
115083
|
this.outputDir = options.outputDir;
|
|
115077
115084
|
this.webpackConfigPath = options.webpackConfigPath;
|
|
115078
115085
|
this.scriptsPath = options.scriptsPath;
|
|
115079
|
-
this.workerPath = path14.join(
|
|
115086
|
+
this.workerPath = path14.join(__dirname3, "build", "block-build-worker.js");
|
|
115080
115087
|
}
|
|
115081
115088
|
async buildAll(blocks, onProgress) {
|
|
115082
115089
|
const results = [];
|
|
@@ -115786,7 +115793,7 @@ class BuildTemplatesCommand {
|
|
|
115786
115793
|
// package.json
|
|
115787
115794
|
var package_default = {
|
|
115788
115795
|
name: "@wordpress-flow/cli",
|
|
115789
|
-
version: "1.0.
|
|
115796
|
+
version: "1.0.21",
|
|
115790
115797
|
type: "module",
|
|
115791
115798
|
description: "TypeScript-based WordPress block creation system",
|
|
115792
115799
|
main: "dist/index.js",
|
|
@@ -115813,18 +115820,24 @@ var package_default = {
|
|
|
115813
115820
|
chokidar: "^3.5.3",
|
|
115814
115821
|
commander: "^11.0.0",
|
|
115815
115822
|
dotenv: "^17.2.3",
|
|
115816
|
-
esbuild: "^0.19.0",
|
|
115817
115823
|
glob: "^11.0.3",
|
|
115818
115824
|
mysql2: "^3.15.2",
|
|
115819
115825
|
react: "^18.3.1",
|
|
115820
115826
|
"react-dom": "^18.3.1"
|
|
115821
115827
|
},
|
|
115828
|
+
peerDependencies: {
|
|
115829
|
+
esbuild: "^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.24.0",
|
|
115830
|
+
webpack: "^5.0.0",
|
|
115831
|
+
"webpack-cli": "^5.0.0 || ^6.0.0"
|
|
115832
|
+
},
|
|
115822
115833
|
devDependencies: {
|
|
115823
115834
|
"@types/glob": "^9.0.0",
|
|
115824
115835
|
"@types/mysql": "^2.15.27",
|
|
115825
115836
|
"@types/node": "^20.0.0",
|
|
115826
115837
|
"@wordpress/scripts": "^30.24.0",
|
|
115838
|
+
esbuild: "^0.19.0",
|
|
115827
115839
|
typescript: "^5.0.0",
|
|
115840
|
+
webpack: "^5.97.0",
|
|
115828
115841
|
"webpack-cli": "^6.0.1"
|
|
115829
115842
|
},
|
|
115830
115843
|
keywords: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress-flow/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "TypeScript-based WordPress block creation system",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,18 +27,24 @@
|
|
|
27
27
|
"chokidar": "^3.5.3",
|
|
28
28
|
"commander": "^11.0.0",
|
|
29
29
|
"dotenv": "^17.2.3",
|
|
30
|
-
"esbuild": "^0.19.0",
|
|
31
30
|
"glob": "^11.0.3",
|
|
32
31
|
"mysql2": "^3.15.2",
|
|
33
32
|
"react": "^18.3.1",
|
|
34
33
|
"react-dom": "^18.3.1"
|
|
35
34
|
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"esbuild": "^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.24.0",
|
|
37
|
+
"webpack": "^5.0.0",
|
|
38
|
+
"webpack-cli": "^5.0.0 || ^6.0.0"
|
|
39
|
+
},
|
|
36
40
|
"devDependencies": {
|
|
37
41
|
"@types/glob": "^9.0.0",
|
|
38
42
|
"@types/mysql": "^2.15.27",
|
|
39
43
|
"@types/node": "^20.0.0",
|
|
40
44
|
"@wordpress/scripts": "^30.24.0",
|
|
45
|
+
"esbuild": "^0.19.0",
|
|
41
46
|
"typescript": "^5.0.0",
|
|
47
|
+
"webpack": "^5.97.0",
|
|
42
48
|
"webpack-cli": "^6.0.1"
|
|
43
49
|
},
|
|
44
50
|
"keywords": [
|