From e8a2b47eb5d807a2da22915a6d444d3947c9a885 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Tue, 6 Aug 2024 14:41:25 -0400 Subject: [PATCH] [compiler] Remove sleep in manual release script I originally added this prior to the compiler being OSS'd as a "just in case" feature to panic cancel if something went wrong. Now that the compiler is already launched this is unnecessary. ghstack-source-id: dd17dc8a331657ce23c0cbc012ba967cfc3b9542 Pull Request resolved: https://github.com/facebook/react/pull/30613 --- compiler/scripts/release/publish-manual.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/compiler/scripts/release/publish-manual.js b/compiler/scripts/release/publish-manual.js index df43e98836792..7ce26d6e00506 100644 --- a/compiler/scripts/release/publish-manual.js +++ b/compiler/scripts/release/publish-manual.js @@ -11,7 +11,6 @@ const PUBLISHABLE_PACKAGES = [ 'eslint-plugin-react-compiler', 'react-compiler-healthcheck', ]; -const TIME_TO_RECONSIDER = 3_000; function _spawn(command, args, options, cb) { const child = cp.spawn(command, args, options); @@ -33,10 +32,6 @@ function execHelper(command, options, streamStdout = false) { }); } -function sleep(ms) { - return new Promise(resolve => setTimeout(resolve, ms)); -} - async function getDateStringForCommit(commit) { let dateString = await execHelper( `git show -s --no-show-signature --format=%cd --date=format:%Y%m%d ${commit}` @@ -191,15 +186,6 @@ async function main() { ); } - if (debug === false) { - spinner.info( - `🚨🚨🚨 About to publish to npm in ${ - TIME_TO_RECONSIDER / 1000 - } seconds. You still have time to kill this script!` - ); - await sleep(TIME_TO_RECONSIDER); - } - for (const pkgName of pkgNames) { const pkgDir = path.resolve(__dirname, `../../packages/${pkgName}`); console.log(`\n========== ${pkgName} ==========\n`);