codeowners-git 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +18 -16
  2. package/dist/cli.js +1 -1
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -13,7 +13,7 @@ Managing large-scale migrations in big monorepos with multiple codeowners can be
13
13
  - Streamlining the review process with smaller, targeted PRs.
14
14
  - **Graceful error handling** with automatic recovery from failures.
15
15
 
16
- > **Note:** Starting from v2.0.0, this tool works with **staged files**. Stage your changes with `git add` before running commands.
16
+ > ❗❗ ❗ **Note:** Starting from v2.0.0, this tool works with **staged files**. Stage your changes with `git add` before running commands.
17
17
 
18
18
  https://github.com/user-attachments/assets/7cc0a924-f03e-47f3-baad-63eca9e8e4a8
19
19
 
@@ -77,15 +77,16 @@ The tool will automatically:
77
77
 
78
78
  The `--include` and `--ignore` options support glob patterns for flexible owner filtering:
79
79
 
80
- | Pattern | Description | Example Match |
81
- |---------|-------------|---------------|
82
- | `@org/team` | Exact match | `@org/team` only |
83
- | `*team` | Ends with | `@org/team`, `@company/team` |
84
- | `@org/*` | Starts with (org) | `@org/team-a`, `@org/team-b` |
85
- | `*ce-*` | Contains | `@org/ce-orca`, `@company/ce-team` |
86
- | `*orca,*rme` | Multiple patterns | Either pattern matches |
80
+ | Pattern | Description | Example Match |
81
+ | ------------ | ----------------- | ---------------------------------- |
82
+ | `@org/team` | Exact match | `@org/team` only |
83
+ | `*team` | Ends with | `@org/team`, `@company/team` |
84
+ | `@org/*` | Starts with (org) | `@org/team-a`, `@org/team-b` |
85
+ | `*ce-*` | Contains | `@org/ce-orca`, `@company/ce-team` |
86
+ | `*orca,*rme` | Multiple patterns | Either pattern matches |
87
87
 
88
88
  **Key behavior:**
89
+
89
90
  - `*` matches any character **including `/`** (slashes are normalized)
90
91
  - `*/ce-orca` and `*ce-orca` behave identically
91
92
  - Patterns are case-sensitive
@@ -95,16 +96,17 @@ The `--include` and `--ignore` options support glob patterns for flexible owner
95
96
 
96
97
  Path patterns use [micromatch](https://github.com/micromatch/micromatch) syntax:
97
98
 
98
- | Pattern | Description | Example Match |
99
- |---------|-------------|---------------|
100
- | `src` | Directory (auto-appends `/**`) | All files in `src/` |
101
- | `src/` | Directory with trailing slash | All files in `src/` |
102
- | `**/*.ts` | Glob pattern | All `.ts` files |
103
- | `{src,docs}` | Brace expansion | Files in `src/` or `docs/` |
104
- | `packages/{a,b}/**` | Combined | Files in `packages/a/` or `packages/b/` |
105
- | `packages/**/{foo,bar}` | Nested braces | Directories named `foo` or `bar` under packages |
99
+ | Pattern | Description | Example Match |
100
+ | ----------------------- | ------------------------------ | ----------------------------------------------- |
101
+ | `src` | Directory (auto-appends `/**`) | All files in `src/` |
102
+ | `src/` | Directory with trailing slash | All files in `src/` |
103
+ | `**/*.ts` | Glob pattern | All `.ts` files |
104
+ | `{src,docs}` | Brace expansion | Files in `src/` or `docs/` |
105
+ | `packages/{a,b}/**` | Combined | Files in `packages/a/` or `packages/b/` |
106
+ | `packages/**/{foo,bar}` | Nested braces | Directories named `foo` or `bar` under packages |
106
107
 
107
108
  **Key behavior:**
109
+
108
110
  - Directories without glob chars automatically match all files inside (`src` → `src/**`)
109
111
  - Use brace expansion `{a,b}` for multiple patterns (not comma-separated)
110
112
  - Supports full micromatch/glob syntax: `*`, `**`, `?`, `[...]`, `{...}`
package/dist/cli.js CHANGED
@@ -18779,7 +18779,7 @@ Next steps:`);
18779
18779
  }
18780
18780
  };
18781
18781
  // package.json
18782
- var version = "2.0.0";
18782
+ var version = "2.0.1";
18783
18783
 
18784
18784
  // src/commands/version.ts
18785
18785
  function getVersion() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeowners-git",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "module": "src/cli.ts",
5
5
  "type": "module",
6
6
  "private": false,
@@ -41,7 +41,8 @@
41
41
  "type-check": "bun tsc",
42
42
  "format": "biome format --write ./src",
43
43
  "lint": "biome lint ./src",
44
- "prepublish": "bun run build:dist && bun run test:all"
44
+ "prepublish": "bun run build:dist && bun run test:all",
45
+ "release": "bun run build:dist && bunx changeset publish"
45
46
  },
46
47
  "bin": {
47
48
  "codeowners-git": "dist/cli.js",