-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
43 lines (42 loc) · 1.05 KB
/
Copy pathvite.config.ts
File metadata and controls
43 lines (42 loc) · 1.05 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 { defineConfig } from 'vite-plus';
export default defineConfig({
run: {
cache: {
scripts: true, // Cache package.json scripts run via vp run
tasks: true, // Cache task definitions (default)
},
tasks: {
// Named "ci" to avoid collision with per-package "build" scripts.
// CI pipeline uses this. Output paths archive dist/ for restore.
ci: {
command: 'pnpm run build',
output: ['packages/*/dist/**'],
dependsOn: [],
},
},
},
staged: {
'*': 'vp check --fix',
},
fmt: {
ignorePatterns: [
'.opencode/plugins/**',
'**/dist/**',
'examples/**',
'**/meta/_journal.json',
'packages/dali-memory/dali-memory.schema.json',
],
singleQuote: true,
},
lint: {
options: { typeAware: true, typeCheck: true },
rules: { 'unicorn/no-thenable': 'off' },
ignorePatterns: [
'.opencode/plugins/**',
'**/dist/**',
'examples/**',
'**/meta/_journal.json',
'packages/dali-memory/dali-memory.schema.json',
],
},
});