Fork Horse repository, listed by its owner. Publisher snapshot.
packages/error-reporter/vite.config.ts
Snapshot at 34e3175
1// Vite+ per-package settings. See packages/custom-gatekeeper/vite.config.ts for why `build` and
2// `test` are tasks rather than package.json scripts, and what each exclusion buys.
3
4const ownDist = { pattern: '!dist/**', base: 'package' } as const
5
6const vitestScratch = [
7 { pattern: '!**/node_modules/.vite/**', base: 'workspace' },
8 { pattern: '!**/node_modules/.vite-temp/**', base: 'workspace' },
9 { pattern: '!**/.wrangler/**', base: 'workspace' },
10] as const
11
12export default {
13 run: {
14 tasks: {
15 build: {
16 command: 'tsc',
17 cache: {
18 input: [{ auto: true }, ownDist],
19 output: ['dist/**'],
20 },
21 },
22 test: {
23 // Narrower than `vitest run`: `src/index.ts` is a Worker entrypoint with no test of its own.
24 command: 'vitest run src/format.test.ts',
25 cache: {
26 input: [{ auto: true }, ownDist, ...vitestScratch],
27 output: [{ auto: true }, ownDist, ...vitestScratch],
28 },
29 },
30 },
31 },
32}
33