Skip to content

Commit 5f0fa9b

Browse files
committed
Fix commit message
1 parent 3362a90 commit 5f0fa9b

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "seasons-cli",
3-
"version": "1.0.16",
3+
"version": "1.0.2",
44
"description": "Node CLI sample",
55
"main": "index.js",
66
"bin": {

src/RunGitCommand.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ const { spawn } = require('child_process');
33

44
var runGITCommand = function(args, commandTye){
55
var promise = new Promise((resolve, reject) =>{
6-
console.log(chalk.green("######################################"))
7-
console.log(chalk.green(` ${commandTye} `))
8-
console.log(chalk.green("######################################"))
6+
console.log(chalk.green(`${commandTye}...`))
97

108
let command = spawn('git', args);
119
let stdOutData = "", stderrData="";

src/UpdateVersionNumber.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const addPackage = ['add', 'package.json'];
1010
const addPackageLock = ['add', 'package-lock.json'];
1111
const ammendCommit = ['commit', '--amend', '--no-edit'];
1212
const chkLocalCommit = ['cherry', '-v'];
13-
const createCommit = ['commit', '-m', 'Bump up version from '+currentVersion+' to' +updatedVersion];
13+
const createCommit = ['commit', '-m', 'Bump up version'];
1414

1515
const packageJSONFile = require(path.join(process.cwd(),'package.json'));
1616
const packageLockFile = require(path.join(process.cwd(),'package-lock.json'));
@@ -24,7 +24,7 @@ var updatePackage = () => {
2424

2525
fs.writeFileSync(path.join(process.cwd(),'package.json'), JSON.stringify(packageJSONFile, null, 2))
2626
fs.writeFileSync(path.join(process.cwd(),'package-lock.json'), JSON.stringify(packageLockFile, null, 2))
27-
console.log(chalk.cyan(`\n Version in package.json is updated to ${chalk.green(updatedVersion)} from ${chalk.red(currentVersion)} \n`))
27+
console.log(chalk.cyan(`Version in package.json is updated to ${chalk.green(updatedVersion)} from ${chalk.red(currentVersion)} \n`))
2828
}
2929

3030

0 commit comments

Comments
 (0)