We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4361ee6 commit d7b22bcCopy full SHA for d7b22bc
packages/cli/src/init/test/lookup.ts
@@ -1,3 +1,4 @@
1
+import { isEmpty } from "@fxts/core/index.js";
2
import { values } from "@optique/core";
3
import type { ChildProcessByStdio } from "node:child_process";
4
import { spawn } from "node:child_process";
@@ -55,7 +56,7 @@ function filterWebFrameworks(
55
56
dirs.map((dir) => dir.split(sep).slice(-4, -3)[0] as WebFramework),
57
);
58
const hasBanned = BANNED_WFS.filter((wf) => wfs.has(wf));
- if (!hasBanned) {
59
+ if (isEmpty(hasBanned)) {
60
return dirs;
61
}
62
const bannedLabels = hasBanned.map((wf) => webFrameworks[wf]["label"]);
0 commit comments