Skip to content

Commit

Permalink
Add yo as peerDependency
Browse files Browse the repository at this point in the history
By adding `yo` as peer dependency, the user only has to `npm install -g generator-canjs` and is good to go.

I also added `npm >= 1.2.10` as engine requirement which shows a non-fatal warning in case the user is using an earlier version of npm, which doesn't support peer dependencies yet.

/ref yeoman/generator#305
  • Loading branch information
passy committed Aug 8, 2013
1 parent 587316f commit 2099c30
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions package.json
Expand Up @@ -4,7 +4,7 @@
"description": "CanJS generator for Yeoman",
"keywords": [
"yeoman-generator",
"canjs",
"canjs",
"canjs-generator"
],
"homepage": "https://github.com/retro/generator-canjs",
Expand All @@ -29,8 +29,12 @@
"devDependencies": {
"mocha": "~1.9.0"
},
"peerDependencies": {
"yo": ">=1.0.0-rc.1.4"
},
"engines": {
"node": ">=0.8.0"
"node": ">=0.8.0",
"npm": ">=1.2.10"
},
"licenses": [
{
Expand Down

0 comments on commit 2099c30

Please sign in to comment.