Skip to content

feat: skip gitignore for external patterns#8

Merged
koistya merged 2 commits intomainfrom
dev
Jan 30, 2026
Merged

feat: skip gitignore for external patterns#8
koistya merged 2 commits intomainfrom
dev

Conversation

@koistya
Copy link
Member

@koistya koistya commented Jan 30, 2026

Summary

  • External patterns (../) now skip .gitignore filtering since it only applies within cwd
  • Adds isExternalPattern() helper to detect parent directory references
  • Handles redundant ./ prefix (e.g., ./../other)

Example

// srcpack.config.ts
export default {
  bundles: {
    context: {
      include: [
        "src/**/*.ts",           // Respects .gitignore
        "../shared/utils/**/*",  // Skips .gitignore (external)
      ],
    },
  },
};

Test plan

  • Unit tests for external pattern detection
  • Tests verify gitignore is not applied to external paths

Patterns referencing parent directories (../) now skip .gitignore
filtering since it only applies to files within cwd.
@koistya koistya merged commit b20a912 into main Jan 30, 2026
1 check passed
@koistya koistya deleted the dev branch January 30, 2026 16:06
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