abraham / abraham/pkg-ok

Suggestion: verify no dependencies are locally linked

オープン
#11 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement help wanted
主要言語
TypeScript
スター
238
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

A problem I often have is I'm working on two packages, e.g. `my-library` and `my-cli`, and the latter depends on the former. (Doesn't have to be a CLI, this is just for illustration.) In this situation, it's common to do `npm link my-library` from `my-cli` during development. But then you might forget that this dependency is linked locally, and you think `my-cli` is all ready to publish (automated and manual testing seems to show it's all working nicely), so you publish it... But then it turns out the published version doesn't work, because you forgot to unlink, bump and republish the library, and then update the dependency for real in `my-cli`.

So it might be useful to add a check that prevents you publishing the package if any of its direct dependencies are local symlinks.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。