Skip to content

Feature: add --ignore-pattern flag to exclude files from the deploy bundle #220

@codxbrexx

Description

@codxbrexx

What's needed

Right now the deploy CLI zips and uploads everything in the project directory, with no way to exclude files. We need a -i / --ignore-pattern flag so users can skip things like test files, local configs, or large assets that shouldn't be part of the deployment bundle.

Proposed behavior

metacall-deploy --ignore-pattern "*.test.js" --ignore-pattern ".env.local"
  • Accepts one or more glob patterns.
  • Defaults to a sensible per-language default (e.g. node_modules/ for Node, __pycache__/ for Python).
  • Patterns are applied during the zip step before upload.

Why this matters

Without it, users either upload unnecessary files (increasing bundle size and upload time) or have to manually clean the directory before every deploy.

Note: This is already tracked in the project's TODO list. Happy to contribute the implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions