Closed daedal-knickerbockers closed 1 year ago
I overlooked the fact that it is stupid for monorepos. I would adjust the logic that package.json does not necessarily determine the root, but only if no other root could be determined. In addition, it is possible in package.json also specify the configuration. This I add that all found package.json are searched for a possible configuration, but only the first found is used.
I have adjusted the logic as described. It will go live with the next release probably on Sunday
Sorry for the late answer - I just checked with my project and it works just as expected 👍🏻
Many thanks for the quick fix!
Not late, just in time. i released it yesterday:-)
Hi!
I currently have the problem that httpyac is a bit tedious to use with npm workspaces. Here's my project setup as an example:
The
.httpyac.json
file includes all environments so that the are managed at a central place and can be shared between requests.When trying to send
first-request.http
, none of the environments defined in.httpyac.json
can be found. According to the docs this might be caused by the priority of the files considers the project root:As a workaround, I can add a separate
.httpyac.json
file into each workspace and set theenvDirName
manually to the actual project root folder.Now when opening first-request.http shows all envs from the root
.httpyac.json
file.Maybe there could be an option to exclude files based on a pattern from the project root search? In my case it would be enough to ignore
package.json
and everything should be set.Is this something you would consider? Or is there an existing config option I am just missing?
Thanks a bunch for the great tool!