feat: save globally

This commit is contained in:
Jozef Steinhübl 2024-12-08 18:57:54 +01:00
parent abb197cc10
commit eba3792fc2
No known key found for this signature in database
GPG Key ID: E6BC90C91973B08F

View File

@ -43,7 +43,7 @@ export type CacheState = {
}; };
export default async (options: Input): Promise<Output> => { export default async (options: Input): Promise<Output> => {
const bunfigPath = join(process.cwd(), "bunfig.toml"); const bunfigPath = join(homedir(), ".bunfig.toml");
writeBunfig(bunfigPath, options.registries); writeBunfig(bunfigPath, options.registries);
const url = getDownloadUrl(options); const url = getDownloadUrl(options);