https://github.com/dperuo/npm-carbon/issues/5
If the publish destination doesn't yet exist, it's okay because we're going to create it. We can catch the HTTP404 and sync all the versions.
I've tested this change and was able to successfully sync a package from npm to the GitHub package registry. The sync failed with the master branch due to the package not existing in GitHub package registry yet.
Issues Fixed :wrench:
Breaking Changes :boom:
None
Details :memo:
This was ported from the the original
npm-copy
behaviour: https://github.com/goodeggs/npm-copy/blob/master/src/cli.coffee#L33I've tested this change and was able to successfully sync a package from npm to the GitHub package registry. The sync failed with the master branch due to the package not existing in GitHub package registry yet.