Skip to content

Commit

Permalink
fix: dont check npm option - oclif#797
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsadetsky committed May 4, 2024
1 parent a3c0d60 commit 7547993
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string>}>(
`${config.npmRegistry ?? 'https://registry.npmjs.org'}/${config.pjson.name}`,
Expand Down

0 comments on commit 7547993

Please sign in to comment.