astro-accelerator 5.0.5 → 5.0.6

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.0.5",
2
+ "version": "5.0.6",
3
3
  "author": "Steve Fenton",
4
4
  "name": "astro-accelerator",
5
5
  "description": "A super-lightweight, accessible, SEO-friendly starter project for Astro",
@@ -78,7 +78,15 @@ async function recurseFiles(directory) {
78
78
  info.path
79
79
  );
80
80
 
81
- if (!fs.existsSync(fullDestination)) {
81
+ // Only processes images where there is no json metadata file
82
+ const metaPath = path.join(
83
+ workingDirectory,
84
+ imagePath,
85
+ sourcePath + '.json'
86
+ );
87
+
88
+ if (!fs.existsSync(metaPath)) {
89
+ console.log('Processing:', metaPath);
82
90
  filesToProcess.push(info);
83
91
  }
84
92