Skip to content

fix: correctly exclude files #720

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 8 commits into from
Oct 19, 2021
Merged

fix: correctly exclude files #720

merged 8 commits into from
Oct 19, 2021

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Oct 18, 2021

Excluded files need to be relative to the base dir, so node modules need to be resolved. Meanwhile, some other files were being excluded that are sometimes needed.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Oct 18, 2021
@ascorbic ascorbic changed the title fix: correctly exclude files in monorepos fix: correctly exclude files Oct 19, 2021
@ascorbic ascorbic force-pushed the fix/exclude-paths branch 3 times, most recently from 8e9f082 to 834f73c Compare October 19, 2021 10:41
'!node_modules/sharp/**/*',
]
expect(netlifyConfig.functions[HANDLER_FUNCTION_NAME].included_files).toEqual(includes)
expect(netlifyConfig.functions[ODB_FUNCTION_NAME].included_files).toEqual(includes)
// Relative paths in Windows are different
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was not worth the effort to make the snapshots match on Windows. I tried. I gave up. I'm sorry.

@ascorbic ascorbic requested a review from a team October 19, 2021 11:09
Release-as: 4.0.0-beta.2
@kodiakhq kodiakhq bot merged commit efba43e into main Oct 19, 2021
@kodiakhq kodiakhq bot deleted the fix/exclude-paths branch October 19, 2021 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants