Przeglądaj źródła

[Mod 0000] 项目版本信息读取路径更新

houzekong 1 miesiąc temu
rodzic
commit
a3da7c1df3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      build/script/buildTag.ts

+ 1 - 1
build/script/buildTag.ts

@@ -24,7 +24,7 @@ function createTag(params: CreateTagParams) {
       // last commit's SHA
       commit: execSync('git rev-parse --short HEAD').toString().replace('\n', ''),
       buildtime: dayjs().format('YYYY-MM-DD_HH:mm:ss'),
-      version: execSync('npm pkg get version').toString().replace('\n', ''),
+      version: execSync('npm pkg get projectVersion').toString().replace('\n', ''),
     };
     // Ensure that the variable will not be modified
     const evalExp = `