Skip to content

Commit cc45f5b

Browse files
authored
chore: resolve build issues (#473)
1 parent e9de361 commit cc45f5b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

.changeset/ten-teams-happen.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
3+
---
4+
5+
6+

packages/react-icons/scripts/build.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import icons from "@tapsioss/icons";
2+
import { deleteAsync } from "del";
23
import Mustache from "mustache";
34
import { exec } from "node:child_process";
45
import * as fs from "node:fs/promises";
@@ -73,7 +74,7 @@ const generateComponents = async () => {
7374
await Promise.all(reactComponentPromises);
7475
await execCmd(["shx", "cp", baseIconFile, distDir].join(" "));
7576
await execCmd(["tsc", "--project", tsconfigFile].join(" "));
76-
await execCmd(`shx ls ${distDir}/*.{tsx,ts} | grep -v ".d.ts$" | xargs rm`);
77+
await deleteAsync([`${distDir}/**/*.{tsx,ts}`, `!${distDir}/**/*.d.ts`]);
7778

7879
console.log("✅ react icons generated.");
7980
};

packages/web-icons/scripts/build.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import icons from "@tapsioss/icons";
2+
import { deleteAsync } from "del";
23
import Mustache from "mustache";
34
import { exec } from "node:child_process";
45
import * as fs from "node:fs/promises";
@@ -117,9 +118,7 @@ const generateComponents = async () => {
117118
await Promise.all(webComponentPromises);
118119
await execCmd(["shx", "cp", baseIconFile, distDir].join(" "));
119120
await execCmd(["tsc", "--project", tsconfigFile].join(" "));
120-
await execCmd(
121-
`shx ls ${distDir}/*.{tsx,ts} ${distDir}/**/*.{tsx,ts} | grep -v ".d.ts$" | xargs rm`,
122-
);
121+
await deleteAsync([`${distDir}/**/*.{tsx,ts}`, `!${distDir}/**/*.d.ts`]);
123122

124123
console.log("✅ web icons generated.");
125124
};

0 commit comments

Comments
 (0)