-'use strict';
-
import { access, cp, readdir } from 'fs/promises';
import { constants } from 'fs';
import { join } from 'path';
if (entry.isDirectory()) {
await cp(sourceAsset, targetAsset, { recursive: true });
- } else {
+ }
+ else {
await cp(sourceAsset, targetAsset);
}
}
throw error;
}
-};
+}