From fb7e6c77a7ac341adbe88f14fde955ab1fb0fb4b Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Thu, 23 Apr 2026 14:26:44 -0700 Subject: [PATCH] chore: update no-production-build rules to clarify build restrictions and improve user guidance --- .cursor/rules/no-production-build.mdc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.cursor/rules/no-production-build.mdc b/.cursor/rules/no-production-build.mdc index f84273d..cc56a72 100644 --- a/.cursor/rules/no-production-build.mdc +++ b/.cursor/rules/no-production-build.mdc @@ -1,10 +1,13 @@ --- -description: Do not run Vite/production builds by default; they freeze this environment. +description: Do not run project or production builds unless the user explicitly asks. alwaysApply: true --- -# Production build (Vite) +# Do not build projects -Do **not** run `vite build`, `bun run build`, `npm run build`, or equivalent full production bundles **unless the user explicitly asks** for a build. They tend to freeze or stall here. +Do **not** run builds for apps, samples, or firmware in this repo **unless the user explicitly asks** for a build. That includes: -Prefer lighter checks when validating changes (e.g. `tsc --noEmit`, `eslint`, targeted tests) or rely on static review. If a build is truly needed, say so and let the user run it locally or in CI. +- Web / bundlers: `vite build`, `bun run build`, `npm run build`, or equivalent production bundles (they often freeze or stall here). +- Embedded / samples: PlatformIO (`pio run`, `platformio`), firmware toolchains, `cmake --build`, `cargo build` for project crates, and similar full project builds. + +Prefer lighter checks when validating changes (e.g. `tsc --noEmit`, `eslint`, targeted tests) or static review. If a build is truly needed, say so and let the user run it locally or in CI.