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`);