Skip to content

Commit 81eff21

Browse files
committed
fix(cli): match --keys
1 parent 4a2ecdf commit 81eff21

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.changeset/old-cheetahs-heal.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
fix

packages/cli/src/cli/cmd/run/execute.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ function createWorkerTask(args: {
169169
delta.updated.includes(key) ||
170170
!!args.ctx.flags.force,
171171
)
172-
.filter(([key]) =>
173-
assignedTask.onlyKeys?.some((pattern) =>
174-
minimatch(key, pattern),
175-
),
172+
.filter(
173+
([key]) =>
174+
!assignedTask.onlyKeys.length ||
175+
assignedTask.onlyKeys?.some((pattern) =>
176+
minimatch(key, pattern),
177+
),
176178
)
177179
.fromPairs()
178180
.value();

0 commit comments

Comments
 (0)