fuzzyworld-tools / files / vite / index.d.ts
index.d.ts
45b1fe38 2026-10-27 Pavel Safronov | 1 | import type { Plugin } from 'vite'; |
| 2 | ||
| 3 | export interface FuzzyworldAppConfig { | |
| 4 | app: string; | |
| 5 | title?: string; | |
| 6 | description?: string; | |
| 7 | repo?: string; | |
| 8 | prebuild?: string[]; | |
| 9 | checks?: string[]; | |
| 10 | build?: string; | |
| 11 | out?: string; | |
| 12 | } | |
| 13 | ||
de3a8483 2026-10-27 Pavel Safronov | 14 | /** Reads the "fuzzyworld" section of the nearest package.json at or above `root` (default: cwd). */ |
45b1fe38 2026-10-27 Pavel Safronov | 15 | export function readAppConfig(root?: string): FuzzyworldAppConfig; |
| 16 | ||
| 17 | /** Sets `base` to `/<app>/` for builds, from package.json `fuzzyworld.app`. */ | |
| 18 | export default function fuzzyworld(): Plugin; |