Skip to content

fix: resolve package.json subpath/wildcard exports, peerDependencies, and transitive config imports in getNodeModuleDependencies - #5967

Open
yufulove wants to merge 1 commit into
tscircuit:mainfrom
yufulove:fix/node-module-exports-and-peer-dependencies
Open

yufulove wants to merge 1 commit into
tscircuit:mainfrom
yufulove:fix/node-module-exports-and-peer-dependencies

Conversation

@yufulove

@yufulove yufulove commented Dec 2, 2026

Copy link
Copy Markdown

Summary

  • Resolve package.json exports subpath mappings (exports["./subpath"]), wildcard subpath patterns (exports["./*"]), direct string/array exports, and nested condition maps (import, browser, module, default, require) while skipping .d.ts types entries in resolveNodeModuleImport.
  • Include peerDependencies and optionalDependencies in getAllDependencyPackages, and avoid returning early before collectAllNodeModuleDependencies so explicitly imported packages (such as transitive packages imported by tscircuit.config.ts in tsci dev) are still collected and uploaded.
  • Add unit tests covering subpath exports, wildcard exports, peerDependencies, and transitive config imports.

… and transitive config imports in getNodeModuleDependencies
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