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

Add check and execute npm only if the package.json exists. #2064

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

ildyria
Copy link
Member

@ildyria ildyria commented Dec 2, 2023

Fixes #2063

This is a temporary change as with Livewire the package.json will come back hence why I did not remove the command completely but added a simple check.

@ildyria ildyria requested a review from a team December 2, 2023 11:57
@ildyria ildyria mentioned this pull request Dec 2, 2023
@ildyria
Copy link
Member Author

ildyria commented Dec 2, 2023

@jln646v could you double check on your end? I found it working locally. :)

Copy link

codecov bot commented Dec 2, 2023

Codecov Report

Merging #2064 (987d5e0) into master (5d57c22) will decrease coverage by 2.44%.
The diff coverage is n/a.

Additional details and impacted files

@qwerty287
Copy link
Contributor

Can we just completely remove this npm part from the script and re-add it in the livewire PR?

@ildyria
Copy link
Member Author

ildyria commented Dec 2, 2023

That was the other option. However people don't often update their git hooks, so for this reason I thought it was preferable to have both right from the start even if unused at the moment.

@qwerty287
Copy link
Contributor

Isn't this file auto-updated when executing the hook?

@ildyria
Copy link
Member Author

ildyria commented Dec 2, 2023

Isn't this file auto-updated when executing the hook?

Indeed, forgot about that.

@ildyria
Copy link
Member Author

ildyria commented Dec 2, 2023

@qwerty287 ? :)

@qwerty287 qwerty287 merged commit 5424abc into master Dec 2, 2023
18 of 24 checks passed
@qwerty287 qwerty287 deleted the add-check-package-exists branch December 2, 2023 13:25
@vjuliano
Copy link

vjuliano commented Dec 2, 2023

Pulling latest master still results in the npm step running and same error about missing package.json

@ildyria
Copy link
Member Author

ildyria commented Dec 2, 2023

You need to update your git hook (with the one in the script folder). That npm package.json is not going to be back before #2035 is merged.

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.

Missing package.json
3 participants