This is an automated email from the ASF dual-hosted git repository.

fanjia pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/seatunnel-website.git


The following commit(s) were added to refs/heads/main by this push:
     new c66fddd932ef [Fix] Use dynamic import for execa in version.js (#372)
c66fddd932ef is described below

commit c66fddd932efcf0962ca759650ddc7fd4de20566
Author: Jast <[email protected]>
AuthorDate: Wed May 7 19:36:37 2025 +0800

    [Fix] Use dynamic import for execa in version.js (#372)
---
 tools/version.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tools/version.js b/tools/version.js
index 2b6c163a9e48..de8fc2b2964c 100644
--- a/tools/version.js
+++ b/tools/version.js
@@ -3,7 +3,6 @@
  * @module version
  */
 
-const { execa } = require("execa");
 const { readJSONSync, writeJSONSync } = require("fs-extra");
 const { VERSION_FILE } = require("./common");
 const color = require("picocolors");
@@ -39,6 +38,9 @@ async function stepFour() {
  * @async
  */
 async function main() {
+  // Dynamic import execa
+  const { execa } = await import('execa');
+
   if (!version) {
     throw new Error("Missing version number");
   }

Reply via email to