From 098ba1d46c83431b3ce4f0e0d15560d4b87a1e14 Mon Sep 17 00:00:00 2001 From: Hugh Cunningham <57735705+hughy@users.noreply.github.com> Date: Wed, 12 Apr 2023 13:54:17 -0700 Subject: [PATCH] updates simulator sdk dependency in version-bump (#3777) the simulator package depends on the sdk, so we need to bump the dependency version whenever we bump the sdk version. failure to do so results in lint failures in CI since it creates yarn dependencies on multiple sdk versions. --- tools/version-bump.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/version-bump.js b/tools/version-bump.js index 543a5fc0b7..869d24f132 100644 --- a/tools/version-bump.js +++ b/tools/version-bump.js @@ -15,6 +15,7 @@ const path = require('path') const CLI_PACKAGE = path.join(__dirname, '../ironfish-cli/package.json') const NODE_PACKAGE = path.join(__dirname, '../ironfish/package.json') const RUST_PACKAGE = path.join(__dirname, '../ironfish-rust-nodejs/package.json') +const SIMULATOR_PACKAGE = path.join(__dirname, '../simulator/package.json') const shouldBumpIronfishRust = process.argv.find((a) => a.includes('rust')) @@ -63,17 +64,20 @@ const getDirectories = async source => const bumpNodeAndCliPackage = async (shouldBumpRust) => { const nodePackage = await readPackage(NODE_PACKAGE) const cliPackage = await readPackage(CLI_PACKAGE) + const simulatorPackage = await readPackage(SIMULATOR_PACKAGE) // Bump node package and packages that depend on it const newNodeVersion = bumpPatch(nodePackage.version) nodePackage.version = newNodeVersion cliPackage.dependencies[nodePackage.name] = newNodeVersion + simulatorPackage.dependencies[nodePackage.name] = newNodeVersion // Bump the CLI cliPackage.version = bumpPatch(cliPackage.version) writePackage(NODE_PACKAGE, nodePackage) writePackage(CLI_PACKAGE, cliPackage) + writePackage(SIMULATOR_PACKAGE, simulatorPackage) } const bumpRustPackage = async () => {