@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.
Files changed (2) hide show
  1. package/ci/cli.js +2 -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?.project?.path;
160
- const packageName = projectInfo?.package?.name || projectPath;
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])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farris/cli",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Farris command line interface",
5
5
  "main": "index.js",
6
6
  "scripts": {