Skip to content

Commit

Permalink
Rename a method.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Dec 6, 2024
1 parent a7a13aa commit 18e1877
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Util/AutoCopy.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class AutoCopy {
}
}

getRelativeToFilePath(ref, contextFilePath) {
getFilePathRelativeToProjectRoot(ref, contextFilePath) {
let dir = TemplatePath.getDirFromFilePath(contextFilePath);
return TemplatePath.join(dir, ref);
}
Expand All @@ -110,7 +110,7 @@ class AutoCopy {
}

// Relative to source file’s input path
let source = this.getRelativeToFilePath(fileRef, tmplInputPath);
let source = this.getFilePathRelativeToProjectRoot(fileRef, tmplInputPath);
if (!this.isCopyableTarget(source)) {
return;
}
Expand All @@ -133,7 +133,7 @@ class AutoCopy {
source = alias;
}

let target = this.getRelativeToFilePath(fileRef, tmplOutputPath);
let target = this.getFilePathRelativeToProjectRoot(fileRef, tmplOutputPath);

// We use a Set here to allow passthrough copy manager to properly error on conflicts upstream
// Only errors when different inputs write to the same output
Expand Down

0 comments on commit 18e1877

Please sign in to comment.