Skip to content

Commit

Permalink
fix: ui plugin react deps should peerDeps (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycjcl868 authored Oct 13, 2019
1 parent 4d5a2e3 commit ed6f9c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/generators/plugin/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"peerDependencies": {
<% if (withUmiUI) { -%>
"antd": "4.x",
"react": "^16.8.6",
"react-dom": "^16.8.6",
<% } -%>
"umi": "2.x || ^2.9.0-0"
},
Expand Down

1 comment on commit ed6f9c9

@xiaohuoni
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

少两空格😣

  "peerDependencies": {
    "antd": "4.x",
  "react": "^16.8.6",
  "react-dom": "^16.8.6",
    "umi": "2.x || ^2.9.0-0"
  },

Please sign in to comment.