Conversation
Published d.ts files import @webbtc/webln-types, so consumers must resolve it without installing the types package by hand. Use import type at the source sites; keep the package in dependencies while the declarations re-export those types. Signed-off-by: Yi Zhan <stevesough@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe package now declares ChangesWebLN type dependency
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The SDK now ships its required WebLN type dependency for TypeScript consumers while preserving runtime import behavior. The packaged consumer path is covered, with no remaining merge-readiness risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi, thanks for the PR! I'll review and test this before doing the next release. |
Published
.d.tsfiles import@webbtc/webln-types, but that package was only listed underdevDependencies. TypeScript consumers that do not install it themselves fail with:import typeis used at the source import sites. The published declarations still re-export those types, so the package is moved todependenciesso package managers install it for consumers.A smoke test packs the SDK and typechecks a clean TypeScript project that does not add
@webbtc/webln-typesitself.Fixes #234
Reported by @rolznz
Summary by CodeRabbit
Bug Fixes
Tests