mtxuilib 0.1.112 → 0.1.114

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { resolve } from "path";
2
+ import { join, resolve } from "path";
3
3
  import { exec } from "mtxlib/exec";
4
4
  import { getWorkspacePackages, patchVersion, projectRoot, } from "mtxlib/tasks/deploy/vercelHelper";
5
5
  import { z } from "zod";
@@ -23,18 +23,11 @@ export const releasePackagesTool = {
23
23
  return;
24
24
  }
25
25
  yield _jsx(BotCard, { children: "\u5F00\u59CB\u53D1\u5E03\u5230 npm \u4ED3\u5E93 " });
26
- await Promise.all(appPackages.map(async (p) => {
27
- console.log(`更新发布${p.name}(${p.version})${p.dir}`);
28
- patchVersion(resolve(p.dir, "package.json"));
29
- try {
30
- await exec(`bun run build`, { cwd: p.dir });
31
- }
32
- catch (e) {
33
- console.log("构建失败", p);
34
- return;
35
- }
36
- await exec(`npm publish`, { cwd: p.dir });
37
- }));
26
+ await exec(`bun run build`, {
27
+ cwd: join(projectDir, "apps/mtxcli"),
28
+ });
29
+ patchVersion(resolve(join(projectDir, "apps/mtxcli"), "package.json"));
30
+ await exec(`npm publish`, { cwd: join(projectDir, "apps/mtxcli") });
38
31
  return (_jsx(BotCard, { children: _jsx("div", { children: "\u5B8C\u6210" }) }));
39
32
  }
40
33
  catch (e) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mtxuilib",
3
3
  "private": false,
4
- "version": "0.1.112",
4
+ "version": "0.1.114",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },