Skip to content

Add subpath exports for library consumers#23

Merged
valentinozegna merged 1 commit into
mainfrom
add-subpath-exports
Feb 21, 2026
Merged

Add subpath exports for library consumers#23
valentinozegna merged 1 commit into
mainfrom
add-subpath-exports

Conversation

@valentinozegna
Copy link
Copy Markdown
Contributor

Summary

  • Add Node.js exports field to package.json with subpath entries for ./service and ./types
  • Re-export public API types from service.ts so consumers can import functions and types from a single path

Enables:

import { listDesigns, type ErrorResult, isErrorResult } from '@intelligentelectron/universal-netlist/service'
import type { ParsedNetlist } from '@intelligentelectron/universal-netlist/types'

Test plan

  • npm run build — compiles without errors
  • npm run type-check — no type errors
  • npm test — all 255 tests pass
  • npm pack --dry-run — confirms dist/service.* and dist/types.* included

Add Node.js subpath exports to package.json so consumers can import
service functions and types directly:
  import { listDesigns } from '@intelligentelectron/universal-netlist/service'
  import type { ParsedNetlist } from '@intelligentelectron/universal-netlist/types'

Re-export public API types from service.ts for single-import convenience.
@valentinozegna valentinozegna merged commit 4c37b73 into main Feb 21, 2026
3 checks passed
@valentinozegna valentinozegna mentioned this pull request 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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant