Skip to content

[codex] Skip private writing paths - #6

Merged
dbtlr merged 1 commit into
mainfrom
codex/skip-underscore-writing-paths
Jun 20, 2026
Merged

[codex] Skip private writing paths#6
dbtlr merged 1 commit into
mainfrom
codex/skip-underscore-writing-paths

Conversation

@dbtlr

@dbtlr dbtlr commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Summary

Updates the writing sync process so underscore-prefixed source files and directories are treated as private authoring/process space.

What changed

  • scripts/sync-writing.ts now skips any directory entry whose basename starts with _ during traversal.
  • README documents that _templates/, _meta.md, and similar vault-side publishing/process paths are ignored entirely.

Why

This lets the local writing source folder contain templates, metadata, notes, and publishing process scaffolding beside article drafts without the sync script parsing or reporting them.

Validation

  • Fixture sync test where _meta.md and _templates/template.md looked publishable but were ignored, while articles/real-post.md synced.
  • pnpm sync:writing -- --dry-run
  • pnpm exec tsc --ignoreConfig --noEmit --module NodeNext --moduleResolution NodeNext --target ES2024 --types node --esModuleInterop scripts/sync-writing.ts
  • pnpm check
  • pnpm build

pnpm check and pnpm build still show the known empty-writing collection warning until the first article exists.

@dbtlr
dbtlr marked this pull request as ready for review June 20, 2026 03:27
@github-actions

Copy link
Copy Markdown

🔎 Preview deploy

https://bda59dd4-dbtlr-com.dbs-account.workers.dev

Updated for 269e54c · ephemeral version, not production.

@dbtlr
dbtlr merged commit 1fab8f3 into main Jun 20, 2026
1 check passed
@dbtlr
dbtlr deleted the codex/skip-underscore-writing-paths branch June 20, 2026 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant