create-fsaa 0.1.6 → 0.1.7
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/lib/download.mjs +4 -3
- package/package.json +1 -1
package/lib/download.mjs
CHANGED
|
@@ -53,13 +53,14 @@ function moveDir(src, dest) {
|
|
|
53
53
|
` (safeguard: refuse to overwrite; run fsaa in an empty or non-existent directory)`,
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
|
-
// fs-only move: rename first
|
|
57
|
-
//
|
|
56
|
+
// fs-only move: rename first, cpSync fallback for anything Windows throws at
|
|
57
|
+
// a freshly-extracted dir on rename (EXDEV cross-device, EPERM/EBUSY from an
|
|
58
|
+
// antivirus/indexing scan holding a handle). Copy-then-cleanup self-heals all.
|
|
58
59
|
try {
|
|
59
60
|
renameSync(src, dest);
|
|
60
61
|
return;
|
|
61
62
|
} catch (err) {
|
|
62
|
-
if (
|
|
63
|
+
if (!["EXDEV", "EPERM", "EACCES", "EBUSY", "ENOTEMPTY", "EISDIR"].includes(err?.code)) throw err;
|
|
63
64
|
}
|
|
64
65
|
cpSync(src, dest, { recursive: true });
|
|
65
66
|
rmSync(src, { recursive: true, force: true });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fsaa",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "FSAA \u2014 Feature-Sliced Atomic Architecture. Run `npm create fsaa` (this package) to scaffold an FSAA app from the official starter templates; `fsaa g <slice>` generates canonical slices.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Veaceslav Bezusco <Aramex86@users.noreply.github.com>",
|