fix(install): bun.lockb -> bun.lock with incorrect optional peer dependencies (#16743)

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
This commit is contained in:
Dylan Conway
2025-01-26 04:29:54 -08:00
committed by GitHub
parent 77be87b0a7
commit 7410da9c71
21 changed files with 500 additions and 102 deletions

View File

@@ -1563,18 +1563,21 @@ export class VerdaccioRegistry {
let bunfig = `
[install]
cache = "${join(dir, ".bun-cache")}"
registry = "${this.registryUrl()}"
`;
if ("saveTextLockfile" in opts) {
bunfig += `saveTextLockfile = ${opts.saveTextLockfile}
`;
}
if (!opts.npm) {
bunfig += `registry = "${this.registryUrl()}"`;
}
await write(join(dir, "bunfig.toml"), bunfig);
}
}
type BunfigOpts = {
saveTextLockfile?: boolean;
npm?: boolean;
};
export async function readdirSorted(path: string): Promise<string[]> {