make privatePackages true enable tagging · changesets/changesets@d4909c3 · GitHub
Skip to content

Commit d4909c3

Browse files
committed
make privatePackages true enable tagging
1 parent 82a41b6 commit d4909c3

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.changeset/tidy-pandas-wave.md‎

Lines changed: 1 addition & 1 deletion

‎docs/config-file-options.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Default value: `true`
229229

230230
## `privatePackages` (object or boolean)
231231

232-
This option is for setting how private packages should be handled. By default, Changesets will not version or tag private packages. Set it to `true` to version private packages without tagging them, or use the object form to configure each behavior separately.
232+
This option is for setting how private packages should be handled. By default, Changesets will not version or tag private packages. Set it to `true` to version and tag private packages, or use the object form to configure each behavior separately.
233233

234234
### `version` (optional boolean)
235235

@@ -257,7 +257,7 @@ This is equivalent to:
257257
{
258258
"privatePackages": {
259259
"version": true,
260-
"tag": false
260+
"tag": true
261261
}
262262
}
263263
```

‎packages/config/src/config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export function normalizeWrittenConfig({
185185
if (typeof writtenConfig.privatePackages !== "object") {
186186
config.privatePackages = {
187187
version: writtenConfig.privatePackages ?? false,
188-
tag: false,
188+
tag: writtenConfig.privatePackages ?? false,
189189
};
190190
} else {
191191
config.privatePackages = {

‎packages/config/src/parse.test.ts‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)