IBM / openapi-validator

Configurable and extensible validator/linter for OpenAPI documents
Apache License 2.0
493 stars 88 forks source link

fix(build): build executables with correct dependency versions #654

Closed padamstx closed 7 months ago

padamstx commented 7 months ago

PR summary

This commit modifies the create-binaries.sh script so that it removes the packages/validator/node_moduels/@ibm-cloud directory prior to invoking pkg to build the executables. This fixes a problem where the executables would end up with the "old" version of the openapi-ruleset dependency in situations where we're also publishing a new version of that dependency. Removing the dependency from packages/validator/node_modules means that pkg would end up using the dependencies in the project's top-level "node_modules" directory instead, which will have the correct version of the dependency.

PR Checklist

General checklist

Please make sure that your PR fulfills the following requirements:

Checklist for adding a new validation rule:

ibm-devx-sdk commented 7 months ago

:tada: This PR is included in version 1.3.2 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

ibm-devx-sdk commented 7 months ago

:tada: This PR is included in version 1.15.5 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket:

ibm-devx-sdk commented 7 months ago

:tada: This PR is included in version 1.16.5 :tada:

The release is available on npm package (@latest dist-tag)

Your semantic-release bot :package::rocket: