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

[client] Export buildFileTree() and return the ignore list #4917

Merged
merged 6 commits into from
Jul 25, 2020

Conversation

TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Jul 24, 2020

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 committed to the project's git repo.

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
Copy link
Member

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?

Copy link
Member Author

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.

Copy link
Member

@styfle styfle left a 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

TooTallNate and others added 2 commits July 24, 2020 14:50
@vercel vercel bot temporarily deployed to Preview July 24, 2020 21:52 Inactive
Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

:shipit:

@TooTallNate TooTallNate merged commit 9ba14be into master Jul 25, 2020
@TooTallNate TooTallNate deleted the ch5773/ignore-list branch July 25, 2020 00:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants