@zwa73/dev-utils 1.0.90 → 1.0.91

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.
@@ -9,6 +9,7 @@ const common = {
9
9
  tsconfig: 'tsconfig.compile.json',
10
10
  clean: false,
11
11
  dts: false,
12
+ splitting: true,
12
13
  external: []
13
14
  }
14
15
  export default defineConfig([
@@ -8,7 +8,8 @@
8
8
  "expand-macro": "powershell scripts/expand-macro",
9
9
  "release": "powershell scripts/release",
10
10
  "compile": "powershell scripts/compile",
11
- "watch": "powershell scripts/watch"
11
+ "watch": "powershell scripts/watch",
12
+ "pack": "powershell scripts/pack"
12
13
  },
13
14
  "author": "<%= authorName %>",
14
15
  "license": "ISC",
@@ -0,0 +1,8 @@
1
+ # pack v1.0.0
2
+ npm run compile
3
+ if ($LASTEXITCODE -ne 0) {
4
+ Write-Error "编译失败, 停止打包"
5
+ exit $LASTEXITCODE
6
+ }
7
+ Write-Output 开始打包
8
+ zcli release -l build
@@ -62,8 +62,8 @@ const bump = async (opt) => {
62
62
  exports.bump = bump;
63
63
  /**更新版本号 */
64
64
  const CmdBump = (program) => program
65
- .command("bump")
66
- .alias("version")
65
+ .command("Bump")
66
+ .alias("bump")
67
67
  .description("更新项目版本号")
68
68
  .option("-v, --version <version>", "指定版本号, 为 `current` 时不更新版本号, 格式应为 `${number}.${number}.${number}`")
69
69
  .action(exports.bump);
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.cliRoute = cliRoute;
4
4
  const commander_1 = require("commander");
5
+ const Bump_1 = require("./Bump");
5
6
  const CheckToken_1 = require("./CheckToken");
6
7
  const ExpandMacro_1 = require("./ExpandMacro");
7
8
  const GenI18n_1 = require("./GenI18n");
@@ -21,5 +22,6 @@ async function cliRoute() {
21
22
  (0, GenI18n_1.CmdGenI18n)(commander_1.program);
22
23
  (0, GenTemplate_1.CmdGenTemplate)(commander_1.program);
23
24
  (0, CheckToken_1.CmdCheckToken)(commander_1.program);
25
+ (0, Bump_1.CmdBump)(commander_1.program);
24
26
  commander_1.program.parse(process.argv);
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/dev-utils",
3
- "version": "1.0.90",
3
+ "version": "1.0.91",
4
4
  "description": "编译与调试工具",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -17,10 +17,9 @@
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
19
  "@deepkit/type-compiler": "^1.0.1-alpha.150",
20
- "@zwa73/utils": "*",
20
+ "@zwa73/utils": "^1.0.280",
21
21
  "cli-progress": "^3.12.0",
22
22
  "commander": "^11.1.0",
23
- "pathe": "^1.1.2",
24
23
  "ts-morph": "^23.0.0",
25
24
  "ts-node": "^10.9.2",
26
25
  "tsconfig-paths": "^4.2.0",
@@ -41,5 +40,8 @@
41
40
  "dist",
42
41
  "index.js",
43
42
  "index.d.ts"
44
- ]
43
+ ],
44
+ "peerDependencies": {
45
+ "pathe": "^1.1.2"
46
+ }
45
47
  }