fix: add missing tslib runtime dependency - #265
Conversation
Compiled output imports tslib at runtime (importHelpers tsconfig option) but it was never declared as a dependency, causing ERR_MODULE_NOT_FOUND when installed via npx.
🦋 Changeset detectedLatest commit: 22cbcef The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
Included review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe package now declares ChangesRuntime dependency declaration
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
commit: |



Fix #266
Summary
tsconfig.json(via@1stg/tsconfig) setsimportHelpers: true, so compiled outputemits real
import { ... } from "tslib"statements (e.g.lib/gitlab.js)tslibwas never added todependencies, sonpx changesets-gitlab@0.16.0 commentfails at runtime with
ERR_MODULE_NOT_FOUND: Cannot find package 'tslib'0.15.1didn't hit this; it's a regression introduced by 0.16.0's build outputTest plan
yarn buildsucceedsnode -e "import('./lib/gitlab.js')"succeeds (previously failed with the exactreported error)
yarn test- 46/46 passingyarn lint:tsccleanSummary by CodeRabbit
npx.