peerDependencies について
- 一例
- eslint-config-weseek 側の
peerDependencies
は、使う側( growi 本体など)がpeerDependencies
のライブラリを使うこと(devDependencies に入る)を想定しているという意味合いを持つ
- eslint-config-weseek 側の
Having a peer dependency means that your package needs a dependency that is the same exact dependency as the person installing your package. This is useful for packages like react that need to have a single copy of react-dom that is also used by the person installing it.
yarn.lock に追加しない方法
-
yarn add
-
yarn install
-
上記2つのコマンド入力の際に
--frozen-lockfile
を入れることで、依存関係を記憶せず(yarn.lock を更新せず)、ライブラリの更新が必要な時に失敗するとのこと -
参考