Changelog

Every release, straight from the changesets. Newest first.

v0.4.7
patch

Fix findPackageInMonorepo to check root package.json first, enabling analysis of repos where the main package is at the root (like zod)

v0.4.6
patch

Fix monorepo package detection for pnpm workspaces by parsing pnpm-workspace.yaml

v0.4.5
patch

Use improved entry point detection in generate command. When using --cwd, the CLI now correctly resolves .d.ts paths to source files and supports more project structures.

v0.4.4
patch

Fix entry point detection to prefer .ts source files over .d.ts declarations. Scanning repos with types field pointing to .d.ts now correctly resolves to source files like src/index.ts.

v0.4.0
minor

OpenPkg Spec Builder Improvements

New Features

  • Class inheritance: Capture extends and implements clauses
  • Namespace exports: Support export namespace X { ... }
  • Function overloads: Capture all overload signatures
  • Mapped/conditional types: Preserve tsType for complex types
  • External types: Graceful handling with kind: "external" stubs
  • Interface methods: Serialize method signatures on interfaces
  • Index signatures: Capture [key: string]: T patterns
  • Default values: Preserve parameter defaults
  • Rest parameters: Mark with rest: true
  • Getter/setter pairs: Merge into single member
  • Call/construct signatures: Capture callable interfaces
  • Type predicates: Preserve x is string and asserts x returns
  • Union discriminants: Add discriminator: { propertyName } for tagged unions
  • Re-export aliasing: Correctly track export { X as Y }

CLI Changes

  • Renamed --no-external-types to --skip-resolve across all commands
  • Added --skip-resolve to report and scan commands
  • New warnings for unresolved external types
  • Info message when node_modules not found

Bug Fixes

  • Fixed circular type reference detection
  • Fixed destructured parameter TSDoc matching
  • Fixed drift detection for destructured params