sharedstreets / sharedstreets-js

SharedStreets (Node.js & Javascript)
https://sharedstreets.io
MIT License
78 stars 25 forks source link

Osrm routing #39

Closed kpwebb closed 5 years ago

morganherlocker commented 5 years ago

Publishing

I've been publishing prerelease candidates off of this PR. Here's how for future reference:

# before moving forward, make sure your changes are on the prerelease
# branch and you are up to date locally

# rebuilding deps, just in case
rm -rf node_modules; npm i

# run tests (!!)
npm t

# rebuilding cli via oclif dev tools
npm run prepack

# increment prerelease version
npm version prerelease

# push release tags to github
git push --tags

# publishing release candidate version
npm publish --tag next

Installing

To install the prerelease version, instead of the production version in another project, do this:

npm i sharedstreets@next

Note, I have received an error when running the install without first deleting my package-lock.json file. I think this could be an issue with a git subdirectory project in one of the dependencies. sharedstreets-pbf currently has a git subdirectory pointing to a version of the sharedstreets-ref-syestem, but I have not confirmed this as the root cause. For now, just delete the lock file.

npm ERR! git /projects/sharedstreets-xyz/node_modules/sharedstreets: Appears to be a git repo or submodule.