Skip to content

Commit

Permalink
Re-added moment to dependencies
Browse files Browse the repository at this point in the history
From npm3 forward the behevior of peer-dependencies has changed:

The peer-depency in previous versions would download the package if it
wasn't listed in dependencies section of package.json. This led to some
discussion and eventually to the change so that the peers are used
specificly to find conflicts in transitive dependencies and don't
download any packages unless specified in dependencies.

Announcement: http://blog.npmjs.org/post/110924823920/npm-weekly-5

Discussion: npm/npm#5080 (comment)
  • Loading branch information
CalebMorris committed Dec 10, 2016
1 parent c64c036 commit 7924af4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"email": "caleb.morris.g@gmail.com"
},
"license": "MIT",
"dependencies": {
"moment": ">=1.6.0"
},
"peerDependencies": {
"moment": ">=1.6.0"
},
Expand Down

0 comments on commit 7924af4

Please sign in to comment.