-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
43 lines (41 loc) · 1.03 KB
/
vite.config.ts
File metadata and controls
43 lines (41 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { fileURLToPath } from "node:url";
import { defineConfig } from "vite-plus";
const ignoredPaths = [
"dist/**",
"**/dist/**",
"node_modules/**",
"**/node_modules/**",
".pnpm-store/**",
".zed/**",
"packages/webui/src/routeTree.gen.ts",
];
const aliases = {
"@codeworksh/aikit": fileURLToPath(new URL("./packages/aikit/src/index.ts", import.meta.url)),
"@codeworksh/harness": fileURLToPath(new URL("./packages/harness/src/index.ts", import.meta.url)),
"@codeworksh/harness/codemode/drivers": fileURLToPath(
new URL("./packages/harness/src/harness/codemode/drivers/drivers.ts", import.meta.url),
),
"@codeworksh/utils": fileURLToPath(new URL("./packages/utils/src/index.ts", import.meta.url)),
};
export default defineConfig({
resolve: {
alias: aliases,
},
test: {
include: ["packages/**/*.test.ts"],
},
lint: {
ignorePatterns: ignoredPaths,
options: {
typeAware: true,
typeCheck: true,
},
},
fmt: {
ignorePatterns: ignoredPaths,
printWidth: 120,
useTabs: true,
tabWidth: 3,
sortPackageJson: true,
},
});