@farris/cli 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/ci/cli.js +4 -0
  3. package/package.json +25 -25
package/README.md CHANGED
@@ -1,2 +1,2 @@
1
- # farris-cli
2
-
1
+ # farris-cli
2
+
package/ci/cli.js CHANGED
@@ -62,6 +62,9 @@ function checkProjectChanges(projectPath) {
62
62
  const changedFiles = returnValue.stdout.split("\n").filter(Boolean);
63
63
  // 根据文件个数确定是否存在变更
64
64
  const hasChanges = changedFiles.length > 0;
65
+ if(hasChanges){
66
+ console.log(`${projectPath} has changed.`)
67
+ }
65
68
  // 返回检测结果
66
69
  return hasChanges;
67
70
  });
@@ -86,6 +89,7 @@ function updateProjectPrereleaseVersion(projectPath) {
86
89
  childProcess.execSync('git', ['add', '.']);
87
90
  // 提交变更记录
88
91
  childProcess.execSync('git', ['commit', '-m', `update ${packageConfig.name} prerelease version to ${updatedVersion}`]);
92
+ console.log(`update ${packageConfig.name} prerelease version to ${updatedVersion}`);
89
93
  // 提交变更集
90
94
  return childProcess.exec('git', ['push']);
91
95
  })
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
- {
2
- "name": "@farris/cli",
3
- "version": "1.0.2",
4
- "description": "Farris command line interface",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "https://git.iec.io/webadp/farris-cli.git"
12
- },
13
- "keywords": [
14
- "Farris",
15
- "CLI"
16
- ],
17
- "bin": {
18
- "farris": "ci/cli.js"
19
- },
20
- "author": "Sagi Chen",
21
- "license": "ISC",
22
- "dependencies": {
23
- "lerna": "^4.0.0"
24
- }
25
- }
1
+ {
2
+ "name": "@farris/cli",
3
+ "version": "1.0.3",
4
+ "description": "Farris command line interface",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://git.iec.io/webadp/farris-cli.git"
12
+ },
13
+ "keywords": [
14
+ "Farris",
15
+ "CLI"
16
+ ],
17
+ "bin": {
18
+ "farris": "ci/cli.js"
19
+ },
20
+ "author": "Sagi Chen",
21
+ "license": "ISC",
22
+ "dependencies": {
23
+ "lerna": "^4.0.0"
24
+ }
25
+ }