Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/teleport-test/src/standalone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ const preserveExistingEnv = (uidl: ProjectUIDL, envPath: string): void => {
// Files/dirs that are NOT produced by the generator and must survive a clean:
// install artifacts and user-owned config. Everything else in the project dir
// is regenerated every run.
// `.vscode`, `.claude` and `CLAUDE.md` are editor/agent scaffolding dropped into
// the generated project by tooling (or by hand) — the generator never emits
// them, so wiping them would only cost the developer their setup.
const PRESERVE_ON_CLEAN = new Set([
'node_modules',
'.env',
Expand All @@ -179,6 +182,9 @@ const PRESERVE_ON_CLEAN = new Set([
'package-lock.json',
'yarn.lock',
'.next',
'.vscode',
'.claude',
'CLAUDE.md',
])

// Remove previously-generated files before a fresh run so STALE ORPHANS can't
Expand Down
Loading