]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
chore: move jQuery & what-input to peerDependencies #11290 11294/head
authorNicolas Coden <nicolas@ncoden.fr>
Tue, 22 May 2018 21:15:02 +0000 (23:15 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Tue, 22 May 2018 21:15:02 +0000 (23:15 +0200)
commitb1b9408becba4142efff9601acfc8c05be870be3
tree1565d06c58b553030927c3efcba048cb6df882af
parentcfbf5a4079d4a503b3fd4c14ab435146cc42630a
chore: move jQuery & what-input to peerDependencies #11290

peerDependencies is for dependencies that are exposed to (and expected to be used by) the consuming code, as opposed to "private" dependencies that are not exposed, and are only an implementation detail.

* We need `jQuery` and `motion-ui` as peerDependencies instead of dependencies because we actually expect the user to install them. We cannot simply remove them because we still need the package managers to check for versions compatibilities and warn the user if they are missing.
* We need `jQuery` and `motion-ui` as devDependencies too because we use them for tests/build/documentation and peerDependencies are not installed (even in development mode - https://github.com/yarnpkg/yarn/issues/1503).

See https://github.com/zurb/foundation-sites/issues/11290
package.json