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.
Promise.all()
asset()
1 parent 1c4fc85 commit 764e4c6Copy full SHA for 764e4c6
task/asset.mjs
@@ -2,6 +2,8 @@ import fs from "node:fs/promises";
2
import { S_ASSET } from "../src/config.mjs";
3
4
export const asset = async () =>
5
- (await Array.fromAsync(await fs.glob(S_ASSET))).map(
6
- async (filepath) => await fs.cp(filepath, filepath.replace("src", "dist")),
+ Promise.all(
+ (await Array.fromAsync(await fs.glob(S_ASSET))).map(
7
+ async (filepath) => await fs.cp(filepath, filepath.replace("src", "dist")),
8
+ )
9
);
0 commit comments