From df1609eadabe05b0279ec95d0da47c97abea1656 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Wed, 13 Dec 2023 15:52:25 -0800 Subject: [PATCH] chore: remove dead check-mismatched-dependencies --- package.json | 1 - scripts/check-mismatched-dependencies.cjs | 33 ----------------------- 2 files changed, 34 deletions(-) delete mode 100644 scripts/check-mismatched-dependencies.cjs diff --git a/package.json b/package.json index 87bece8c0f50..952449453e09 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,6 @@ }, "scripts": { "clean": "yarn lerna run --no-bail clean", - "check-dependencies": "node ./scripts/check-mismatched-dependencies.cjs", "docs": "typedoc --tsconfig tsconfig.build.json", "lerna": "lerna", "link-cli": "yarn run create-agoric-cli", diff --git a/scripts/check-mismatched-dependencies.cjs b/scripts/check-mismatched-dependencies.cjs deleted file mode 100644 index 0d8d39205c36..000000000000 --- a/scripts/check-mismatched-dependencies.cjs +++ /dev/null @@ -1,33 +0,0 @@ -#! /usr/bin/env node - -const { spawnSync } = require('child_process'); -console.log(`running 'yarn workspaces info' to check for mismatched dependencies`); -const s = spawnSync('yarn', ['--silent', 'workspaces', 'info'], { - stdio: ['ignore', 'pipe', 'inherit'] -}); -if (s.status !== 0) { - console.log(`error running 'yarn workspaces info':`); - console.log(s.status); - console.log(s.signal); - console.log(s.error); - console.log(s.stdout); - console.log(s.stderr); - process.exit(1); -} - -let good = true; -const d = JSON.parse(s.stdout); -for (const pkgname of Object.getOwnPropertyNames(d)) { - const md = d[pkgname].mismatchedWorkspaceDependencies; - if (md.length) { - console.log(`package '${pkgname}' has mismatched dependencies on: ${md}`); - good = false; - } -} -if (good) { - console.log('looks good'); - process.exit(0); -} else { - process.exit(1); -} -