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 @@...@@ -5,7 +5,6 @@
5 "type": "module",5 "type": "module",
6 "main": "dist-electron/main.cjs",6 "main": "dist-electron/main.cjs",
7 "scripts": {7 "scripts": {
8 "build": "vp pack",
9 "ensure:electron": "node scripts/ensure-electron-runtime.mjs",8 "ensure:electron": "node scripts/ensure-electron-runtime.mjs",
10 "start": "node scripts/start-electron.mjs",9 "start": "node scripts/start-electron.mjs",
11 "typecheck": "tsgo --noEmit",10 "typecheck": "tsgo --noEmit",
apps/desktop/vite.config.ts+5
...@@ -5,6 +5,11 @@ const shouldLaunchElectronAfterPack = process.env.T3CODE_DESKTOP_DEV === "1";...@@ -5,6 +5,11 @@ const shouldLaunchElectronAfterPack = process.env.T3CODE_DESKTOP_DEV === "1";
5export default defineConfig({5export default defineConfig({
6 run: {6 run: {
7 tasks: {7 tasks: {
8 build: {
9 command: "vp pack",
10 dependsOn: ["t3#build"],
11 cache: false,
12 },
8 dev: {13 dev: {
9 command: "cross-env T3CODE_DESKTOP_DEV=1 vp pack --watch",14 command: "cross-env T3CODE_DESKTOP_DEV=1 vp pack --watch",
10 dependsOn: ["t3#build"],15 dependsOn: ["t3#build"],
apps/server/package.json-1
...@@ -16,7 +16,6 @@...@@ -16,7 +16,6 @@
16 "type": "module",16 "type": "module",
17 "scripts": {17 "scripts": {
18 "dev": "node --watch src/bin.ts",18 "dev": "node --watch src/bin.ts",
19 "build": "node scripts/cli.ts build",
20 "build:bundle": "vp pack",19 "build:bundle": "vp pack",
21 "start": "node dist/bin.mjs",20 "start": "node dist/bin.mjs",
22 "typecheck": "tsgo --noEmit",21 "typecheck": "tsgo --noEmit",
apps/server/vite.config.ts+9
...@@ -8,6 +8,15 @@ const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-se...@@ -8,6 +8,15 @@ const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-se
8export default mergeConfig(8export default mergeConfig(
9 baseConfig,9 baseConfig,
10 defineConfig({10 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 },
11 pack: {20 pack: {
12 entry: ["src/bin.ts"],21 entry: ["src/bin.ts"],
13 outDir: "dist",22 outDir: "dist",