@farris/cli 1.0.20 → 1.0.21
Sign up to get free protection for your applications and to get access to all the features.
- package/ci/cli.js +2 -2
- package/package.json +1 -1
package/ci/cli.js
CHANGED
@@ -156,8 +156,8 @@ function hasTags() {
|
|
156
156
|
* @returns 检查结果
|
157
157
|
*/
|
158
158
|
function checkProjectChanges(projectInfo, lastCommit) {
|
159
|
-
const projectPath = projectInfo
|
160
|
-
const packageName = projectInfo
|
159
|
+
const projectPath = projectInfo.project.path;
|
160
|
+
const packageName = projectInfo.package.name || projectPath;
|
161
161
|
return childProcess
|
162
162
|
// 使用 git diff 命令查询自上传提交以来,目标工程路径下是否有变更的文件
|
163
163
|
.exec("git", ["diff", "--name-only", lastCommit, projectPath])
|