mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
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:
@@ -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[]> {
|
||||
|
||||
Reference in New Issue
Block a user