syncpack 15.0.0 → 15.1.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.
package/README.md CHANGED
@@ -95,6 +95,12 @@ syncpack update --target latest
95
95
  syncpack update --target minor
96
96
  # Only update patch versions (1.2.x)
97
97
  syncpack update --target patch
98
+ # Pick which updates to apply through an interactive prompt
99
+ syncpack update --interactive
100
+ # Interactively pick from patch updates only
101
+ syncpack update --interactive --target patch
102
+ # Interactively pick which @aws-sdk packages to update
103
+ syncpack update --interactive --dependencies '@aws-sdk/**'
98
104
  # Check for outdated dependencies in one package
99
105
  syncpack update --check --source 'packages/pingu/package.json'
100
106
  # Update dependencies and devDependencies in the whole monorepo
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "syncpack",
3
3
  "description": "Consistent dependency versions in large JavaScript Monorepos",
4
- "version": "15.0.0",
4
+ "version": "15.1.1",
5
5
  "author": "Jamie Mason <jamie@foldleft.io> (https://github.com/JamieMason)",
6
6
  "bugs": "https://github.com/JamieMason/syncpack/issues",
7
7
  "contributors": [
@@ -73,14 +73,14 @@
73
73
  "syncpack": "./index.cjs"
74
74
  },
75
75
  "optionalDependencies": {
76
- "syncpack-linux-x64": "15.0.0",
77
- "syncpack-linux-x64-musl": "15.0.0",
78
- "syncpack-linux-arm64": "15.0.0",
79
- "syncpack-linux-arm64-musl": "15.0.0",
80
- "syncpack-darwin-x64": "15.0.0",
81
- "syncpack-darwin-arm64": "15.0.0",
82
- "syncpack-windows-x64": "15.0.0",
83
- "syncpack-windows-arm64": "15.0.0"
76
+ "syncpack-linux-x64": "15.1.1",
77
+ "syncpack-linux-x64-musl": "15.1.1",
78
+ "syncpack-linux-arm64": "15.1.1",
79
+ "syncpack-linux-arm64-musl": "15.1.1",
80
+ "syncpack-darwin-x64": "15.1.1",
81
+ "syncpack-darwin-arm64": "15.1.1",
82
+ "syncpack-windows-x64": "15.1.1",
83
+ "syncpack-windows-arm64": "15.1.1"
84
84
  },
85
85
  "types": "./syncpack.d.ts"
86
86
  }
package/schema.json CHANGED
@@ -266,6 +266,13 @@
266
266
  "see": "https://syncpack.dev/config/strict",
267
267
  "type": "boolean"
268
268
  },
269
+ "updateGroups": {
270
+ "items": {
271
+ "$ref": "#/definitions/UpdateGroup.Any"
272
+ },
273
+ "see": "https://syncpack.dev/update-groups",
274
+ "type": "array"
275
+ },
269
276
  "versionGroups": {
270
277
  "items": {
271
278
  "$ref": "#/definitions/VersionGroup.Any"
@@ -470,6 +477,194 @@
470
477
  ],
471
478
  "type": "object"
472
479
  },
