package-versioner 0.8.2 → 0.8.4
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.
- package/README.md +12 -3
- package/dist/index.cjs +442 -476
- package/dist/index.js +452 -486
- package/docs/versioning.md +51 -2
- package/package-versioner.schema.json +2 -2
- package/package.json +7 -2
package/README.md
CHANGED
|
@@ -158,8 +158,8 @@ Customize behaviour by creating a `version.config.json` file in your project roo
|
|
|
158
158
|
|
|
159
159
|
#### Monorepo-Specific Options
|
|
160
160
|
- `synced`: Whether all packages should be versioned together (default: true)
|
|
161
|
-
- `skip`: Array of package names to exclude from versioning
|
|
162
|
-
- `packages`: Array of package names or patterns to target for versioning. Supports exact names, scope wildcards, and global wildcards (e.g., ["@scope/package-a", "@scope/*", "*"])
|
|
161
|
+
- `skip`: Array of package names or patterns to exclude from versioning. Supports exact names, scope wildcards, path patterns, and global wildcards (e.g., ["@scope/package-a", "@scope/*", "packages/**/*"])
|
|
162
|
+
- `packages`: Array of package names or patterns to target for versioning. Supports exact names, scope wildcards, path patterns and global wildcards (e.g., ["@scope/package-a", "@scope/*", "*"])
|
|
163
163
|
- `mainPackage`: Package name whose commit history should drive version determination
|
|
164
164
|
- `packageSpecificTags`: Whether to enable package-specific tagging behaviour (default: false)
|
|
165
165
|
- `updateInternalDependencies`: How to update internal dependencies ("patch", "minor", "major", or "inherit")
|
|
@@ -185,6 +185,15 @@ Target all packages within a specific scope:
|
|
|
185
185
|
}
|
|
186
186
|
```
|
|
187
187
|
|
|
188
|
+
#### Path Patterns / Globs
|
|
189
|
+
Target all packages in a directory or matching a path pattern:
|
|
190
|
+
```json
|
|
191
|
+
{
|
|
192
|
+
"packages": ["packages/**/*", "examples/**"]
|
|
193
|
+
}
|
|
194
|
+
```
|
|
195
|
+
This will match all packages in nested directories under `packages/` or `examples/`.
|
|
196
|
+
|
|
188
197
|
#### Global Wildcard
|
|
189
198
|
Target all packages in the workspace:
|
|
190
199
|
```json
|
|
@@ -197,7 +206,7 @@ Target all packages in the workspace:
|
|
|
197
206
|
Combine different pattern types:
|
|
198
207
|
```json
|
|
199
208
|
{
|
|
200
|
-
"packages": ["@mycompany/*", "@utils/logger", "legacy-package"]
|
|
209
|
+
"packages": ["@mycompany/*", "@utils/logger", "legacy-package", "packages/**/*"]
|
|
201
210
|
}
|
|
202
211
|
```
|
|
203
212
|
|