@feigi/fleet-ctl 3.158.16 → 3.158.18
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/scripts/phase0.mjs +8 -4
package/package.json
CHANGED
package/scripts/phase0.mjs
CHANGED
|
@@ -600,13 +600,17 @@ function shortlist({ cwd }) {
|
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
// The same `.fleet/` by the directory it names: the checkout holding it is
|
|
603
|
-
// resolved through symlinks
|
|
604
|
-
//
|
|
605
|
-
//
|
|
603
|
+
// stat'd, then resolved through symlinks by the OS, so a `..` after a
|
|
604
|
+
// directory that does not exist, or after a file, is not folded away (darwin's
|
|
605
|
+
// realpath folds `file/..`; the stat refuses it). The `.fleet` name is kept as
|
|
606
|
+
// given, so it works before `.fleet/` exists. A path that is not absolute, or
|
|
607
|
+
// whose checkout does not resolve, stays as given.
|
|
606
608
|
function fleetIdentity(path) {
|
|
607
609
|
if (typeof path !== "string" || !isAbsolute(path)) return path;
|
|
608
610
|
try {
|
|
609
|
-
|
|
611
|
+
const checkout = dirname(path);
|
|
612
|
+
statSync(checkout);
|
|
613
|
+
return join(realpathSync.native(checkout), basename(path));
|
|
610
614
|
} catch {
|
|
611
615
|
return path;
|
|
612
616
|
}
|