@wordpress-flow/cli 1.0.22 → 1.0.23

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.
@@ -2002,7 +2002,8 @@ function parseBlockJsonFromSource(block) {
2002
2002
  };
2003
2003
  }
2004
2004
  async function runWebpackBuild(entryPoint, outputDir, webpackConfigPath) {
2005
- const configModule = await import(webpackConfigPath);
2005
+ delete __require.cache[__require.resolve(webpackConfigPath)];
2006
+ const configModule = __require(webpackConfigPath);
2006
2007
  const configFactory = configModule.default || configModule;
2007
2008
  const env = { entry: entryPoint, output: outputDir };
2008
2009
  const baseConfig = typeof configFactory === "function" ? configFactory(env) : configFactory;
package/dist/index.js CHANGED
@@ -114264,7 +114264,6 @@ import * as path9 from "path";
114264
114264
  import * as fs8 from "fs";
114265
114265
  import webpack from "webpack";
114266
114266
  var import_chalk3 = __toESM(require_source(), 1);
114267
-
114268
114267
  class WebpackRunner {
114269
114268
  async runBuild(entryPoint, outputDir, webpackConfigPath) {
114270
114269
  logger.debug(`Running webpack build for: ${entryPoint}`);
@@ -114284,7 +114283,8 @@ class WebpackRunner {
114284
114283
  }
114285
114284
  fs8.mkdirSync(outputDir, { recursive: true });
114286
114285
  try {
114287
- const configModule = await import(webpackConfigPath);
114286
+ delete __require.cache[__require.resolve(webpackConfigPath)];
114287
+ const configModule = __require(webpackConfigPath);
114288
114288
  const configFactory = configModule.default || configModule;
114289
114289
  const env2 = { entry: entryPoint, output: outputDir };
114290
114290
  const baseConfig = typeof configFactory === "function" ? configFactory(env2) : configFactory;
@@ -115777,7 +115777,7 @@ class BuildTemplatesCommand {
115777
115777
  // package.json
115778
115778
  var package_default = {
115779
115779
  name: "@wordpress-flow/cli",
115780
- version: "1.0.22",
115780
+ version: "1.0.23",
115781
115781
  type: "module",
115782
115782
  description: "TypeScript-based WordPress block creation system",
115783
115783
  main: "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress-flow/cli",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "type": "module",
5
5
  "description": "TypeScript-based WordPress block creation system",
6
6
  "main": "dist/index.js",