Skip to content

Commit

Permalink
fix: Fix empty build target (#4627)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Jul 12, 2023
1 parent 66f669f commit 1fcbf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cspell-tools/src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export async function build(targets: string[] | undefined, options: BuildOptions
const allowedTargets = new Set(targets || []);

function filter(target: Target): boolean {
return !targets || allowedTargets.has(target.name);
return !allowedTargets.size || allowedTargets.has(target.name);
}

const searchDir = path.resolve(options.root || options.cwd || '.');
Expand Down

0 comments on commit 1fcbf98

Please sign in to comment.