-
Notifications
You must be signed in to change notification settings - Fork 4
fix: exclude .eslintignore, .prettierignore and .graphql files #1252
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
fix: exclude .eslintignore, .prettierignore and .graphql files #1252
Conversation
|
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.
Pull Request Overview
This PR fixes a deployment issue by excluding specific file types that aren't supported by the Frontify Marketplace from the deployment package.
- Updates the SOURCE_FILE_BLOCK_LIST to exclude .eslintignore, .prettierignore, and .graphql files
- Modifies the path processing logic to handle glob patterns properly when converting paths
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| const sourceFilesToIgnore = [...gitignoreEntries, ...SOURCE_FILE_BLOCK_LIST].map((path) => { | ||
| if (path.includes('*')) { | ||
| return `${projectPath}/${path}`; | ||
| } | ||
| return fastGlob.convertPathToPattern(`${projectPath}/${path}`); | ||
| }); |
Copilot
AI
Sep 4, 2025
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 condition path.includes('*') is too broad and could incorrectly identify non-glob patterns. For example, a file named 'my*file.txt' would be treated as a glob pattern. Consider using a more precise check like path.includes('**') || path.includes('*.') or use a proper glob pattern detection method.
The issue occurred because .eslintignore, .prettierignore, and .graphql files were being included in the deployment package, but the Frontify Marketplace doesn't support this file extension for source files.