mirror of
https://github.com/oven-sh/setup-bun.git
synced 2025-04-06 03:50:14 +08:00
fix: dont add registry set line
This commit is contained in:
parent
89f75cf12f
commit
779553a1d9
@ -140,6 +140,7 @@ export function writeBunfig(path: string, registries: Registry[]): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
line.startsWith("registry = ") ||
|
||||||
!bunfig.some(
|
!bunfig.some(
|
||||||
(field) =>
|
(field) =>
|
||||||
field.type === FieldType.INSTALL_WITH_SCOPE &&
|
field.type === FieldType.INSTALL_WITH_SCOPE &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user