-
-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow --nycrc-path
to be absolute
#1073
Comments
I'm looking into creating a proper fix for this. That said I would recommend instead using {
"nyc": {
"extends": "@my-org/nyc-config"
}
} You would also run |
Thanks that would work. However I am trying to abstract any development tool in that shared module. I.e. when development tooling changes, my libraries don't need to be updated. I.e. I am avoiding adding any configuration property or file related to development/build tasks in my libraries, and instead only point to that shared module. |
Not following the last statement, you need to add |
Each of my libraries install a module
Links to: The reason of the setup is I am trying to reduce repeated code between libraries to the minimum. This includes not only code, but also configuration properties/files. I even try to remove configuration files that merely forward to another module. |
@ehmicky this will be supported by the next release of |
@coreyfarrell thanks for the update and the work downstream with that PR on |
The new release of |
Thanks, that's great! |
At the moment
--nycrc-path
value must be relative. It would be great if this could be absolute as well.My use case: I have a module with shared development tasks that I use in many libraries. One of those tasks is running tests with
nyc
. Thenyc
configuration is always the same, i.e. I want to specify it inside that shared module instead of inside each library.I cannot use
--cwd
as it would impact test coverage (not just configuration loading). I.e. I need to use__dirname
with an absolute path.My current workaround is to use CLI flags instead of a configuration file, but a configuration file would be better.
The text was updated successfully, but these errors were encountered: