@farris/cli 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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])
|