From c2c8ad6c932cc275fa5518bf6b3aaefcd37a927a Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Thu, 9 Sep 2021 22:28:23 +0800 Subject: [PATCH] u --- README.md | 2 +- deploy.js | 4 ++-- package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index febdbb0..bf8dcb3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ * -t, --type: web(默认) 或 git * 如果是 git * -r, --repo: 远程仓库,例如 'https://github.com/ORG/ORG.github.io' - * -b, --branch: 分支,默认为 master + * -b, --branch: 分支,默认为 main * -n, --gitname * -e, --gitemail * 如果是 web diff --git a/deploy.js b/deploy.js index 7d3fed0..c1b90a0 100644 --- a/deploy.js +++ b/deploy.js @@ -220,7 +220,7 @@ function deployToGit(connection){ return { url: url, - branch: branch || 'master' + branch: branch || 'main' } } @@ -261,7 +261,7 @@ function deployToGit(connection){ help += 'You have to configure the deployment settings in config files or command line first!\n\n' help += 'Example:\n' - help += ' node deploy.js -t git -r https://github.com/OWNER/OWNER.github.io -b master -f ./dist' + help += ' node deploy.js -t git -r https://github.com/OWNER/OWNER.github.io -b main -f ./dist' console.log(help) return diff --git a/package.json b/package.json index be1fdf5..a5e6e80 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "chalk": "^2.4.2", "commander": "^3.0.1", "deepmerge": "^4.0.0", - "hexo-fs": "^2.0.0", - "hexo-util": "^1.1.0", + "hexo-fs": "^3.1.0", + "hexo-util": "^2.5.0", "moment": "^2.24.0", "node-ssh": "^8.0.0", "swig-templates": "^2.0.3"