Skip to content

Commit 65cdb20

Browse files
v1999: Stop starter installs from rewriting agent instructions (samebase/samebase#1559)
Samebase-Source-Repository: samebase/samebase Samebase-Source-Commit: 7a877dbc55ec98b948dc8866aa7a4b036d10646f Samebase-Source-Path: templates/base
1 parent 45bca4f commit 65cdb20

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ and deploy behavior. Use the
104104
- `convex/_generated/api.*`, `dataModel.d.ts`, and `server.*` are generated by Convex.
105105
- `convex/_generated/ai/`, `.agents/skills/`, `skills-lock.json`, and the marked Convex sections in
106106
`AGENTS.md` and `CLAUDE.md` are managed by `npx convex ai-files install`.
107-
- The marked Vite+ section in `AGENTS.md` is managed by `vp config`.
107+
- The marked Vite+ section in `AGENTS.md` is generated by `vp config`. The package `prepare`
108+
command uses `--no-agent`, so installs do not rewrite it.
108109
- `scripts/generate-cloudflare-redirects.ts` owns only the marked generated block in
109110
`public/_redirects`. Custom redirect rules can stay outside that block.
110111

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"generate:dev-launcher-version": "node ./scripts/generate-dev-launcher-version.ts --write",
2929
"lint": "vp lint --report-unused-disable-directives",
3030
"preview": "vp preview",
31-
"prepare": "vp config",
31+
"prepare": "vp config --no-agent",
3232
"test": "vp test",
3333
"typecheck": "tsc && vp run typecheck:node && tsc --project convex/tsconfig.json",
3434
"typecheck:node": "tsc --project tsconfig.node.json",

0 commit comments

Comments
 (0)