Repository navigation
fix(dx): clearer CLI errors, version: 2 hint, strict-safe doc snippets - #1198
Merged
Merged
Conversation
…ompile under strict settings - A v2-style spec missing 'version: 2' now says to add it instead of pointing at the v1 format - Mistyped commands suggest the closest one instead of dumping the help - lousho build errors use the same code + usage + docs format as other commands - Doc snippets are checked with noUncheckedIndexedAccess, matching the starter; four fixed - README states the supported Node versions (22.19+ or 24) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes from a fresh-developer DX audit (README quickstart, starter, CLI).
version: 2: a v2-shaped spec missing the field was told to rewrite itself in the v1 format. It now says "addversion: 2at the top". Test inloadSpec.test.ts.lousho dveprintsDid you mean 'dev'?and one line instead of the full help. Test inunknownCommand.test.ts.lousho builderrors: now useusageError(code, usage, docs link) like every other command.verify-docs-snippetsnow type-checks withnoUncheckedIndexedAccess, which the starter enables; four snippets that failed under it are fixed. All 372 snippets pass.Checks: typecheck,
eslint src, the touched tests and the snippet check pass.🤖 Generated with Claude Code