Skip to content

Commit f2c09ee

Browse files
committed
[core] bump script: fix logic in 'updateVersion' function
1 parent 3047145 commit f2c09ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/utils/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function updateVersions(version: string, packageJSON: Record<string, any>
2020
if (!skipPackageBump) packageJSON.version = version;
2121

2222
for(const tree of ["dependencies", "peerDependencies"]) {
23-
if (!(tree in Object.keys(packageJSON))) continue;
23+
if (!Object.keys(packageJSON).includes(tree)) continue;
2424

2525
for (const dependency of Object.keys(packageJSON[tree])) {
2626
if (!dependency.startsWith("@svelteuidev")) continue;

0 commit comments

Comments
 (0)