Skip to content
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

Find the right package.json with pre-git config #106

Closed
bahmutov opened this issue Jun 2, 2017 · 0 comments
Closed

Find the right package.json with pre-git config #106

bahmutov opened this issue Jun 2, 2017 · 0 comments

Comments

@bahmutov
Copy link
Owner

bahmutov commented Jun 2, 2017

Imagine a monorepo with top level package.json and subprojects, each with its own package.json

If we setup pre-git in the root folder (same level as git root), and then try to commit from subfolder, it will grab closest package.json and will try to use it.

.git/
node_modules/
package.json  (with pre-git config)
  - projects/
     - foo/
         package.json (without pre-git config)

pre-git should prefer closest package.json file or find package.json with config object

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

No branches or pull requests

1 participant