From 00750aee0c76c83bc6e2a08c1a36156d371d899b Mon Sep 17 00:00:00 2001 From: ivan-angjelkoski Date: Thu, 17 Oct 2024 17:20:58 +0200 Subject: [PATCH] fix: dev build --- layer/utils/index.ts | 1 - layer/utils/scripts.ts | 21 --------------------- 2 files changed, 22 deletions(-) delete mode 100644 layer/utils/scripts.ts diff --git a/layer/utils/index.ts b/layer/utils/index.ts index ce31b5c7..19378ec9 100644 --- a/layer/utils/index.ts +++ b/layer/utils/index.ts @@ -6,5 +6,4 @@ export * from './async' export * from './input' export * from './market' export * from './network' -export * from './scripts' export * from './formatter' diff --git a/layer/utils/scripts.ts b/layer/utils/scripts.ts deleted file mode 100644 index 7769e906..00000000 --- a/layer/utils/scripts.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { copy, readdir } from 'fs-extra' -import path from 'path' - - -export const copyInChunks = async ( - sourceDir: string, - destDir: string, - chunkSize = 25 -) => { - const files = await readdir(sourceDir) - - for (let i = 0; i < files.length; i += chunkSize) { - const chunk = files.slice(i, i + chunkSize) - - for (const file of chunk) { - await copy(path.join(sourceDir, file), path.join(destDir, file), { - overwrite: true - }) - } - } -}