Repository navigation
feat(versions): keep developer setup files and tests/ in Git snapshots - #1678
Merged
gregpriday merged 4 commits intoNov 28, 2026
Merged
gregpriday merged 4 commits into
gregpriday merged 4 commits into
Conversation
- Snapshot allowlist takes tsconfig*.json, wrangler.{toml,json,jsonc}, netlify.toml and <name>.config.* at the top, and tests/ at any depth
- Wrangler state and a test run's reports stay out as caches; .envrc is private
- Publications keep carrying the site alone, never the developer's own files
- An export milestone's copy check covers files added under tests/
…orts out of snapshots - .gitmodules is local state and a .auth folder private at any depth; .envrc.<name> is private - Named setup configs (vitest.config.unit.ts) are kept, Vite's timestamped copies are not - Only tests/coverage is a test run's coverage, not a fixture folder named so - An export milestone's copy check lists the copy as a snapshot walk does, so a fixture repository no longer stops it
…ure repository through a milestone export - A .auth folder is a private name, in exports and snapshots alike - The milestone check skips a copied file the project's own snapshot walk leaves out, unless it is gone from the project
…-preserve-developer-configuration-files
gregpriday
deleted the
feature/issue-1484-preserve-developer-configuration-files
branch
November 28, 2026 09:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Git-backed saved versions (and the export milestones and restore backups built on the same snapshot) now keep the developer's own setup files and tests, as an Editable Source export already does. Private files stay out at any depth.
Resolves #1484
Changes
src/main/project/snapshot-inventory.ts): at the project's top,tsconfig*.json,wrangler.toml/wrangler.json/wrangler.jsonc,netlify.tomland any<name>.config[.<variant>].{js,ts,mjs,cjs,mts,cts,json}(eslint.config.js,vitest.config.ts,playwright.config.e2e.ts,searchsocket.config.ts). Thevite.config.*.timestamp-*.mjscopies Vite writes while it runs are not kept.tests/is kept at any depth..wrangler/state at any depth, a test run'splaywright-report/,test-results/,blob-report/undertests/andtests/coverage/,.gitmodules(no version can hold one, so a fixture's copy would abort the save), and two new private names that exports leave out too: direnv's.envrc/.envrc.<name>, and a.auth/folder (Playwright's signed-in browser state).developerOnly), sotests/and tool configs never reach a published site, and a build setting that loads one still stops with "a publication does not carry".copiedAsCaptured): lists the copy the way a snapshot walk does, so a test file added between the milestone's capture and the copy stops the export. A fixture repository undertests/(its.gita file, a folder or a link) doesn't stop it.package.json,src/) either.Testing
tests/unit/snapshot-inventory.test.ts,tests/unit/publication-controller.test.ts,tests/unit/milestones-export.test.ts,tests/unit/export.test.ts. The new snapshot-place and capture tests and the milestone "test added" / fixture-repository cases fail without the change.develop, the tests coveringcontroller.ts(the one file changed on both sides) were rerun: green.npm run typecheck: green.Not changed
wrangler.toml([vars]) is still captured: the issue asks for that file, and Wrangler's secrets belong in.dev.vars, which stays private.