Class BunLockAdapter

java.lang.Object
org.openrewrite.javascript.internal.BunLockAdapter

public final class BunLockAdapter extends Object
Converts a bun.lock JSONC string into the npm package-lock.json v3 shape consumed by LockFileParser.

bun.lock entries are arrays: [name@version, url, metadata, integrity]. Path keys are bare names for top-level deps and "parent/child" for nested deps. The adapter rewrites those into npm-style node_modules/<name> and node_modules/parent/node_modules/child keys.

  • Method Details

    • toNpmV3

      public static String toNpmV3(String bunLockJsonc)