소스 검색

fix release script

Daniel Zlotin 7 년 전
부모
커밋
82ed894a5d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      scripts/release.js

+ 1
- 1
scripts/release.js 파일 보기

@@ -36,7 +36,7 @@ function setupGit() {
36 36
 }
37 37
 
38 38
 function calcNewVersion() {
39
-  const currentVersion = exec.execSyncRead(`npm view ${process.env.npm_package_name}@${VERSION_TAG} version`);
39
+  const currentVersion = exec.execSyncRead(`npm view ${process.env.npm_package_name} dist-tags.${VERSION_TAG}`);
40 40
   console.log(`${VERSION_TAG} version: ${currentVersion}`);
41 41
   const packageVersion = process.env.npm_package_version;
42 42
   console.log(`package version: ${packageVersion}`);