Skip to content

Commit 0c3551f

Browse files
author
Julius Marminge
committed
fix: build web before desktop release packaging
1 parent fc4c600 commit 0c3551f

5 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎apps/desktop/package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ const shouldLaunchElectronAfterPack = process.env.T3CODE_DESKTOP_DEV === "1";
55
export 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‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ const internalPackagePrefixes = ["@t3tools/", "effect-acp", "effect-codex-app-se
88
export 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",

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"start:mock-update-server": "node scripts/mock-update-server.ts",
4545
"build": "vp run --filter './apps/*' --filter './packages/*' --filter './oxlint-plugin-t3code' --filter './scripts' build",
4646
"build:marketing": "vp run --filter @t3tools/marketing build",
47-
"build:desktop": "vp run --filter @t3tools/web build && vp run --filter @t3tools/desktop --filter t3 build",
47+
"build:desktop": "vp run --filter @t3tools/desktop --filter t3 build",
4848
"typecheck": "vp run -r --concurrency-limit 2 typecheck",
4949
"lint": "vp lint --report-unused-disable-directives",
5050
"lint:mobile": "node scripts/mobile-native-static-check.ts",

0 commit comments

Comments
 (0)