-
Notifications
You must be signed in to change notification settings - Fork 6
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
Inaccurate path to @fastify/pre-commit/hook #32
Comments
We'd welcome a PR. But I doubt it will be easy. The module is written for plain projects, not monorepos. |
@jsumners should just be one line change in install.js line 99
|
Would you like to send a Pull Request to address this issue? Remember to add unit tests. |
Sure I will do it when I have time; |
I can just confirm that above change of line 99 helps to fix the path for the I had a further idea, to first go into the subfolder before executing the
I get 1 step further but now I have an other error:
So, we miss the correct place of the package.json now again, this definitely needs more changes to bring it to work with subfolder scenarios... So on the following lines, you would need to fix the path as well:
I don't have time to fix this here, but just wanted to share my findings. Cheers! |
Prerequisites
Fastify version
0.0.0
Plugin version
2.0.2
Node.js version
10.19.0
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
ubuntu 20.04
Description
This fixes the installation to correctly find the .git folder to install...when running "npm install" in a subfolder:
#17
but if you look at the pre-commit it executing:
./node_modules/@fastify/pre-commit/hook
that should be
./web/node_modules/@fastify/pre-commit/hook
Steps to Reproduce
Expected Behavior
expect to see './web/node_modules/@fastify/pre-commit/hook' instead of './node_modules/@fastify/pre-commit/hook"
The text was updated successfully, but these errors were encountered: