@wix/evalforge-evaluator 0.56.0 → 0.57.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +3 -2
- package/build/index.js.map +2 -2
- package/build/index.mjs +3 -2
- package/build/index.mjs.map +2 -2
- package/package.json +2 -2
package/build/index.mjs
CHANGED
|
@@ -6155,9 +6155,10 @@ function cleanAppleDoubleFiles(dir) {
|
|
|
6155
6155
|
}
|
|
6156
6156
|
}
|
|
6157
6157
|
async function downloadAndExtractTemplate(template, workDir) {
|
|
6158
|
-
if (
|
|
6159
|
-
|
|
6158
|
+
if (existsSync(workDir)) {
|
|
6159
|
+
rmSync(workDir, { recursive: true });
|
|
6160
6160
|
}
|
|
6161
|
+
mkdirSync2(workDir, { recursive: true });
|
|
6161
6162
|
const response = await fetch(template.downloadUrl);
|
|
6162
6163
|
if (!response.ok) {
|
|
6163
6164
|
throw new Error(
|