mtxuilib 0.1.113 → 0.1.115
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,17 @@ export const releasePackagesTool = {
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
yield _jsx(BotCard, { children: "\u5F00\u59CB\u53D1\u5E03\u5230 npm \u4ED3\u5E93 " });
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}));
|
|
26
|
+
const mtxcliProjectDir = join(projectDir, "apps/mtxcli");
|
|
27
|
+
console.log(`bun build: ${mtxcliProjectDir}`);
|
|
28
|
+
await exec(`npx run build`, {
|
|
29
|
+
cwd: mtxcliProjectDir,
|
|
30
|
+
env: {
|
|
31
|
+
...process.env,
|
|
32
|
+
NEXT_BUILD_OUTPUT: ".next",
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
patchVersion(resolve(mtxcliProjectDir, "package.json"));
|
|
36
|
+
await exec(`npm publish`, { cwd: mtxcliProjectDir });
|
|
38
37
|
return (_jsx(BotCard, { children: _jsx("div", { children: "\u5B8C\u6210" }) }));
|
|
39
38
|
}
|
|
40
39
|
catch (e) {
|