vueless 1.2.3-beta.3 → 1.2.3-beta.4

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,6 +1,6 @@
1
1
  {
2
2
  "name": "vueless",
3
- "version": "1.2.3-beta.3",
3
+ "version": "1.2.3-beta.4",
4
4
  "description": "Vue Styleless UI Component Library, powered by Tailwind CSS.",
5
5
  "author": "Johnny Grid <hello@vueless.com> (https://vueless.com)",
6
6
  "homepage": "https://vueless.com",
@@ -295,7 +295,17 @@ async function copyIcon(name, library) {
295
295
  const require = createRequire(import.meta.url);
296
296
 
297
297
  fs.mkdirSync(path.dirname(destinationPath), { recursive: true });
298
- await cp(require.resolve(sourcePath), destinationPath);
298
+
299
+ try {
300
+ await fs.promises.copyFile(require.resolve(sourcePath), destinationPath);
301
+ } catch (err) {
302
+ if (err.code === "EEXIST" || err.code === "EBUSY") {
303
+ // Another process/thread already copied or Windows locked temporarily
304
+ return;
305
+ }
306
+
307
+ throw err;
308
+ }
299
309
  }
300
310
  }
301
311