Skip to content

Convert directory-tree to TypeScript - #12

Merged
camacho merged 3 commits into
mainfrom
ts-directory-tree
Jul 5, 2026
Merged

Convert directory-tree to TypeScript#12
camacho merged 3 commits into
mainfrom
ts-directory-tree

Conversation

@camacho

@camacho camacho commented Jul 5, 2026

Copy link
Copy Markdown
Owner

Wave-A TypeScript conversion (engines pilot pattern), with ONE disclosed behavior addition: dist joins the transform's default ignore list — build artifacts leaked into the self-rendered README tree, and CI regenerates docs before building, so the committed tree must be dist-free (same trap class as phase 2's .turbo ghost; changeset documents it). Review verified regen-before-build AND regen-after-build both stay dist-free.

Types: @types/archy (shapes verified) + directory-tree's own shipped types; the phase-1 attributes: ['type'] fix preserved verbatim. Reviewer note (recorded): node.children ?? [] is a type-safety accommodation — the undefined branch is unreachable with this plugin's options (verified against directory-tree@3.6.0 source).

Validation: typecheck + lint + prettier clean · workspace tests green · tarball gate incl. consumer-typecheck · node example.ts exit 0 · docs idempotent in both build orderings · code-reviewed (APPROVE)

@camacho
camacho merged commit 77d5aff into main Jul 5, 2026
2 checks passed
@camacho
camacho deleted the ts-directory-tree branch July 5, 2026 20:37
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