480
+ "UpdateGroup.Any": {
481
+ "anyOf": [
482
+ {
483
+ "$ref": "#/definitions/UpdateGroup.Ignored"
484
+ },
485
+ {
486
+ "$ref": "#/definitions/UpdateGroup.Targeted"
487
+ }
488
+ ]
489
+ },
490
+ "UpdateGroup.Ignored": {
491
+ "additionalProperties": false,
492
+ "properties": {
493
+ "dependencies": {
494
+ "items": {
495
+ "type": "string"
496
+ },
497
+ "see": "https://syncpack.dev/version-groups/highest-semver/#dependencies",
498
+ "type": "array"
499
+ },
500
+ "dependencyTypes": {
501
+ "items": {
502
+ "anyOf": [
503
+ {
504
+ "type": "string"
505
+ },
506
+ {
507
+ "enum": [
508
+ "dev",
509
+ "local",
510
+ "overrides",
511
+ "peer",
512
+ "pnpmOverrides",
513
+ "prod",
514
+ "resolutions"
515
+ ],
516
+ "type": "string"
517
+ }
518
+ ]
519
+ },
520
+ "see": "https://syncpack.dev/version-groups/highest-semver/#dependencytypes",
521
+ "type": "array"
522
+ },
523
+ "isIgnored": {
524
+ "const": true,
525
+ "see": "https://syncpack.dev/update-groups/ignored/#isignored",
526
+ "type": "boolean"
527
+ },
528
+ "label": {
529
+ "see": "https://syncpack.dev/version-groups/highest-semver/#label",
530
+ "type": "string"
531
+ },
532
+ "packages": {
533
+ "items": {
534
+ "type": "string"
535
+ },
536
+ "see": "https://syncpack.dev/version-groups/highest-semver/#packages",
537
+ "type": "array"
538
+ },
539
+ "specifierTypes": {
540
+ "items": {
541
+ "anyOf": [
542
+ {
543
+ "type": "string"
544
+ },
545
+ {
546
+ "enum": [
547
+ "alias",
548
+ "exact",
549
+ "file",
550
+ "git",
551
+ "latest",
552
+ "major",
553
+ "minor",
554
+ "missing",
555
+ "range",
556
+ "range-complex",
557
+ "range-major",
558
+ "range-minor",
559
+ "tag",
560
+ "unsupported",
561
+ "url",
562
+ "workspace-protocol"
563
+ ],
564
+ "type": "string"
565
+ }
566
+ ]
567
+ },
568
+ "see": "https://syncpack.dev/version-groups/highest-semver/#specifiertypes",
569
+ "type": "array"
570
+ }
571
+ },
572
+ "required": [
573
+ "isIgnored"
574
+ ],
575
+ "type": "object"
576
+ },
577
+ "UpdateGroup.Targeted": {
578
+ "additionalProperties": false,
579
+ "properties": {
580
+ "dependencies": {
581
+ "items": {
582
+ "type": "string"
583
+ },
584
+ "see": "https://syncpack.dev/version-groups/highest-semver/#dependencies",
585
+ "type": "array"
586
+ },
587
+ "dependencyTypes": {
588
+ "items": {
589
+ "anyOf": [
590
+ {
591
+ "type": "string"
592
+ },
593
+ {
594
+ "enum": [
595
+ "dev",
596
+ "local",
597
+ "overrides",
598
+ "peer",
599
+ "pnpmOverrides",
600
+ "prod",
601
+ "resolutions"
602
+ ],
603
+ "type": "string"
604
+ }
605
+ ]
606
+ },
607
+ "see": "https://syncpack.dev/version-groups/highest-semver/#dependencytypes",
608
+ "type": "array"
609
+ },
610
+ "label": {
611
+ "see": "https://syncpack.dev/version-groups/highest-semver/#label",
612
+ "type": "string"
613
+ },
614
+ "packages": {
615
+ "items": {
616
+ "type": "string"
617
+ },
618
+ "see": "https://syncpack.dev/version-groups/highest-semver/#packages",
619
+ "type": "array"
620
+ },
621
+ "specifierTypes": {
622
+ "items": {
623
+ "anyOf": [
624
+ {
625
+ "type": "string"
626
+ },
627
+ {
628
+ "enum": [
629
+ "alias",
630
+ "exact",
631
+ "file",
632
+ "git",
633
+ "latest",
634
+ "major",
635
+ "minor",
636
+ "missing",
637
+ "range",
638
+ "range-complex",
639
+ "range-major",
640
+ "range-minor",
641
+ "tag",
642
+ "unsupported",
643
+ "url",
644
+ "workspace-protocol"
645
+ ],
646
+ "type": "string"
647
+ }
648
+ ]
649
+ },
650
+ "see": "https://syncpack.dev/version-groups/highest-semver/#specifiertypes",
651
+ "type": "array"
652
+ },
653
+ "target": {
654
+ "enum": [
655
+ "patch",
656
+ "minor",
657
+ "latest"
658
+ ],
659
+ "see": "https://syncpack.dev/update-groups/targeted/#target",
660
+ "type": "string"
661
+ }
662
+ },
663
+ "required": [
664
+ "target"
665
+ ],
666
+ "type": "object"
667
+ },
473
668
  "VersionGroup.Any": {
474
669
  "anyOf": [
475
670
  {
package/syncpack.d.ts CHANGED
@@ -25,6 +25,8 @@ export interface RcFile {
25
25
  minimumReleaseAge?: number;
26
26
  /** @see https://syncpack.dev/semver-groups */
27
27
  semverGroups?: SemverGroup.Any[];
28
+ /** @see https://syncpack.dev/update-groups */
29
+ updateGroups?: UpdateGroup.Any[];
28
30
  /** @see https://syncpack.dev/config/sort-az */
29
31
  sortAz?: string[];
30
32
  /** @see https://syncpack.dev/config/sort-exports */
@@ -87,6 +89,17 @@ declare namespace SemverGroup {
87
89
  }
88
90
  type Any = Ignored | WithRange;
89
91
  }
92
+ declare namespace UpdateGroup {
93
+ interface Ignored extends GroupSelector {
94
+ /** @see https://syncpack.dev/update-groups/ignored/#isignored */
95
+ isIgnored: true;
96
+ }
97
+ interface Targeted extends GroupSelector {
98
+ /** @see https://syncpack.dev/update-groups/targeted/#target */
99
+ target: 'patch' | 'minor' | 'latest';
100
+ }
101
+ type Any = Ignored | Targeted;
102
+ }
90
103
  declare namespace VersionGroup {
91
104
  interface Banned extends GroupSelector {
92
105
  /** @see https://syncpack.dev/version-groups/banned/#isbanned */