Skip to content

Commit

Permalink
fixup! cli - move peerDeps to top
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Jul 17, 2020
1 parent 8cdea26 commit 596aef8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions packages/cli/generators/project/templates/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@
"src",
"!*/__tests__"
],
<% if (project.projectType === 'extension') { -%>
"peerDependencies": {
"@loopback/core": "<%= project.dependencies['@loopback/core'] -%>"
},
<% } -%>
"dependencies": {
<% if (project.projectType === 'application') { -%>
"@loopback/boot": "<%= project.dependencies['@loopback/boot'] -%>",
Expand All @@ -91,11 +96,6 @@
<% } -%>
"tslib": "<%= project.dependencies['tslib'] -%>"
},
<% if (project.projectType === 'extension') { -%>
"peerDependencies": {
"@loopback/core": "<%= project.dependencies['@loopback/core'] -%>"
},
<% } -%>
"devDependencies": {
"@loopback/build": "<%= project.dependencies['@loopback/build'] -%>",
"source-map-support": "<%= project.dependencies['source-map-support'] -%>",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
"src",
"!*/__tests__"
],
<% if (project.projectType === 'extension') { -%>
"peerDependencies": {
"@loopback/core": "<%= project.dependencies['@loopback/core'] -%>"
},
"dependencies": {
<% if (project.projectType === 'application') { -%>
"@loopback/boot": "<%= project.dependencies['@loopback/boot'] -%>",
Expand All @@ -84,10 +88,6 @@
<% } -%>
"tslib": "<%= project.dependencies['tslib'] -%>"
},
<% if (project.projectType === 'extension') { -%>
"peerDependencies": {
"@loopback/core": "<%= project.dependencies['@loopback/core'] -%>"
},
<% } -%>
"devDependencies": {
"rimraf": "<%= project.dependencies['rimraf'] -%>",
Expand Down

0 comments on commit 596aef8

Please sign in to comment.