Skip to content

fix(registry): point nx 22.7+ at astro-docs and index .mdoc files#87

Merged
moshest merged 1 commit into
mainfrom
claude/fix-nx-publish-error-4QJiE
May 15, 2026
Merged

fix(registry): point nx 22.7+ at astro-docs and index .mdoc files#87
moshest merged 1 commit into
mainfrom
claude/fix-nx-publish-error-4QJiE

Conversation

@moshest
Copy link
Copy Markdown
Member

@moshest moshest commented May 15, 2026

Summary

publish-all --since 2 failed on npm/nx@22.7.2 with Directory not found: /tmp/context-git-…/docs. Nx 22.7.0 deleted the top-level docs/ directory and migrated all documentation into astro-docs/src/content/docs/ as Markdoc (.mdoc) files (Astro Starlight site).

  • registry/npm/nx.yaml — split into two version ranges: 22.7.0+astro-docs/src/content/docs, 17.0.0<22.7.0docs (preserves the path already-published older versions used).
  • packages/context/src/git.ts — add .mdoc to DOCUMENTATION_EXTENSIONS; previously .mdoc files were silently skipped, so even the right docs_path would have produced zero files.
  • packages/context/src/build.ts — extend parseMarkdown's title-stripping regex to handle .mdoc filenames.
  • .changeset/mdoc-extension-support.md — patch bump for @neuledge/context.

Test plan

  • node packages/registry/dist/cli.js build nx 22.7.2Built (1901 sections, 575936 tokens)
  • Version-range resolution: 17.0.0 / 21.0.0 / 22.6.5docs; 22.7.0 / 22.7.2 / 23.0.0astro-docs/src/content/docs
  • pnpm lint passes
  • pnpm test passes (157 context + 37 registry tests)

https://claude.ai/code/session_012qtew8ebkKeL7T6gaGGcTv


Generated by Claude Code

Nx 22.7.0 dropped the top-level `docs/` directory and migrated
documentation to `astro-docs/src/content/docs/` in Markdoc (`.mdoc`)
format, breaking publish-all for `npm/nx@22.7.2`. Add a versioned
range for 22.7.0+ pointing at the new path, keep the old range for
17.0.0–22.6.x, and teach the doc scanner to recognise `.mdoc`.

https://claude.ai/code/session_012qtew8ebkKeL7T6gaGGcTv
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 15, 2026

🦋 Changeset detected

Latest commit: c32f996

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@neuledge/context Patch
@neuledge/registry Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@moshest moshest merged commit d84e982 into main May 15, 2026
3 checks passed
@moshest moshest deleted the claude/fix-nx-publish-error-4QJiE branch May 15, 2026 14:57
@github-actions github-actions Bot mentioned this pull request May 15, 2026
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.

2 participants