Skip to content

Bun not supported in update-db #77

@cehenriques

Description

@cehenriques

update-db doesn't support Bun. The function getLatestInfo fallbacks on trying to use npm with Bun because Bun didn't had support for the info command:

if (lock.mode === 'bun') {
    //  TO-DO: No 'bun info' yet. Created issue: https://github.com/oven-sh/bun/issues/12280
    return JSON.parse(execSync(' npm info caniuse-lite --json').toString())
  }

https://github.com/browserslist/update-db/blob/main/index.js

In the meantime, Bun already has support for the info command:
https://bun.com/docs/pm/cli/info

added in Bun 1.3: https://bun.com/blog/bun-v1.3#new-commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions