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

Don't stop npm install if Husky fails #30

Merged
merged 1 commit into from
Sep 1, 2023
Merged

Don't stop npm install if Husky fails #30

merged 1 commit into from
Sep 1, 2023

Conversation

ShiningTrapez
Copy link
Contributor

@ShiningTrapez ShiningTrapez commented Aug 22, 2023

Description

Likely due to not being at the root of the repo, for example if being installed in a subproject of a monorepo

Motivation and Context

Fixes #29; this was causing issues trying to use the new version in EPT. Similar approach for this problem used in BSP: https://github.com/bbc/bigscreen-player/blob/master/package.json#L15

How Has This Been Tested?

Ran npm install in and outside of a repo context (Deleted .git), completes successfully in both cases, and Git Hooks are installed inside the repo context.

Checklist:

  • [N/A] My change requires a change to the documentation.
  • [N/A] I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • [N/A] I have added tests to cover my changes.
  • All new and existing tests passed.

Likely due to not being at the root of the repo, for example if being installed in a subproject of a monorepo
@ShiningTrapez ShiningTrapez self-assigned this Aug 22, 2023
@ShiningTrapez ShiningTrapez requested a review from a team as a code owner August 22, 2023 08:45
Copy link
Contributor

@Murreey Murreey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ShiningTrapez ShiningTrapez merged commit 2ec0443 into master Sep 1, 2023
1 check passed
@ShiningTrapez ShiningTrapez deleted the husky-fix branch September 1, 2023 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check if at Root of Repo before running husky install
2 participants