Closed eriknikulski closed 8 months ago
Ok, I solved it for me. The solution is a bit hacky but works. For anyone looking to do something similar, just add
"prepare": "git init && git add . && git commit -m \"Initial commit\" && git pack-refs && jake",
to the "scripts"
section of the package.json
When I use
npm install 'Leaflet/Leaflet.markercluster'
, the repo is downloaded. Butdist/
does not contain any js files, these need to be build. So I adapted thepackage.json
to useprepare: jake,
(here: https://github.com/eriknikulski/Leaflet.markercluster/tree/patch-2), this works in the sense that the build process is started, but jake aborts with the error:which is the result of the folder being not controlled by git.
How can I use a recent version of this package in my dependencies?