版本号基于master分支生成

This commit is contained in:
kuaifan 2022-01-07 10:15:20 +08:00
parent 0413ca7cba
commit 8e2b2947ae
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.5.74",
"version": "0.5.51",
"description": "DooTask is task management system.",
"main": "main.js",
"license": "MIT",

View File

@ -1,6 +1,6 @@
{
"name": "DooTask",
"version": "0.5.74",
"version": "0.5.51",
"description": "DooTask is task management system.",
"scripts": {
"start": "./cmd dev",

2
version.js vendored
View File

@ -16,7 +16,7 @@ function runExec(command, cb) {
});
}
runExec("git rev-list --all --count", function (err, response) {
runExec("git rev-list --branches master --count", function (err, response) {
if (err) {
console.error(err);
return;