Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
renxia committed Dec 11, 2023
1 parent 8566ae0 commit a406774
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,39 +67,39 @@
"bin"
],
"dependencies": {
"@lzwme/fe-utils": "^1.5.2",
"commander": "^11.0.0",
"@lzwme/fe-utils": "^1.5.8",
"commander": "^11.1.0",
"console-log-colors": "^0.4.0",
"enquirer": "^2.3.6",
"fast-glob": "^3.3.1",
"enquirer": "^2.4.1",
"fast-glob": "^3.3.2",
"micromatch": "^4.0.5"
},
"devDependencies": {
"@jest/core": "^29.6.1",
"@jest/test-result": "^29.6.1",
"@jest/types": "^29.6.1",
"@jest/core": "^29.7.0",
"@jest/test-result": "^29.7.0",
"@jest/types": "^29.6.3",
"@node-rs/deno-lint": "^1.17.3",
"@types/eslint": "^8.44.0",
"@types/jest": "^29.5.3",
"@types/micromatch": "^4.0.2",
"@types/node": "^20.4.4",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"eslint": "^8.45.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-unicorn": "^48.0.0",
"@types/eslint": "^8.44.8",
"@types/jest": "^29.5.11",
"@types/micromatch": "^4.0.6",
"@types/node": "^20.10.4",
"@typescript-eslint/eslint-plugin": "^6.13.2",
"@typescript-eslint/parser": "^6.13.2",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-jest": "^27.6.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-unicorn": "^49.0.0",
"husky": "^8.0.3",
"jest": "^29.6.1",
"jest": "^29.7.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.0",
"prettier": "^3.1.1",
"standard-version": "^9.5.0",
"stylelint": "^15.10.2",
"stylelint": "^16.0.1",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"
"ts-node": "^10.9.2",
"typedoc": "^0.25.4",
"typescript": "^5.3.3"
},
"peerDependencies": {
"@jest/core": "*"
Expand Down
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: lzw
* @Date: 2021-09-25 15:45:24
* @LastEditors: renxia
* @LastEditTime: 2023-10-25 15:11:43
* @LastEditTime: 2023-12-11 17:00:59
* @Description: cli 工具
*/
import { resolve } from 'node:path';
Expand Down Expand Up @@ -134,8 +134,8 @@ program
let changeFiles: string[] = options.onlyStaged
? getGitStaged(baseConfig.rootDir)
: options.onlyChanges
? getHeadDiffFileList(0, baseConfig.rootDir)
: null;
? getHeadDiffFileList(0, baseConfig.rootDir)
: null;

if (changeFiles) {
changeFiles = changeFiles.filter(d => existsSync(resolve(baseConfig.rootDir, d)));
Expand Down
2 changes: 1 addition & 1 deletion src/tools/rmdir.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export async function rmEmptyDir(srcs: string[], dryRun = false) {

for (const dir of dirs) {
const list = await promises.readdir(dir);
if (!list.length) {
if (list.length === 0) {
logger.debug(`${dryRun ? `[dryRun]` : ''}删除空目录:`, dir);
if (!dryRun) await promises.rmdir(dir);
total++;
Expand Down

0 comments on commit a406774

Please sign in to comment.