Skip to content

Feat/implicit ignore files#216

Open
Chandraveersingh1717 wants to merge 3 commits intometacall:masterfrom
Chandraveersingh1717:feat/implicit-ignore-files
Open

Feat/implicit ignore files#216
Chandraveersingh1717 wants to merge 3 commits intometacall:masterfrom
Chandraveersingh1717:feat/implicit-ignore-files

Conversation

@Chandraveersingh1717
Copy link

Description

Currently, when deploying a directory using metacall-deploy, users must manually pass -I / --ignore flags to exclude unnecessary folders such as node_modules or .git. If these flags are missed, large folders may be included in the deployment archive, increasing upload size and deployment time.

This PR improves the developer experience by automatically reading ignore rules from .gitignore and .metacallignore during deployment.

Changes

  • Automatic Ignore Loading
    Reads .gitignore and .metacallignore from the project root during deployment.

  • Ignore Parsing
    Safely ignores empty lines and comment lines (#).

  • Deduplication
    Combines CLI --ignore flags with ignore files using Set to avoid duplicate patterns.

  • Refactor
    Removed a shadowed descriptor variable and improved handling of potential TypeScript edge cases.

Type of Change

  • Bug fix / refactor
  • New feature (non-breaking improvement)

Testing

  • Tested deployment locally with .gitignore and .metacallignore
  • Verified TypeScript build and linting (npm run build, npm run lint)
  • No warnings or errors

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.

1 participant