From 18acd579e306046f13a09eee43173f1480e871c0 Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Tue, 2 Jul 2024 12:28:25 +0200 Subject: [PATCH] Fix --- scripts/run-affected.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run-affected.js b/scripts/run-affected.js index 2b3565734a..97f79bb463 100755 --- a/scripts/run-affected.js +++ b/scripts/run-affected.js @@ -14,7 +14,7 @@ const argv = require("yargs").demandOption(["task", "since", "scope"]).argv const { task, since, scope } = argv const affectedPackages = execSync( - `yarn --silent lerna ls --since=${since} --json`, + `yarn --silent nx show projects --affected -t ${task} --base=${since} --json`, { encoding: "utf-8", } @@ -22,7 +22,7 @@ const affectedPackages = execSync( const packages = JSON.parse(affectedPackages) -const isAffected = packages.some(pkg => pkg.name === scope) +const isAffected = packages.includes(scope) if (isAffected) { console.log(`${scope} is affected. Running task "${task}"`)