Description
README.md's own "Basic Usage" Quick Start example does import { createEscrow } from '@trustflow/sdk/escrow';. But package.json's "exports" field only declares a single "." condition (types/import/require all pointing at dist/index.*) — there is no "./escrow" entry. Under Node's package-exports resolution, any subpath not explicitly listed is unresolvable, so the documented example fails with ERR_PACKAGE_PATH_NOT_EXPORTED for real consumers of the published package.
Component
SDK
Difficulty
🟢 Easy
Tasks
Acceptance Criteria
Estimated Time
<1 day
Description
README.md's own "Basic Usage" Quick Start example does
import { createEscrow } from '@trustflow/sdk/escrow';. Butpackage.json's"exports"field only declares a single"."condition (types/import/requireall pointing atdist/index.*) — there is no"./escrow"entry. Under Node's package-exports resolution, any subpath not explicitly listed is unresolvable, so the documented example fails withERR_PACKAGE_PATH_NOT_EXPORTEDfor real consumers of the published package.Component
SDK
Difficulty
🟢 Easy
Tasks
createEscrowshould just be part of the root export (simplest, sincesrc/index.tsalready re-exports the./escrowbarrel) or whether a genuine./escrowsubpath build target should be added viatsup.config.tstsup.config.ts'sentryandpackage.json'sexportsmap with matchingtypes/import/requireconditionsnode_modulesinstall, not just from sourceAcceptance Criteria
examples/actually resolves against the published package'sexportsmapEstimated Time
<1 day