bahmutov / bahmutov/pre-git

Error when package.json not found

Open
#66 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
170
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Pre-git breaks the .git hooks because it always require to look for ./node_modules in the root app. However our application as been restructured to enforce MAVEN strict folder structure. Hence we now put all our root files under src/main/webapp/. This causes the pre-git to no longer find installed pre hooks easily because it expects them to be under ./node_modules/.bin/pre-commit for example. Can you please take a look.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how pre-git locates package.json and ./node_modules/.bin/pre-commit when the application files are under src/main/webapp/. Verify the behavior with a Maven-style project layout and consider the work complete when pre-commit and other pre-git hooks are found and installed from that structure.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, javascript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.