plus1tv / react-anime

✨ (ノ´ヮ´)ノ*:・゚✧ A super easy animation library for React!

Home Page:https://codepen.io/collection/nrkjgo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requires Animejs

Crizzooo opened this issue · comments

Hey,

I'm building a React-Anime button with an animated SVG and I want to publish it on NPM.

So that component would be a peer dependency of your project. But when I install your project, it does not automatically install animejs.

Is this on purpose? Could you explain why?

Now when I publish mine, do I just require your package and leave a note for the user that they will need to npm i -S animejs themselves?

That's weird, animejs is a dependency in the version of React Anime on NPM.

// Current React Anime package.json
{
  // ...
  "peerDependencies": {
    "react": "^15.3.1",
    "react-dom": "^15.3.1"
  },
  "dependencies": {
    "animejs": "1.1.1"
  }
}

Am I missing something here? Since animejs is a direct dependency it shouldn't be doing that. Can I see
your package.json? 😕