mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
implement pnpm migration (#22262)
### What does this PR do? fixes #7157, fixes #14662 migrates pnpm-workspace.yaml data to package.json & converts pnpm-lock.yml to bun.lock --- ### How did you verify your code works? manually, tests and real world examples --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Dylan Conway <dylan.conway567@gmail.com>
This commit is contained in:
@@ -343,7 +343,7 @@ pub const TrustCommand = struct {
|
||||
const package_json_contents = try pm.root_package_json_file.readToEndAlloc(ctx.allocator, try pm.root_package_json_file.getEndPos());
|
||||
defer ctx.allocator.free(package_json_contents);
|
||||
|
||||
const package_json_source = logger.Source.initPathString(PackageManager.package_json_cwd, package_json_contents);
|
||||
const package_json_source = logger.Source.initPathString(PackageManager.root_package_json_path, package_json_contents);
|
||||
|
||||
var package_json = bun.json.parseUTF8(&package_json_source, ctx.log, ctx.allocator) catch |err| {
|
||||
ctx.log.print(Output.errorWriter()) catch {};
|
||||
|
||||
Reference in New Issue
Block a user