Skip to content

Commit 923de1c

Browse files
committedJan 9, 2024
chore: Run lint
1 parent f647792 commit 923de1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎scripts/fix-dist-output.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { readdir, rename, rm } from "fs/promises";
22
import { resolve } from "path";
33
import { fileURLToPath } from "url";
44

5-
65
const __dirname = fileURLToPath(new URL(".", import.meta.url));
76
const parentDirName = resolve(__dirname, "..");
87
const distDir = resolve(parentDirName, "dist");
@@ -13,7 +12,11 @@ const configFiles = files.filter((file) => file.includes(".config."));
1312

1413
const srcFiles = await readdir(resolve(distDir, "src"));
1514

16-
await Promise.all(srcFiles.map((file) => rename(resolve(distDir, "src", file), resolve(distDir, file))));
15+
await Promise.all(
16+
srcFiles.map((file) =>
17+
rename(resolve(distDir, "src", file), resolve(distDir, file))
18+
)
19+
);
1720
await Promise.all(configFiles.map((file) => rm(resolve(distDir, file))));
1821
await rm(resolve(distDir, "src"), {
1922
recursive: true,

0 commit comments

Comments
 (0)
Please sign in to comment.