Skip to content

Commit af5b7c5

Browse files
committed
fix(app): bundle docker-git CLI and drop workspace lib runtime dep
1 parent 9aeaf0c commit af5b7c5

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

packages/app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
"prebuild": "pnpm -C ../lib build",
1414
"build": "pnpm run build:app && pnpm run build:docker-git",
1515
"build:app": "vite build --ssr src/app/main.ts",
16+
"prepack": "pnpm run build:docker-git",
1617
"dev": "vite build --watch --ssr src/app/main.ts",
1718
"prelint": "pnpm -C ../lib build",
1819
"lint": "PATH=../../scripts:$PATH vibecode-linter src/",
1920
"lint:tests": "PATH=../../scripts:$PATH vibecode-linter tests/",
2021
"lint:effect": "PATH=../../scripts:$PATH eslint --config eslint.effect-ts-check.config.mjs .",
2122
"prebuild:docker-git": "pnpm -C ../lib build",
22-
"build:docker-git": "tsc -p tsconfig.build.json",
23+
"build:docker-git": "vite build --config vite.docker-git.config.ts",
2324
"check": "pnpm run typecheck",
2425
"clone": "pnpm -C ../.. run clone",
2526
"docker-git": "node dist/src/docker-git/main.js",
@@ -53,7 +54,6 @@
5354
"homepage": "https://github.com/ProverCoderAI/docker-git#readme",
5455
"packageManager": "pnpm@10.28.0",
5556
"dependencies": {
56-
"@effect-template/lib": "workspace:*",
5757
"@effect/cli": "^0.73.0",
5858
"@effect/cluster": "^0.56.1",
5959
"@effect/experimental": "^0.58.0",
@@ -73,6 +73,7 @@
7373
"ts-morph": "^27.0.2"
7474
},
7575
"devDependencies": {
76+
"@effect-template/lib": "workspace:*",
7677
"@biomejs/biome": "^2.3.11",
7778
"@effect/eslint-plugin": "^0.3.2",
7879
"@effect/language-service": "latest",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import path from "node:path"
2+
import { fileURLToPath } from "node:url"
3+
import { defineConfig } from "vite"
4+
import tsconfigPaths from "vite-tsconfig-paths"
5+
6+
const __filename = fileURLToPath(import.meta.url)
7+
const __dirname = path.dirname(__filename)
8+
9+
export default defineConfig({
10+
plugins: [tsconfigPaths()],
11+
publicDir: false,
12+
resolve: {
13+
alias: {
14+
"@": path.resolve(__dirname, "src"),
15+
"@effect-template/lib": path.resolve(__dirname, "../lib/src")
16+
}
17+
},
18+
build: {
19+
target: "node20",
20+
outDir: "dist",
21+
sourcemap: true,
22+
ssr: "src/docker-git/main.ts",
23+
rollupOptions: {
24+
output: {
25+
format: "es",
26+
entryFileNames: "src/docker-git/main.js",
27+
inlineDynamicImports: true
28+
}
29+
}
30+
},
31+
ssr: {
32+
target: "node"
33+
}
34+
})

0 commit comments

Comments
 (0)