Skip to content

Conversation

ehmicky
Copy link
Contributor

@ehmicky ehmicky commented Sep 9, 2019

This simplifies the logic of bump-swagger.js. That file updates the swagger.yml version field so it matches the package.json version field. It's run by npm run version.

It basically does the same thing, i.e. looks for the version: string and replaces it. But it does with a single String.replace() instead of using streams, making the logic simpler. This also:

  • removes 4 dependencies
  • improves the version: detection (it checks that a version string follows, and that the field is indented)
@netlify
Copy link

netlify bot commented Sep 9, 2019

Deploy preview for open-api ready!

Built with commit 58b565a

https://deploy-preview-179--open-api.netlify.com

@ehmicky ehmicky force-pushed the feature/refactor-bump-version branch from b658bf0 to 58b565a Compare September 18, 2019 09:54
@ehmicky ehmicky merged commit bc93a27 into master Sep 18, 2019
@ehmicky ehmicky deleted the feature/refactor-bump-version branch September 18, 2019 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants