diff --git a/src/downloader.ts b/src/downloader.ts index 08fd45c..d730b68 100644 --- a/src/downloader.ts +++ b/src/downloader.ts @@ -1,4 +1,4 @@ -import { existsSync, readFileSync, mkdirSync, writeFileSync, rmSync } from 'node:fs' +import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'node:fs' import { extname, posix, resolve, dirname } from 'node:path' import { ofetch } from 'ofetch' import { Hookable } from 'hookable' @@ -77,10 +77,6 @@ export class Downloader extends Hookable { overwriting = true } - if (overwriting) { - rmSync(outputDir, { recursive: true, force: true }) - } - await this.callHook('download:start') // download css content