markusenglund / react-switch

A draggable toggle-switch component for React. Check out the demo at:
https://react-switch.netlify.com/
MIT License
1.33k stars 100 forks source link

Now the Github repo can directly be referenced from package.json #56

Closed NicoleRauch closed 3 years ago

NicoleRauch commented 5 years ago

In order to directly use a fork with experimental code from Github (without the need of deploying it to npm), package.json needs to contain a "prepare" script which basically performs the build. This way, the project can be included as a dependency in package.json like so:

    "react-switch": "git+https://github.com/username/react-switch.git",
markusenglund commented 3 years ago

Hi Nicole, sorry for very late response. It's a good change, but before I took a look at your PR I merged a more recent PR from a person who had the same idea. Therefore, I'll have to close this one.