Open hmoffatt opened 8 years ago
Hmm, I'm not certain why you're seeing double installs. I'd certainly be open to a PR that corrects this issue and perhaps one that performs an update instead of a full checkout each time if the dep already exists. A quick look back at the source though reveals this little gem: https://github.com/jtrussell/svn-npm-crutch/blob/master/lib/svn-npm-crutch.js#L50-L61 which maybe suggests why svn update
s might be difficult.
I've added svn-npm-crutch to my dependencies, and added an svnDependencies section to package.json. The svn-npm-crutch hook has been added to the install script automatically.
Now if I run "npm install" again to refresh things, the SVN repo is fetched twice.
In the output I see:
and then it all gets done again.
Further, is it possible to update the checkout rather than fetching it from scratch? My module is big and the server is remote, so I'd rather not fetch it every time if it hasn't changed.