@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 CHANGED
@@ -6173,9 +6173,10 @@ function cleanAppleDoubleFiles(dir) {
6173
6173
  }
6174
6174
  }
6175
6175
  async function downloadAndExtractTemplate(template, workDir) {
6176
- if (!(0, import_fs5.existsSync)(workDir)) {
6177
- (0, import_fs5.mkdirSync)(workDir, { recursive: true });
6176
+ if ((0, import_fs5.existsSync)(workDir)) {
6177
+ (0, import_fs5.rmSync)(workDir, { recursive: true });
6178
6178
  }
6179
+ (0, import_fs5.mkdirSync)(workDir, { recursive: true });
6179
6180
  const response = await fetch(template.downloadUrl);
6180
6181
  if (!response.ok) {
6181
6182
  throw new Error(