-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[client] Export buildFileTree()
and return the ignore list
#4917
Conversation
The ignore list from this function will be used in production to render a warning if there are files listed in the `.vercelignore` file that are being comitted to the project's git repo.
@@ -81,17 +81,24 @@ export async function buildFileTree( | |||
path: string | string[], | |||
isDirectory: boolean, | |||
debug: Debug |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to be able to use this debug()
command during the build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was able to just pass console.log
to it in a local script and typescript didn't complain, so I think we can pass it basically any function that accepts a string argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add some tests (or update existing tests) to check for the new ignoreList
export
Co-authored-by: Steven <steven@ceriously.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ignore list from this function will be used in production to
render a warning if there are files listed in the
.vercelignore
filethat are being committed to the project's git repo.