Skip to content

Parameter 'from' is always set relative to directory with the generator #303

@epodivilov

Description

@epodivilov

The parameter 'from' is always set relative to the directory with the generator.
For example, I can define helper 'root', which returns project directory and use it like this:

---
from: "<%= h.root() %>/some-directory/some-file.json"
to: "<%= h.root() %>/some-other-directory/some-other-file.json"
---

I expect, that paths will be like this:

from: /path/to/project/some-directory/some-file.json
to: /path/to/project/some-other-directory/some-other-file.json

But actually they are this:

from: /path/to/templates/path/to/project/some-directory/some-file.json
to: /path/to/project/some-other-directory/some-other-file.json

Is there any way to define absolute path?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions