From 8cc485868fb7ee1c8322f8c2488a8b80ce4032a8 Mon Sep 17 00:00:00 2001 From: Greg Sadetsky Date: Mon, 6 May 2024 17:22:03 -0400 Subject: [PATCH] fix: dont check npm option - #797 (#807) --- src/update.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/update.ts b/src/update.ts index 3868badb..0a03ea2b 100644 --- a/src/update.ts +++ b/src/update.ts @@ -425,6 +425,10 @@ const determineChannel = async ({config, version}: {config: Config; version?: st // eslint-disable-next-line unicorn/no-await-expression-member const channel = existsSync(channelPath) ? (await readFile(channelPath, 'utf8')).trim() : 'stable' + if (config.pjson.oclif.update?.disableNpmLookup ?? false) { + return channel + } + try { const {body} = await HTTP.get<{'dist-tags': Record}>( `${config.npmRegistry ?? 'https://registry.npmjs.org'}/${config.pjson.name}`,