authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-06-03 19:15:06-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-06-03 19:15:06-07:00
loge4643eccc7efa07a0129b7ed9765883cfc758c53
tree7cdb9e31803bc41b99c8b781ed486903aac718c2
parent4956415f7fb5413583fc43d4b370ceb67e6e3eee
signature Signed by PGP key B5690EEEBB952194

fix: build web before desktop release packaging (#2934)

Co-authored-by: Julius Marminge <julius@mac.lan>

4 files changed, 14 insertions(+), 2 deletions(-)

apps/desktop/package.json-1
......@@ -5,7 +5,6 @@
55 "type": "module",
66 "main": "dist-electron/main.cjs",
77 "scripts": {
8 "build": "vp pack",
98 "ensure:electron": "node scripts/ensure-electron-runtime.mjs",
109 "start": "node scripts/start-electron.mjs",
1110 "typecheck": "tsgo --noEmit",
apps/desktop/vite.config.ts+5
......@@ -5,6 +5,11 @@ const shouldLaunchElectronAfterPack = process.env.T3CODE_DESKTOP_DEV === "1";
55export default defineConfig({
66 run: {
77 tasks: {
8 build: {
9 command: "vp pack",
10 dependsOn: ["t3#build"],
11 cache: false,
12 },
813 dev: {
914 command: "cross-env T3CODE_DESKTOP_DEV=1 vp pack --watch",
1015 dependsOn: ["t3#build"],
apps/server/package.json-1
......@@ -16,7 +16,6 @@
1616 "type": "module",
1717 "scripts": {
1818 "dev": "node --watch src/bin.ts",
19 "build": "node scripts/cli.ts build",
2019 "build:bundle": "vp pack",
2120 "start": "node dist/bin.mjs",
2221 "typecheck": "tsgo --noEmit",
apps/server/vite.config.ts+9
......@@ -8,6 +8,15 @@ const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-se
88export default mergeConfig(
99 baseConfig,
1010 defineConfig({
11 run: {
12 tasks: {
13 build: {
14 command: "node scripts/cli.ts build",
15 dependsOn: ["@t3tools/web#build"],
16 cache: false,
17 },
18 },
19 },
1120 pack: {
1221 entry: ["src/bin.ts"],
1322 outDir: "dist",