From caa28a28f4ce442b624101a962116a96f09c768c Mon Sep 17 00:00:00 2001 From: jdalton Date: Mon, 12 Jan 2026 23:27:58 -0500 Subject: [PATCH] chore(scripts): improve and fix update script - Add -w flag to taze by default to write changes automatically - Simplify conditional logic by checking !quiet first - Remove trailing period from comment for consistency - Fix Socket package updates to run regardless of taze result - Previously required taze to succeed (exit code 0) before updating Socket packages - This caused Socket packages to be skipped when taze found no updates due to maturity period - Socket-controlled packages (@socketsecurity/*, @socketregistry/*) should bypass maturity period --- scripts/update.mjs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/scripts/update.mjs b/scripts/update.mjs index 65d34e7e..c9fdda5a 100644 --- a/scripts/update.mjs +++ b/scripts/update.mjs @@ -31,16 +31,13 @@ async function main() { logger.log('\n🔨 Monorepo Dependency Update\n') } - // Build taze command with appropriate flags for monorepo. - const tazeArgs = ['exec', 'taze', '-r'] + // Build taze command with appropriate flags for monorepo + const tazeArgs = ['exec', 'taze', '-r', '-w'] - if (apply) { - tazeArgs.push('-w') - if (!quiet) { + if (!quiet) { + if (apply) { logger.progress('Updating dependencies across monorepo...') - } - } else { - if (!quiet) { + } else { logger.progress('Checking for updates across monorepo...') } } @@ -56,8 +53,8 @@ async function main() { process.stdout.write('\r\x1b[K') } - // If applying updates, also update Socket packages. - if (apply && result.code === 0) { + // Always update Socket packages when applying (bypass taze maturity period). + if (apply) { if (!quiet) { logger.progress('Updating Socket packages...') }