From ced9ed514b84001fe8f8b4b2fdf64be43457120b Mon Sep 17 00:00:00 2001 From: andig Date: Tue, 11 Aug 2026 15:04:24 +0200 Subject: [PATCH] chore: narrow the vitest cache exclusion (#32738) --- AGENTS.md | 1 + vite.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index d4b843b93..bc2cf9d55 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -21,6 +21,7 @@ This file provides guidance to AI coding agents when working with code in this r - `make lint-ui` - run frontend linting - `vp run dev` - start Vue dev server (http://127.0.0.1:7071) - `vp run playwright` - run integration tests +- `build`, `openapi` and `test` are cached tasks in `vite.config.ts`, run them through `vp run` instead of adding `package.json` scripts - `evcc --config [file] --disable-auth` - run a throw-away instance for UI checks without password setup - `evcc --template-type [type] --template [file]` - test device templates - `make docs` - generate template documentation diff --git a/vite.config.ts b/vite.config.ts index 1f27df5b5..953be0b01 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -29,7 +29,7 @@ export default defineConfig({ command: "cross-env TZ=Europe/Berlin NODE_OPTIONS=--no-experimental-webstorage vp test", // vitest keeps its own result cache below node_modules - input: [{ auto: true }, "!**/node_modules/.vite/**"], + input: [{ auto: true }, "!**/node_modules/.vite/vitest/**"], }, }, },