Skip to content

Commit

Permalink
Move dependencies to peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
faridsaud committed Aug 15, 2020
1 parent 14570df commit db1ea34
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 43 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

> React library to use animations on embedded experiences where the use of !important in the CSS is required.

## When to use it

On most case this library shouldn't be used, used only if:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.modern.js.map

Large diffs are not rendered by default.

45 changes: 11 additions & 34 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
"deploy": "gh-pages -d example/build"
},
"peerDependencies": {
"react": "^16.0.0"
"react": "^16.0.0",
"prop-types": "^15.7.2",
"react-transition-group": "^4.4.1",
"uniqid": "^5.2.0"
},
"devDependencies": {
"microbundle-crl": "^0.13.10",
Expand All @@ -50,9 +53,5 @@
"files": [
"dist"
],
"dependencies": {
"prop-types": "^15.7.2",
"react-transition-group": "^4.4.1",
"uniqid": "^5.2.0"
}
"dependencies": {}
}
2 changes: 1 addition & 1 deletion src/components/Animated.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import PropTypes from 'prop-types'
import { Transition } from 'react-transition-group'
import unique from 'uniqid'
import { getTransition } from '../helpers/transitions'
import { getTransition } from '../helpers'

export const Animated = ({ animation, duration, delay, easing, children }) => {
const containerId = unique()
Expand Down

0 comments on commit db1ea34

Please sign in to comment.