@soybeanjs/cli 1.4.3 → 1.5.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,15 +20,15 @@ pnpm soy -h
20
20
 
21
21
  ## 命令介绍
22
22
 
23
- | 命令 | 作用 |
24
- | --------------------- | ------------------------------------------------------------------ |
25
- | help(-h) | 查看全部命令用法 |
26
- | git-commit | 生成符合 Angular 规范的 git 提交信息 (在提交信息添加前缀`!`可以表示破坏性更新的提交) |
27
- | git-commit-verify | 校验 git 的提交信息是否符合 Angular 规范 |
28
- | cleanup | 清空依赖和构建产物 |
29
- | ncu | 命令 npm-check-updates, 升级依赖 |
30
- | changelog | 根据两次 tag 生成 changelog (--total: 根据所有 tag 生成 changelog) |
31
- | release | 发布:更新版本号、生成 changelog、提交代码 |
23
+ | 命令 | 作用 |
24
+ | ----------------- | ------------------------------------------------------------------------------------ |
25
+ | help(-h) | 查看全部命令用法 |
26
+ | git-commit | 生成符合 Angular 规范的 git 提交信息 (在提交信息添加前缀`!`可以表示破坏性更新的提交) |
27
+ | git-commit-verify | 校验 git 的提交信息是否符合 Angular 规范 |
28
+ | cleanup | 清空依赖和构建产物 |
29
+ | ncu | 命令 npm-check-updates, 升级依赖 |
30
+ | changelog | 根据两次 tag 生成 changelog (--total: 根据所有 tag 生成 changelog) |
31
+ | release | 发布:更新版本号、生成 changelog、提交代码 |
32
32
 
33
33
  ## 更多自定义配置
34
34
 
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  import { ChangelogOption } from "@soybeanjs/changelog";
3
2
 
4
3
  //#region src/types/index.d.ts
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import cac from "cac";
2
+ import { cac } from "cac";
3
3
  import path from "node:path";
4
4
  import { readFileSync } from "node:fs";
5
5
  import enquirer from "enquirer";
@@ -11,7 +11,7 @@ import process from "node:process";
11
11
  import { loadConfig } from "c12";
12
12
 
13
13
  //#region package.json
14
- var version = "1.4.3";
14
+ var version = "1.5.0-beta.1";
15
15
 
16
16
  //#endregion
17
17
  //#region src/shared/index.ts
package/package.json CHANGED
@@ -1,28 +1,31 @@
1
1
  {
2
2
  "name": "@soybeanjs/cli",
3
- "type": "module",
4
- "version": "1.4.3",
3
+ "version": "1.5.0-beta.1",
5
4
  "description": "SoybeanJS's command line tools",
5
+ "homepage": "https://github.com/soybeanjs/cli",
6
+ "bugs": {
7
+ "url": "https://github.com/soybeanjs/cli/issues"
8
+ },
9
+ "license": "MIT",
6
10
  "author": {
7
11
  "name": "Soybean",
8
12
  "email": "soybeanjs@outlook.com",
9
13
  "url": "https://github.com/soybeanjs"
10
14
  },
11
- "license": "MIT",
12
- "homepage": "https://github.com/soybeanjs/cli",
13
15
  "repository": {
14
16
  "url": "https://github.com/soybeanjs/cli.git"
15
17
  },
16
- "bugs": {
17
- "url": "https://github.com/soybeanjs/cli/issues"
18
- },
19
- "publishConfig": {
20
- "registry": "https://registry.npmjs.org/"
21
- },
22
18
  "bin": {
23
19
  "soybean": "dist/index.js",
24
20
  "soy": "dist/index.js"
25
21
  },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "type": "module",
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.js",
28
+ "types": "./dist/index.d.ts",
26
29
  "exports": {
27
30
  ".": {
28
31
  "types": "./dist/index.d.ts",
@@ -30,44 +33,39 @@
30
33
  "require": "./dist/index.js"
31
34
  }
32
35
  },
33
- "main": "./dist/index.js",
34
- "module": "./dist/index.js",
35
- "types": "./dist/index.d.ts",
36
- "files": [
37
- "dist"
38
- ],
36
+ "publishConfig": {
37
+ "registry": "https://registry.npmjs.org/"
38
+ },
39
39
  "dependencies": {
40
40
  "@soybeanjs/changelog": "0.4.3",
41
- "bumpp": "10.3.2",
41
+ "bumpp": "10.4.1",
42
42
  "c12": "3.3.3",
43
43
  "cac": "6.7.14",
44
44
  "consola": "3.4.2",
45
45
  "enquirer": "2.4.1",
46
46
  "execa": "9.6.1",
47
47
  "kolorist": "1.8.0",
48
- "npm-check-updates": "19.2.0",
48
+ "npm-check-updates": "19.3.2",
49
49
  "rimraf": "6.1.2",
50
50
  "tinyglobby": "0.2.15"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@soybeanjs/cli": "link:",
54
- "@soybeanjs/eslint-config": "1.7.5",
55
- "@types/node": "25.0.3",
56
- "eslint": "9.39.2",
57
- "eslint-plugin-vue": "10.6.2",
54
+ "@types/node": "25.2.0",
58
55
  "lint-staged": "16.2.7",
56
+ "oxfmt": "^0.28.0",
57
+ "oxlint": "^1.43.0",
59
58
  "simple-git-hooks": "2.13.1",
60
- "tsdown": "0.18.2",
59
+ "tsdown": "0.20.3",
61
60
  "tsx": "4.21.0",
62
- "typescript": "5.9.3",
63
- "vue-eslint-parser": "10.2.0"
61
+ "typescript": "5.9.3"
64
62
  },
65
63
  "simple-git-hooks": {
66
64
  "commit-msg": "pnpm soy git-commit-verify",
67
65
  "pre-commit": "pnpm typecheck && pnpm lint-staged"
68
66
  },
69
67
  "lint-staged": {
70
- "*": "eslint --fix"
68
+ "*": "oxlint --fix && oxfmt"
71
69
  },
72
70
  "scripts": {
73
71
  "build": "tsdown && pnpm build-pkg",
@@ -75,12 +73,13 @@
75
73
  "cleanup": "soy cleanup",
76
74
  "commit": "soy git-commit",
77
75
  "commit:zh": "soy git-commit -l=zh-cn",
78
- "lint": "eslint . --fix",
76
+ "lint": "oxlint --fix",
77
+ "fmt": "oxfmt",
79
78
  "publish-pkg": "pnpm -r publish --access public",
80
79
  "release": "soy release -e 'pnpm release-execute'",
81
80
  "release-execute": "tsx ./scripts/release.ts && pnpm soy changelog",
82
81
  "stub": "pnpm -r run stub",
83
82
  "typecheck": "tsc --noEmit --skipLibCheck",
84
- "update-pkg": "soy update-pkg"
83
+ "upkg": "soy update-pkg"
85
84
  }
86
85
  }