chore: sync @snyk/fix version in CLI with release #1945
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We currently run
update-versions.sh
during release to replace all1.0.0-monorepo
references to the next version being released. So the@snyk/fix
version in the CLI'spackage.json
should also be1.0.0-monorepo
so that it's replaced at the same time too.To Do
@snyk/fix and CLI need to be kept compatible within individual PRs.
Since the npm 7 symlinks dependant workspaces we are mostly testing CLI with the local @snyk/fix rather than whatever version is in the root package.json.
Currently, without this PR, we are testing with a local @snyk/fix and then publishing with a different, older version. Only after we bump that version in the root package.json will we be publishing with the version we're actually testing with.
So it makes sense to keep versions in sync and compatibility is maintained within individual PRs.