Skip to content

feat!: stop throwing error when directories do not exist #6556

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

Merged
merged 4 commits into from
Jul 14, 2025

Conversation

eduardoboucas
Copy link
Member

Summary

zip-it-and-ship-it is currently throwing an error when none of the function directories exist. I suspect this is a legacy artefact and I can't think of a good reason why this should be in place.

First of all, we're already checking the existence of these directories upstream of zip-it-and-ship-it. Also, these directories are a mixed bag of directories created by users and generated by frameworks, so it doesn't make sense to me that a user with a missing netlify/functions directory gets an error whereas another one doesn't because one has a .netlify/v1/functions generated by a framework and the other one doesn't.

I'm bumping a major version here because this is technically a breaking change.

@eduardoboucas eduardoboucas requested a review from a team as a code owner July 14, 2025 09:18
@eduardoboucas eduardoboucas merged commit 9103da6 into main Jul 14, 2025
60 of 62 checks passed
@eduardoboucas eduardoboucas deleted the feat/zisi-non-existing-dirs branch July 14, 2025 10:01
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.

2 participants