Open de-don opened 2 months ago
Hey @de-don ๐
The FsTree is not really meant to be created by code outside of Nx's control. Can you go into a bit more detail about your use case? The glob
method uses the underlying Nx workspace context's stored file information to perform the glob. If the root is not the root of the nx workspace this will be inaccurate as you have seen, but remaking a workspace-context for a subdir just to perform a glob would be overkill.
Depending on what your need is my gut would be to recommend creating a glob function in your codebase rather than using the devkit glob, but I'd like some more info before saying that.
@AgentEnder I use FsTree
in my executors to create and edit files. Unlike generators, executors do not provide a tree. Using FsTree allows me to:
This issue has been automatically marked as stale because more information has not been provided within 7 days. It will be closed in 21 days if no information is provided. If information has been provided, please reply to keep it active. Thanks for being a part of the Nx community! ๐
up :)
Current Behavior
When I am trying to use FsTree + glob with some sub directory in my repo, glob works from repository root, not from tree.root.
Expected Behavior
glob patterns should be relative from tree.root
GitHub Repo
No response
Steps to Reproduce
dir2
:Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
Currentry I am fixed this with prefix: