You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(packages/core): use deep glob pattern for recursive workspace includes (#69)
* fix(packages/core): use deep glob pattern for recursive workspace includes
The default include pattern for workspace items was always `docs/*.md`
regardless of the `recursive` flag. This meant recursive mode with
no explicit `include` would only discover files at the top level of
`docs/`, never in subdirectories like `docs/guides/setup.md`.
Switch the default to `docs/**/*.md` when `recursive: true` so
fast-glob discovers nested files as expected.
Co-Authored-By: Claude <noreply@anthropic.com>
* chore(repo): add changeset and disable coderabbit walkthrough
Co-Authored-By: Claude <noreply@anthropic.com>
* fix: apply CodeRabbit auto-fixes
Fixed 1 file(s) based on 1 unresolved review comment.
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
* chore(repo): gut coderabbit walkthrough content
Collapse walkthrough and disable all sub-features: changed files
summary, sequence diagrams, linked issues, related issues/PRs,
and review status messages.
Co-Authored-By: Claude <noreply@anthropic.com>
* chore(repo): disable all coderabbit walkthrough sub-features
Disable every feature that populates the walkthrough comment:
high_level_summary, review_status, review_details, changed_files_summary,
sequence_diagrams, estimate_code_review_effort, assess_linked_issues,
related_issues, related_prs. The walkthrough comment itself has no
master toggle in the v2 schema — this is as close to off as it gets.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(packages/core): prevent double-prefixing repo-relative include paths
When a workspace item provides an explicit repo-relative include like
`apps/api/docs/**/*.md`, `normalizeAndResolveInclude` was prepending
the basePath derived from `path`, producing a broken double path:
`apps/api/apps/api/docs/**/*.md`. The glob silently matched 0 files,
so only landing pages appeared in the output.
Skip the basePath prefix when the pattern already starts with it.
Co-Authored-By: Claude <noreply@anthropic.com>
* chore(repo): update changeset to cover both workspace fixes
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(packages/core): warn on double-prefixed include instead of auto-correcting
Replace the silent auto-fix with a warning that tells the user their
include pattern is already repo-relative and will be double-prefixed.
Include is documented as relative to the workspace path — the user
should fix their config.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(packages/core): move include prefix check to config validation
Remove the log.warn from the sync hot path and add a proper config
check that surfaces during `zpress check`. When a workspace include
pattern already starts with the basePath derived from path, warn that
the resolved glob will be double-prefixed and likely match zero files.
- Add ConfigWarning type and configWarning factory to @zpress/config
- Add checkWorkspaceIncludes to @zpress/core (exported)
- Wire warnings into runConfigCheck and presentResults in @zpress/cli
Co-Authored-By: Claude <noreply@anthropic.com>
* docs(packages/core): update JSDoc for conditional include default
Reflect that the default include pattern is now docs/**/*.md when
recursive is true, otherwise docs/*.md.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(packages/core): remove glob patterns from JSDoc to fix declaration emit
TypeScript's declaration emitter interprets the sequence star-slash
inside JSDoc backtick spans as end-of-comment, breaking the build.
Remove glob examples from exported function JSDoc blocks.
Co-Authored-By: Claude <noreply@anthropic.com>
* fix(packages/cli): add warnings field to check test fixtures
The ConfigCheckResult interface gained a warnings field but existing
test fixtures were not updated, causing presentResults to crash on
configResult.warnings.length.
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: CodeRabbit <noreply@coderabbit.ai>
Fix workspace include resolution for `apps` and `packages` items:
8
+
9
+
- Use deep glob pattern (`docs/**/*.md`) as default include when `recursive: true`. Previously the default was always `docs/*.md` regardless of the flag.
10
+
- Add config check warning when an explicit include pattern already starts with the basePath derived from `path`, which causes double-prefixing and silently matches zero files. Surfaces during `zpress check` before the build step.
0 commit comments