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 +1 -1
- package/utils/node/loaderIcon.js +11 -1
package/package.json
CHANGED
package/utils/node/loaderIcon.js
CHANGED
|
@@ -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
|
-
|
|
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
|
|