Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 14, 2023
1 parent 387a1f2 commit 97e3bfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools/src/server-rpc/npm.ts
Expand Up @@ -9,7 +9,7 @@ export function setupNpmRPC({ nuxt }: NuxtDevtoolsServerContext) {
const updatesPromise = new Map<string, Promise<PackageUpdateInfo | undefined>>()

function getPackageManager() {
detectPromise ||= detectPackageManager(nuxt.options.rootDir).then(r => r.name)
detectPromise ||= detectPackageManager(nuxt.options.rootDir).then(r => r?.name || 'npm')
return detectPromise
}

Expand Down

0 comments on commit 97e3bfc

Please sign in to comment.