Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Specifying a custom package.json location for your project using .bithoundrc.
{
"ignore": [
"**/deps/**",
"**/node_modules/**",
"**/thirdparty/**",
"**/third_party/**",
"**/vendor/**",
"**/**-min-**",
"**/**-min.**",
"**/**.min.**",
"**/**jquery.?(ui|effects)-*.*.?(*).?(cs|j)s",
"**/**jquery-*.*.?(*).?(cs|j)s",
"**/prototype?(*).js",
"**/mootools*.*.*.js",
"**/dojo.js",
"**/MochiKit.js",
"**/yahoo-*.js",
"**/yui*.js",
"**/ckeditor*.js",
"**/tiny_mce*.js",
"**/tiny_mce/?(langs|plugins|themes|utils)/**",
"**/MathJax/**",
"**/shBrush*.js",
"**/shCore.js",
"**/shLegacy.js",
"**/modernizr.custom.?(*).js",
"**/knockout-*.*.*.debug.js",
"**/extjs/*.js",
"**/extjs/*.xml",
"**/extjs/*.txt",
"**/extjs/*.html",
"**/extjs/*.properties",
"**/extjs/.sencha",
"**/extjs/docs/**",
"**/extjs/builds/**",
"**/extjs/cmd/**",
"**/extjs/examples/**",
"**/extjs/locale/**",
"**/extjs/packages/**",
"**/extjs/plugins/**",
"**/extjs/resources/**",
"**/extjs/src/**",
"**/extjs/welcome/**",
"bower_components/**"
],
"test": [
"**/test/**",
"**/tests/**",
"**/spec/**",
"**/specs/**"
],
"packageJsonLocation": "foo/package.json"
}

Is there a way to include two package.json files? I have a project with client and server directories. Each has their own package.json.

aluxian commented Jun 8, 2016

+1 for multiple package.json files

+1 for multiple package.json files. I use a monorepo to host several npm packages of the same project. Another solution would be the possibility to have a bithound report for each package instead of one for the whole repo.

gmadole commented Aug 9, 2017

+1 multiple package.json file support would be great!

Joatin commented Jan 25, 2018

+1 multiple would be great for monorepos!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment