Skip to content

Commit

Permalink
chore(release): 1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
StreakingMan committed Nov 22, 2022
1 parent ec6c5e7 commit 9b64f1e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.10.1](https://github.com/StreakingMan/streakingman-cli/compare/v1.10.0...v1.10.1) (2022-11-22)


### Bug Fixes

* **set-project:** npm set-script 命令更新 ([ec6c5e7](https://github.com/StreakingMan/streakingman-cli/commit/ec6c5e77e2e5354c765c581e00e1604384d1fa30))

## [1.10.0](https://github.com/StreakingMan/streakingman-cli/compare/v1.9.2...v1.10.0) (2022-11-17)


Expand Down
21 changes: 16 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var require$$0__default$3 = /*#__PURE__*/_interopDefaultLegacy(require$$0$3);
var require$$4__default = /*#__PURE__*/_interopDefaultLegacy(require$$4);
var require$$5__default = /*#__PURE__*/_interopDefaultLegacy(require$$5);

var version$1 = "1.10.0";
var version$1 = "1.10.1";

var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};

Expand Down Expand Up @@ -8220,7 +8220,12 @@ const setProject = () => __awaiter(void 0, void 0, void 0, function* () {
], { dev: true });
// husky安装与钩子配置
require$$1.execSync('npx husky install');
require$$1.execSync('npm set-script prepare "husky install"');
try {
require$$1.execSync('npm pkg set scripts.prepare="husky install"');
}
catch (e) {
require$$1.execSync('npm set-script prepare "husky install"');
}
require$$1.execSync('npx husky set .husky/pre-commit "npx lint-staged"');
require$$1.execSync('npx husky set .husky/commit-msg "npx --no-install commitlint --edit $1"');
fileGenerator({ templateName: 'commitlint' });
Expand All @@ -8231,8 +8236,14 @@ const setProject = () => __awaiter(void 0, void 0, void 0, function* () {
}
if (hasStandardVersion) {
batchInstall(['standard-version'], { dev: true });
require$$1.execSync('npm set-script release:first "standard-version -- --first-release"');
require$$1.execSync('npm set-script release "standard-version"');
try {
require$$1.execSync('npm pkg set script.release:first "standard-version -- --first-release"');
require$$1.execSync('npm pkg set script.release "standard-version"');
}
catch (e) {
require$$1.execSync('npm set-script release:first "standard-version -- --first-release"');
require$$1.execSync('npm set-script release "standard-version"');
}
}
fileGenerator({ templateName: 'editor' });
console.log('依赖安装完成,已生成基础配置');
Expand Down Expand Up @@ -8431,7 +8442,7 @@ program
.description('扫描各工程的git提交信息,自动工作汇报')
.action(genReport);
program
.command('type-it [filePath] [speed] [breakBySpace]')
.command('type-it [filePath] [speed] [mode]')
.description('对文本文件重新进行逐字输入')
.action(typeIt);
program.showHelpAfterError(`${CLINAME} -h 查看帮助`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "streakingman-cli",
"version": "1.10.0",
"version": "1.10.1",
"description": "封装了一些常用操作的命令行工具",
"keywords": [
"commander",
Expand Down

0 comments on commit 9b64f1e

Please sign in to comment.