Skip to content

Add missing exports entries for published JSON config files#5659

Merged
iclanton merged 2 commits intomainfrom
copilot/add-missing-exports-to-json
Feb 21, 2026
Merged

Add missing exports entries for published JSON config files#5659
iclanton merged 2 commits intomainfrom
copilot/add-missing-exports-to-json

Conversation

Copy link
Contributor

Copilot AI commented Feb 21, 2026

Fixes #5658

PR #5628 added exports fields to all packages, which restricts importable subpaths. Two packages had published JSON config files referenced by consumers that were not included in exports:

  • @microsoft/api-extractor: Add "./extends/*.json" for extends/tsdoc-base.json, used via "extends": ["@microsoft/api-extractor/extends/tsdoc-base.json"] in consumer tsdoc.json files
  • @rushstack/heft-jest-plugin: Add "./includes/*.json" for jest-shared.config.json and jest-web.config.json, used via "extends": "@rushstack/heft-jest-plugin/includes/jest-shared.config.json" in consumer Jest configs

Audited all ~130 packages with exports fields. Schema files (*.schema.json) are already covered everywhere via the existing "./lib/*.schema.json" pattern. Other manifest files (heft-plugin.json, rush-plugin-manifest.json, rush-mcp-plugin.json) are either already exported or loaded via filesystem paths rather than Node module resolution.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…t-plugin

Co-authored-by: iclanton <5010588+iclanton@users.noreply.github.com>
Copilot AI changed the title [WIP] Add missing exports to package.json for all packages Add missing exports for JSON config files in api-extractor and heft-jest-plugin Feb 21, 2026
Copilot AI requested a review from iclanton February 21, 2026 19:37
@iclanton iclanton marked this pull request as ready for review February 21, 2026 19:38
@iclanton iclanton enabled auto-merge (squash) February 21, 2026 19:39
Copilot AI changed the title Add missing exports for JSON config files in api-extractor and heft-jest-plugin Add missing exports entries for published JSON config files Feb 21, 2026
Copilot AI requested a review from iclanton February 21, 2026 19:45
@iclanton iclanton merged commit 9a55130 into main Feb 21, 2026
10 checks passed
@iclanton iclanton deleted the copilot/add-missing-exports-to-json branch February 21, 2026 22:29
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Feb 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

[api-extractor] v7.57.0 no longer exports extends/tsdoc-base.json

3 participants