X-Git-Url: https://git.r.bdr.sh/rbdr/blog/blobdiff_plain/6cd62e795e3716aa0cbd2d1ff8c1b3a345803563..d620665f6b2e1ae5db4c98a09e35bd63133ae87f:/lib/generators/static.js?ds=sidebyside diff --git a/lib/generators/static.js b/lib/generators/static.js index 60719e2..45f5a04 100644 --- a/lib/generators/static.js +++ b/lib/generators/static.js @@ -1,5 +1,3 @@ -'use strict'; - import { access, cp, readdir } from 'fs/promises'; import { constants } from 'fs'; import { join } from 'path'; @@ -33,7 +31,8 @@ export default async function StaticGenerator(source, target, _) { if (entry.isDirectory()) { await cp(sourceAsset, targetAsset, { recursive: true }); - } else { + } + else { await cp(sourceAsset, targetAsset); } } @@ -46,4 +45,4 @@ export default async function StaticGenerator(source, target, _) { throw error; } -}; +}