@wordpress-flow/cli 1.0.6 → 1.0.8
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.
|
@@ -2007,8 +2007,8 @@ async function runWebpackBuild(entryPoint, outputDir, webpackConfigPath) {
|
|
|
2007
2007
|
const command = `${webpackBinary} --config "${webpackConfigPath}" ${envString} --mode production`;
|
|
2008
2008
|
execSync(command, {
|
|
2009
2009
|
cwd: path.dirname(webpackConfigPath),
|
|
2010
|
-
|
|
2011
|
-
|
|
2010
|
+
stdio: "pipe",
|
|
2011
|
+
shell: process.platform === "win32" ? "cmd.exe" : "/bin/sh"
|
|
2012
2012
|
});
|
|
2013
2013
|
}
|
|
2014
2014
|
function findWebpackBinary() {
|
package/dist/index.js
CHANGED
|
@@ -114815,8 +114815,7 @@ class AbortableWorkerPool {
|
|
|
114815
114815
|
this.webpackConfigPath = options.webpackConfigPath;
|
|
114816
114816
|
this.scriptsPath = options.scriptsPath;
|
|
114817
114817
|
const currentDir = import.meta.dirname;
|
|
114818
|
-
|
|
114819
|
-
this.workerPath = path9.join(distDir, "block-build-worker.js");
|
|
114818
|
+
this.workerPath = path9.join(currentDir, "build", "block-build-worker.js");
|
|
114820
114819
|
}
|
|
114821
114820
|
isBuilding(blockName) {
|
|
114822
114821
|
return this.activeWorkers.has(blockName);
|
|
@@ -115882,7 +115881,7 @@ add_action('enqueue_block_assets', 'wordpress_flow_enqueue_block_scripts');
|
|
|
115882
115881
|
// package.json
|
|
115883
115882
|
var package_default = {
|
|
115884
115883
|
name: "@wordpress-flow/cli",
|
|
115885
|
-
version: "1.0.
|
|
115884
|
+
version: "1.0.8",
|
|
115886
115885
|
type: "module",
|
|
115887
115886
|
description: "TypeScript-based WordPress block creation system",
|
|
115888
115887
|
main: "dist/index.js",
|
|
@@ -116441,9 +116440,9 @@ class WebpackRunner {
|
|
|
116441
116440
|
logger.debug(`Running webpack from directory: ${workingDir}`);
|
|
116442
116441
|
const output2 = execSync(command, {
|
|
116443
116442
|
cwd: workingDir,
|
|
116444
|
-
|
|
116445
|
-
|
|
116446
|
-
});
|
|
116443
|
+
stdio: "pipe",
|
|
116444
|
+
shell: process.platform === "win32" ? "cmd.exe" : "/bin/sh"
|
|
116445
|
+
}).toString();
|
|
116447
116446
|
logger.debug("Webpack build completed successfully");
|
|
116448
116447
|
logger.debug(`Output: ${output2}`);
|
|
116449
116448
|
} catch (error) {
|
|
@@ -116885,8 +116884,7 @@ class WorkerPool {
|
|
|
116885
116884
|
this.webpackConfigPath = options.webpackConfigPath;
|
|
116886
116885
|
this.scriptsPath = options.scriptsPath;
|
|
116887
116886
|
const currentDir = import.meta.dirname;
|
|
116888
|
-
|
|
116889
|
-
this.workerPath = path20.join(distDir, "block-build-worker.js");
|
|
116887
|
+
this.workerPath = path20.join(currentDir, "build", "block-build-worker.js");
|
|
116890
116888
|
}
|
|
116891
116889
|
async buildAll(blocks, onProgress) {
|
|
116892
116890
|
const results = [];
|