Skip to content

Commit

Permalink
fix: dont check npm option - #797 (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsadetsky authored May 6, 2024
1 parent cbba5cc commit 8cc4858
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) {

Check failure on line 428 in src/update.ts

View workflow job for this annotation

GitHub Actions / linux-unit-tests / linux-unit-tests (lts/*)

Property 'disableNpmLookup' does not exist on type '{ autoupdate?: { debounce?: number | undefined; rollout?: number | undefined; } | undefined; node: { targets?: string[] | undefined; version?: string | undefined; options?: string | string[] | undefined; }; s3: S3; }'.

Check failure on line 428 in src/update.ts

View workflow job for this annotation

GitHub Actions / linux-unit-tests / linux-unit-tests (lts/-1)

Property 'disableNpmLookup' does not exist on type '{ autoupdate?: { debounce?: number | undefined; rollout?: number | undefined; } | undefined; node: { targets?: string[] | undefined; version?: string | undefined; options?: string | string[] | undefined; }; s3: S3; }'.
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 8cc4858

Please sign in to comment.