Skip to content

Commit

Permalink
Add relativePath
Browse files Browse the repository at this point in the history
  • Loading branch information
piascikj committed Sep 12, 2024
1 parent adf488a commit 4e6de0f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,9 +445,13 @@ module.exports = class WorkerProject extends Project {

if (comments) template = Task.addToLastCommentInContent(template, comments, this.config.isMetaNewLine())

let relativePath = _path.relative(this.path, path)
if (isDirectory) relativePath += _path.sep

const data = {
list,
path,
relativePath,
template,
isDirectory,
}
Expand Down

0 comments on commit 4e6de0f

Please sign in to comment.