@fro.bot/systematic 3.5.6 → 3.5.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/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11115,7 +11115,8 @@ function deriveApplyPatchTarget(args2, sessionLocation, parentTargetRoot, option
|
|
|
11115
11115
|
if (workdir.status === "unavailable")
|
|
11116
11116
|
return unavailableOperationTarget();
|
|
11117
11117
|
const targets = patchPaths.map((rawPath) => deriveFileTarget(rawPath, workdir.target.resolvedPath, parentTargetRoot, options, realPath, args2.workdir === undefined));
|
|
11118
|
-
const
|
|
11118
|
+
const seedWorkdirRoot = args2.workdir !== undefined || targets.length === 0;
|
|
11119
|
+
const targetRoot = sharedTargetRoot(targets, seedWorkdirRoot ? [workdir.target.targetRoot] : []);
|
|
11119
11120
|
return targetRoot ? { status: "available", targetRoot } : unavailableOperationTarget();
|
|
11120
11121
|
}
|
|
11121
11122
|
function deriveBashTarget(args2, sessionLocation, parentTargetRoot, options, realPath) {
|