Prechádzať zdrojové kódy

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

houzekong 1 mesiac pred
rodič
commit
a3da7c1df3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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
       // last commit's SHA
       commit: execSync('git rev-parse --short HEAD').toString().replace('\n', ''),
       commit: execSync('git rev-parse --short HEAD').toString().replace('\n', ''),
       buildtime: dayjs().format('YYYY-MM-DD_HH:mm:ss'),
       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
     // Ensure that the variable will not be modified
     const evalExp = `
     const evalExp = `