syncpack 5.8.14 → 6.2.0

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 (134) hide show
  1. package/README.md +211 -91
  2. package/dist/bin-fix-mismatches/fix-mismatches.d.ts +3 -0
  3. package/dist/bin-fix-mismatches/fix-mismatches.js +51 -0
  4. package/dist/bin-fix-mismatches/get-expected-version/get-highest-version.d.ts +1 -0
  5. package/dist/{commands/lib → bin-fix-mismatches/get-expected-version}/get-highest-version.js +25 -28
  6. package/dist/bin-fix-mismatches/get-expected-version/get-pinned-version.d.ts +2 -0
  7. package/dist/bin-fix-mismatches/get-expected-version/get-pinned-version.js +7 -0
  8. package/dist/bin-fix-mismatches/get-expected-version/get-workspace-version.d.ts +6 -0
  9. package/dist/bin-fix-mismatches/get-expected-version/get-workspace-version.js +17 -0
  10. package/dist/bin-fix-mismatches/get-expected-version/index.d.ts +3 -0
  11. package/dist/bin-fix-mismatches/get-expected-version/index.js +17 -0
  12. package/dist/{bin-fix-mismatches.d.ts → bin-fix-mismatches/index.d.ts} +0 -0
  13. package/dist/bin-fix-mismatches/index.js +66 -0
  14. package/dist/bin-format/format.d.ts +3 -0
  15. package/dist/bin-format/format.js +44 -0
  16. package/dist/{bin-format.d.ts → bin-format/index.d.ts} +0 -0
  17. package/dist/bin-format/index.js +56 -0
  18. package/dist/{bin-lint-semver-ranges.d.ts → bin-lint-semver-ranges/index.d.ts} +0 -0
  19. package/dist/bin-lint-semver-ranges/index.js +66 -0
  20. package/dist/bin-lint-semver-ranges/lint-semver-ranges.d.ts +2 -0
  21. package/dist/bin-lint-semver-ranges/lint-semver-ranges.js +40 -0
  22. package/dist/bin-lint-semver-ranges/list-semver-group-mismatches.d.ts +2 -0
  23. package/dist/bin-lint-semver-ranges/list-semver-group-mismatches.js +12 -0
  24. package/dist/{bin-list.d.ts → bin-list/index.d.ts} +0 -0
  25. package/dist/bin-list/index.js +64 -0
  26. package/dist/bin-list/list-version-groups.d.ts +9 -0
  27. package/dist/bin-list/list-version-groups.js +46 -0
  28. package/dist/bin-list/list.d.ts +2 -0
  29. package/dist/bin-list/list.js +44 -0
  30. package/dist/{bin-list-mismatches.d.ts → bin-list-mismatches/index.d.ts} +0 -0
  31. package/dist/bin-list-mismatches/index.js +64 -0
  32. package/dist/bin-list-mismatches/list-mismatches.d.ts +2 -0
  33. package/dist/bin-list-mismatches/list-mismatches.js +48 -0
  34. package/dist/{bin-set-semver-ranges.d.ts → bin-set-semver-ranges/index.d.ts} +0 -0
  35. package/dist/bin-set-semver-ranges/index.js +68 -0
  36. package/dist/bin-set-semver-ranges/set-semver-ranges.d.ts +3 -0
  37. package/dist/bin-set-semver-ranges/set-semver-ranges.js +25 -0
  38. package/dist/bin.js +19 -6
  39. package/dist/constants.d.ts +65 -32
  40. package/dist/constants.js +23 -19
  41. package/dist/lib/collect.d.ts +1 -1
  42. package/dist/lib/collect.js +2 -2
  43. package/dist/lib/disk.d.ts +10 -0
  44. package/dist/lib/disk.js +32 -0
  45. package/dist/lib/get-input/get-config.d.ts +9 -0
  46. package/dist/lib/get-input/get-config.js +112 -0
  47. package/dist/lib/get-input/get-instances.d.ts +21 -0
  48. package/dist/lib/get-input/get-instances.js +137 -0
  49. package/dist/lib/get-input/get-wrappers/get-file-paths.d.ts +15 -0
  50. package/dist/lib/get-input/get-wrappers/get-file-paths.js +48 -0
  51. package/dist/lib/get-input/get-wrappers/get-patterns/get-lerna-patterns.d.ts +3 -0
  52. package/dist/lib/get-input/get-wrappers/get-patterns/get-lerna-patterns.js +36 -0
  53. package/dist/lib/get-input/get-wrappers/get-patterns/get-pnpm-patterns.d.ts +3 -0
  54. package/dist/lib/get-input/get-wrappers/get-patterns/get-pnpm-patterns.js +41 -0
  55. package/dist/lib/get-input/get-wrappers/get-patterns/get-yarn-patterns.d.ts +3 -0
  56. package/dist/lib/get-input/get-wrappers/get-patterns/get-yarn-patterns.js +42 -0
  57. package/dist/lib/get-input/get-wrappers/get-patterns/index.d.ts +13 -0
  58. package/dist/lib/get-input/get-wrappers/get-patterns/index.js +72 -0
  59. package/dist/lib/get-input/get-wrappers/get-patterns/props.d.ts +7 -0
  60. package/dist/lib/get-input/get-wrappers/get-patterns/props.js +39 -0
  61. package/dist/lib/get-input/get-wrappers/get-patterns/read-json-safe.d.ts +4 -0
  62. package/dist/lib/get-input/get-wrappers/get-patterns/read-json-safe.js +37 -0
  63. package/dist/lib/get-input/get-wrappers/get-patterns/read-yaml-safe.d.ts +3 -0
  64. package/dist/lib/get-input/get-wrappers/get-patterns/read-yaml-safe.js +30 -0
  65. package/dist/lib/get-input/get-wrappers/index.d.ts +34 -0
  66. package/dist/lib/get-input/get-wrappers/index.js +36 -0
  67. package/dist/lib/get-input/get-wrappers/readonly.d.ts +4 -0
  68. package/dist/lib/get-input/get-wrappers/readonly.js +10 -0
  69. package/dist/lib/get-input/get-wrappers/tap.d.ts +5 -0
  70. package/dist/lib/get-input/get-wrappers/tap.js +39 -0
  71. package/dist/lib/get-input/get-wrappers/try-catch.d.ts +5 -0
  72. package/dist/lib/get-input/get-wrappers/try-catch.js +13 -0
  73. package/dist/lib/get-input/index.d.ts +18 -0
  74. package/dist/lib/get-input/index.js +33 -0
  75. package/dist/lib/group-by.d.ts +1 -0
  76. package/dist/lib/group-by.js +11 -0
  77. package/dist/lib/is-semver.d.ts +4 -0
  78. package/dist/lib/is-semver.js +26 -0
  79. package/dist/lib/set-semver-range.d.ts +2 -0
  80. package/dist/lib/set-semver-range.js +19 -0
  81. package/dist/lib/sort-by-name.d.ts +5 -0
  82. package/dist/{commands/lib/installations → lib}/sort-by-name.js +2 -2
  83. package/dist/lib/write-if-changed.d.ts +10 -0
  84. package/dist/lib/write-if-changed.js +23 -0
  85. package/dist/option.d.ts +12 -0
  86. package/dist/option.js +42 -0
  87. package/package.json +34 -37
  88. package/CHANGELOG.md +0 -420
  89. package/dist/bin-fix-mismatches.js +0 -57
  90. package/dist/bin-format.js +0 -49
  91. package/dist/bin-lint-semver-ranges.js +0 -57
  92. package/dist/bin-list-mismatches.js +0 -55
  93. package/dist/bin-list.js +0 -55
  94. package/dist/bin-set-semver-ranges.js +0 -59
  95. package/dist/commands/fix-mismatches.d.ts +0 -6
  96. package/dist/commands/fix-mismatches.js +0 -58
  97. package/dist/commands/format.d.ts +0 -6
  98. package/dist/commands/format.js +0 -49
  99. package/dist/commands/lib/get-dependency-types.d.ts +0 -8
  100. package/dist/commands/lib/get-dependency-types.js +0 -14
  101. package/dist/commands/lib/get-highest-version.d.ts +0 -1
  102. package/dist/commands/lib/get-wrappers.d.ts +0 -47
  103. package/dist/commands/lib/get-wrappers.js +0 -53
  104. package/dist/commands/lib/installations/get-dependencies.d.ts +0 -19
  105. package/dist/commands/lib/installations/get-dependencies.js +0 -121
  106. package/dist/commands/lib/installations/get-grouped-mismatched-dependencies.d.ts +0 -4
  107. package/dist/commands/lib/installations/get-grouped-mismatched-dependencies.js +0 -133
  108. package/dist/commands/lib/installations/get-installations-of.d.ts +0 -4
  109. package/dist/commands/lib/installations/get-installations-of.js +0 -105
  110. package/dist/commands/lib/installations/get-installations.d.ts +0 -6
  111. package/dist/commands/lib/installations/get-installations.js +0 -105
  112. package/dist/commands/lib/installations/get-mismatched-dependencies.d.ts +0 -4
  113. package/dist/commands/lib/installations/get-mismatched-dependencies.js +0 -131
  114. package/dist/commands/lib/installations/sort-by-name.d.ts +0 -2
  115. package/dist/commands/lib/is-semver.d.ts +0 -4
  116. package/dist/commands/lib/is-semver.js +0 -23
  117. package/dist/commands/lib/log.d.ts +0 -2
  118. package/dist/commands/lib/log.js +0 -32
  119. package/dist/commands/lib/matches-filter.d.ts +0 -5
  120. package/dist/commands/lib/matches-filter.js +0 -10
  121. package/dist/commands/lib/set-semver-range.d.ts +0 -4
  122. package/dist/commands/lib/set-semver-range.js +0 -20
  123. package/dist/commands/lib/write-if-changed.d.ts +0 -2
  124. package/dist/commands/lib/write-if-changed.js +0 -27
  125. package/dist/commands/lint-semver-ranges.d.ts +0 -9
  126. package/dist/commands/lint-semver-ranges.js +0 -65
  127. package/dist/commands/list-mismatches.d.ts +0 -7
  128. package/dist/commands/list-mismatches.js +0 -39
  129. package/dist/commands/list.d.ts +0 -6
  130. package/dist/commands/list.js +0 -42
  131. package/dist/commands/set-semver-ranges.d.ts +0 -6
  132. package/dist/commands/set-semver-ranges.js +0 -49
  133. package/dist/lib/get-config.d.ts +0 -2
  134. package/dist/lib/get-config.js +0 -40
package/CHANGELOG.md DELETED
@@ -1,420 +0,0 @@
1
- ## [5.8.14](https://github.com/JamieMason/syncpack/compare/5.8.12...5.8.14) (2021-08-01)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **cli:** apply breaking change from commander ([a61d384](https://github.com/JamieMason/syncpack/commit/a61d3845a55f0796defce7cafaaf29541a4ff07f))
7
- * **format:** write files if only whitespace changes ([f38ea40](https://github.com/JamieMason/syncpack/commit/f38ea4092af8181acbc0281c775c0c84acb5be3d)), closes [#54](https://github.com/JamieMason/syncpack/issues/54)
8
-
9
-
10
-
11
- ## [5.8.12](https://github.com/JamieMason/syncpack/compare/5.7.11...5.8.12) (2021-08-01)
12
-
13
-
14
- ### Bug Fixes
15
-
16
- * **npm:** update dependencies ([91254f6](https://github.com/JamieMason/syncpack/commit/91254f6aa283afcc0b32163864468359dd4f888f))
17
-
18
-
19
- ### Features
20
-
21
- * **core:** add lint-semver-ranges command ([b4209f0](https://github.com/JamieMason/syncpack/commit/b4209f076344a9d59830d3bbd75569de9e19b4b3)), closes [#56](https://github.com/JamieMason/syncpack/issues/56)
22
-
23
-
24
-
25
- ## [5.7.11](https://github.com/JamieMason/syncpack/compare/5.6.10...5.7.11) (2021-01-29)
26
-
27
-
28
- ### Bug Fixes
29
-
30
- * **npm:** update dependencies ([5531da6](https://github.com/JamieMason/syncpack/commit/5531da60bc1cfb0fe3c5ca8e904d0a9e55d3d4b5))
31
-
32
-
33
- ### Features
34
-
35
- * **fix-mismatches:** use local package version when available ([640cb7f](https://github.com/JamieMason/syncpack/commit/640cb7faf18b33fd491e68f66d3cf599845c9265)), closes [#47](https://github.com/JamieMason/syncpack/issues/47)
36
-
37
-
38
-
39
- ## [5.6.10](https://github.com/JamieMason/syncpack/compare/5.6.7...5.6.10) (2020-09-17)
40
-
41
-
42
- ### Bug Fixes
43
-
44
- * **cli:** use defaults when source is empty array ([c2f6199](https://github.com/JamieMason/syncpack/commit/c2f61998add60ed5d52af1c3518d1f737cf75c80))
45
- * **core:** support multiple version groups ([bfd12b4](https://github.com/JamieMason/syncpack/commit/bfd12b4f3a6693ac1b4580621b12995d2b04eee7)), closes [#43](https://github.com/JamieMason/syncpack/issues/43)
46
- * **list:** display mismatches from version groups ([43ba18d](https://github.com/JamieMason/syncpack/commit/43ba18dff1aa7c749724b992b6eef17a227f5445))
47
-
48
-
49
-
50
- ## [5.6.7](https://github.com/JamieMason/syncpack/compare/5.5.6...5.6.7) (2020-08-30)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * **npm:** update dependencies ([2e3ea3b](https://github.com/JamieMason/syncpack/commit/2e3ea3b0f6de8a97a390305a998053550183cc27))
56
-
57
-
58
- ### Features
59
-
60
- * **core:** support granular versioning rules ([2197f90](https://github.com/JamieMason/syncpack/commit/2197f90608c119a04ddde6255e729fa1ec5c49ec)), closes [#41](https://github.com/JamieMason/syncpack/issues/41)
61
-
62
-
63
-
64
- ## [5.5.6](https://github.com/JamieMason/syncpack/compare/5.2.5...5.5.6) (2020-08-23)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * **core:** ignore link: versions rather than throw ([7a48366](https://github.com/JamieMason/syncpack/commit/7a483666e64a046be9984bf4146ac8566b3f5920)), closes [#38](https://github.com/JamieMason/syncpack/issues/38)
70
-
71
-
72
- ### Features
73
-
74
- * **core:** expose format configuration ([4f74d9a](https://github.com/JamieMason/syncpack/commit/4f74d9a0b9a92428278f66327630e5b0e9dc5add)), closes [#30](https://github.com/JamieMason/syncpack/issues/30)
75
- * **core:** sort resolutions field a-z ([f76a127](https://github.com/JamieMason/syncpack/commit/f76a1278b45ec3b00b2658b5da327d0a480ff12d)), closes [#34](https://github.com/JamieMason/syncpack/issues/34)
76
- * **core:** support yarn workspaces config as object ([34eceaf](https://github.com/JamieMason/syncpack/commit/34eceaffae143fdbc9729495ea693172c2944351)), closes [#33](https://github.com/JamieMason/syncpack/issues/33)
77
-
78
-
79
-
80
- ## [5.2.5](https://github.com/JamieMason/syncpack/compare/5.1.4...5.2.5) (2020-08-22)
81
-
82
-
83
- ### Bug Fixes
84
-
85
- * **npm:** update dependencies ([19ad510](https://github.com/JamieMason/syncpack/commit/19ad510d09040e1aa098e16d6831836da3c9c12f))
86
-
87
-
88
- ### Features
89
-
90
- * **core:** add support for config files ([cfd5df3](https://github.com/JamieMason/syncpack/commit/cfd5df35134de068eaf26bdb2cfaa1890c6c3545))
91
-
92
-
93
-
94
- ## [5.1.4](https://github.com/JamieMason/syncpack/compare/5.0.3...5.1.4) (2020-08-02)
95
-
96
-
97
- ### Bug Fixes
98
-
99
- * **npm:** update dependencies ([f2cac6a](https://github.com/JamieMason/syncpack/commit/f2cac6a05eaf9f5a7736267a797cf75476292757))
100
-
101
-
102
- ### Features
103
-
104
- * **core:** add support for pnpm workspaces ([a6112ec](https://github.com/JamieMason/syncpack/commit/a6112ec786fd26699a3734707218cda38baf9f0e)), closes [#42](https://github.com/JamieMason/syncpack/issues/42)
105
-
106
-
107
-
108
- ## [5.0.3](https://github.com/JamieMason/syncpack/compare/5.0.1...5.0.3) (2020-06-19)
109
-
110
-
111
- ### Bug Fixes
112
-
113
- * **format:** leave sort order of "files" array unchanged ([1bd584f](https://github.com/JamieMason/syncpack/commit/1bd584f67054d4a37b91b1e5f285dbe9b53b4489)), closes [#35](https://github.com/JamieMason/syncpack/issues/35)
114
- * **npm:** update dependencies ([9e0bd7e](https://github.com/JamieMason/syncpack/commit/9e0bd7ea257b3dcc425f306d4fcae195f6d0d126))
115
-
116
-
117
-
118
- ## [5.0.1](https://github.com/JamieMason/syncpack/compare/4.5.5...5.0.1) (2020-02-16)
119
-
120
-
121
- ### Bug Fixes
122
-
123
- * **core:** include root package.json when reading yarn & lerna config ([a7875cb](https://github.com/JamieMason/syncpack/commit/a7875cb08e0f8382163e8c9e8a4d3e6772b4c160))
124
- * **npm:** update dependencies ([5fdcc7b](https://github.com/JamieMason/syncpack/commit/5fdcc7bd112533f891b31dfcf0be79b54989b8d7))
125
-
126
-
127
- ### BREAKING CHANGES
128
-
129
- * **npm:** engines.node has been increased to >=10 because
130
- semver@7.1.1 is a hard dependency of syncpack and
131
- requires node >=10
132
-
133
-
134
-
135
- ## [4.5.5](https://github.com/JamieMason/syncpack/compare/4.5.4...4.5.5) (2020-01-19)
136
-
137
-
138
- ### Bug Fixes
139
-
140
- * **npm:** update dependencies ([1776b5f](https://github.com/JamieMason/syncpack/commit/1776b5fdbbc79315dd5ab8700f25daeb3ec46b05))
141
-
142
-
143
-
144
- ## [4.5.4](https://github.com/JamieMason/syncpack/compare/4.5.3...4.5.4) (2019-07-16)
145
-
146
-
147
- ### Bug Fixes
148
-
149
- * **npm:** update dependencies ([e07cc44](https://github.com/JamieMason/syncpack/commit/e07cc44add6e9ae2d7775496f5585ac6f46e58e9)), closes [#28](https://github.com/JamieMason/syncpack/issues/28)
150
-
151
-
152
-
153
- ## [4.5.3](https://github.com/JamieMason/syncpack/compare/4.5.2...4.5.3) (2019-06-17)
154
-
155
-
156
- ### Bug Fixes
157
-
158
- * **npm:** update dependencies ([10834a9](https://github.com/JamieMason/syncpack/commit/10834a905812aadd4e13b2420bf3dc1549939dab))
159
-
160
-
161
-
162
- ## [4.5.2](https://github.com/JamieMason/syncpack/compare/4.4.2...4.5.2) (2019-05-14)
163
-
164
-
165
- ### Features
166
-
167
- * **cli:** add support for yarn workspaces ([a5a45dd](https://github.com/JamieMason/syncpack/commit/a5a45ddc937020b54c33a13d554fb871fee50e05)), closes [#20](https://github.com/JamieMason/syncpack/issues/20) [#22](https://github.com/JamieMason/syncpack/issues/22)
168
-
169
-
170
-
171
- ## [4.4.2](https://github.com/JamieMason/syncpack/compare/4.4.1...4.4.2) (2019-05-06)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * **filter:** --filter is a string, not a boolean ([5587f2b](https://github.com/JamieMason/syncpack/commit/5587f2bdaef0dcc50022c9ae9e98b1c34ce9e164))
177
-
178
-
179
-
180
- ## [4.4.1](https://github.com/JamieMason/syncpack/compare/4.3.1...4.4.1) (2019-04-29)
181
-
182
-
183
- ### Features
184
-
185
- * **options:** add dependency filter regex ([bfb1f1d](https://github.com/JamieMason/syncpack/commit/bfb1f1dde0ee3cbd11a0ef5cef80a0f53b28083a)), closes [#18](https://github.com/JamieMason/syncpack/issues/18)
186
-
187
-
188
-
189
- ## [4.3.1](https://github.com/JamieMason/syncpack/compare/4.0.1...4.3.1) (2019-02-03)
190
-
191
-
192
- ### Features
193
-
194
- * **fix-mismatches:** output which files are (un)changed ([a79b078](https://github.com/JamieMason/syncpack/commit/a79b078d7527a27a6e1343dab06e901f0c0a0530))
195
- * **format:** output which files are (un)changed ([3a08a7a](https://github.com/JamieMason/syncpack/commit/3a08a7a5a0bebfdf2d10503ce2cd1920ef94367e))
196
- * **list:** sort output alphabetically ([f61bde4](https://github.com/JamieMason/syncpack/commit/f61bde46a08550daf96cca596cbd1e00c13c7564))
197
-
198
-
199
-
200
- ## [4.0.1](https://github.com/JamieMason/syncpack/compare/4.0.0...4.0.1) (2019-01-14)
201
-
202
-
203
- ### Bug Fixes
204
-
205
- * **ci:** cannot read property concat of undefined ([46a45e2](https://github.com/JamieMason/syncpack/commit/46a45e26b51b9f81076148ff7483b19cd34aef73)), closes [#16](https://github.com/JamieMason/syncpack/issues/16)
206
-
207
-
208
-
209
- # [4.0.0](https://github.com/JamieMason/syncpack/compare/3.5.2...4.0.0) (2019-01-11)
210
-
211
-
212
- ### Bug Fixes
213
-
214
- * **node:** support Node.js 8.x or newer ([c71009e](https://github.com/JamieMason/syncpack/commit/c71009e1507cd66c735112a0ae685cd3e51ab2fe))
215
- * **npm:** update dependencies ([23b02e3](https://github.com/JamieMason/syncpack/commit/23b02e3d72e51e8b069a336357e6cddcdc4979c1)), closes [#15](https://github.com/JamieMason/syncpack/issues/15)
216
-
217
-
218
- ### BREAKING CHANGES
219
-
220
- * **node:** Support Node.js 8.x or newer, Transitive Dependency ip-regex@3.0.0
221
- supports node ">=8".
222
-
223
-
224
-
225
- ## [3.5.2](https://github.com/JamieMason/syncpack/compare/3.5.0...3.5.2) (2019-01-07)
226
-
227
-
228
- ### Bug Fixes
229
-
230
- * **core:** improve handling of non-semver versions ([9e1176a](https://github.com/JamieMason/syncpack/commit/9e1176a3495ea97648c61ab5869a12c3ff539c5f)), closes [#14](https://github.com/JamieMason/syncpack/issues/14)
231
- * **npm:** update dependencies ([09d9f04](https://github.com/JamieMason/syncpack/commit/09d9f04480252edd0fd3b6af3cd8dce36c66d96b))
232
-
233
-
234
-
235
- # [3.5.0](https://github.com/JamieMason/syncpack/compare/3.4.0...3.5.0) (2018-10-29)
236
-
237
-
238
- ### Features
239
-
240
- * **cli:** improve --help output and examples ([dfe6274](https://github.com/JamieMason/syncpack/commit/dfe6274c50d6ba3ea3ec419cabd1ccf0bb73f8fb))
241
-
242
-
243
-
244
- # [3.4.0](https://github.com/JamieMason/syncpack/compare/3.3.0...3.4.0) (2018-10-28)
245
-
246
-
247
- ### Features
248
-
249
- * **cli:** read sources from lerna.json if present ([77b90eb](https://github.com/JamieMason/syncpack/commit/77b90eb3d656c50ff7b9d1317dc2cdad469b15a5)), closes [#11](https://github.com/JamieMason/syncpack/issues/11)
250
-
251
-
252
-
253
- # [3.3.0](https://github.com/JamieMason/syncpack/compare/3.0.0...3.3.0) (2018-10-28)
254
-
255
-
256
- ### Features
257
-
258
- * **cli:** specify dependency types as options ([ec5ef6b](https://github.com/JamieMason/syncpack/commit/ec5ef6b76f3c2fa0fba0f3a364b734f554d32c8a)), closes [#10](https://github.com/JamieMason/syncpack/issues/10)
259
- * **cli:** specify indentation as option ([8b408bd](https://github.com/JamieMason/syncpack/commit/8b408bd14768fe7b3a2fd5cbb06233ba3b9707b3)), closes [#12](https://github.com/JamieMason/syncpack/issues/12)
260
- * **format:** sort contributors alphabetically ([935ffcf](https://github.com/JamieMason/syncpack/commit/935ffcf307d0adabe06c04ff1e2b258277f060be))
261
-
262
-
263
- ### Performance Improvements
264
-
265
- * **npm:** move [@types](https://github.com/types) to devDependencies ([ad5951c](https://github.com/JamieMason/syncpack/commit/ad5951ceba183761b0b73355a508111e7eb02508)), closes [#13](https://github.com/JamieMason/syncpack/issues/13)
266
-
267
-
268
-
269
- # [3.0.0](https://github.com/JamieMason/syncpack/compare/2.0.1...3.0.0) (2018-08-25)
270
-
271
-
272
- ### Features
273
-
274
- * **bin:** override package locations using repeatable --source options ([5dbcfd4](https://github.com/JamieMason/syncpack/commit/5dbcfd4915cf286cba0e665e554c319d717f6651))
275
- * **list-mismatches:** return exit code on finding mismatches ([06958c6](https://github.com/JamieMason/syncpack/commit/06958c6446646c108fc1dc4e07c714cd08bf58fc))
276
-
277
-
278
- ### BREAKING CHANGES
279
-
280
- * **bin:** Previously the location of package.json files could be overridden like so:
281
-
282
- ```
283
- syncpack list './package.json' './packages/*/package.json'
284
- ```
285
-
286
- This is now done using a repeatable `--source` option:
287
-
288
- ```
289
- syncpack list --source './package.json' --source './packages/*/package.json'
290
- ```
291
-
292
- This change is to make way for new commands which will also require an
293
- overridable `--target` option.
294
-
295
-
296
-
297
- ## [2.0.1](https://github.com/JamieMason/syncpack/compare/2.0.0...2.0.1) (2018-04-29)
298
-
299
-
300
- ### Bug Fixes
301
-
302
- * **core:** ensure pattern overrides are read ([7513ba5](https://github.com/JamieMason/syncpack/commit/7513ba5fa644bf445efbdca22d4797b4a973b56f))
303
-
304
-
305
-
306
- # [2.0.0](https://github.com/JamieMason/syncpack/compare/1.3.2...2.0.0) (2018-04-29)
307
-
308
-
309
- ### Features
310
-
311
- * **core:** support multiple glob patterns ([a2b5af0](https://github.com/JamieMason/syncpack/commit/a2b5af017a2152fb40d0522501db64ef739fe5f9)), closes [#5](https://github.com/JamieMason/syncpack/issues/5) [#6](https://github.com/JamieMason/syncpack/issues/6)
312
-
313
-
314
- ### BREAKING CHANGES
315
-
316
- * **core:** --packages option replaced with variadic arguments
317
-
318
-
319
-
320
- ## [1.3.2](https://github.com/JamieMason/syncpack/compare/1.2.2...1.3.2) (2018-04-28)
321
-
322
-
323
- ### Features
324
-
325
- * **core:** add set-semver-ranges command ([4d206b9](https://github.com/JamieMason/syncpack/commit/4d206b9d00c7cf5a9f8ee52b84d7e8b9487fd01a))
326
-
327
-
328
-
329
- ## [1.2.2](https://github.com/JamieMason/syncpack/compare/1.0.2...1.2.2) (2018-02-10)
330
-
331
-
332
- ### Features
333
-
334
- * **core:** add format command ([bae1133](https://github.com/JamieMason/syncpack/commit/bae11337f1c68c87299ee3e33120d3dc0fa8643f))
335
- * **core:** output current version ([e53cd99](https://github.com/JamieMason/syncpack/commit/e53cd99e989b1ea383530bcde78d105b39103a8c))
336
-
337
-
338
-
339
- ## [1.0.2](https://github.com/JamieMason/syncpack/compare/1.0.1...1.0.2) (2018-02-02)
340
-
341
-
342
-
343
- ## [1.0.1](https://github.com/JamieMason/syncpack/compare/1.0.0...1.0.1) (2018-02-02)
344
-
345
-
346
- ### Bug Fixes
347
-
348
- * **core:** correct paths to binaries ([5682cd6](https://github.com/JamieMason/syncpack/commit/5682cd65b8559e9f47c9fe63b6294aebb73ba896))
349
-
350
-
351
-
352
- # [1.0.0](https://github.com/JamieMason/syncpack/compare/0.3.1...1.0.0) (2018-02-02)
353
-
354
-
355
- ### Bug Fixes
356
-
357
- * **core:** correctly check a file is package.json ([d1da609](https://github.com/JamieMason/syncpack/commit/d1da6096c3b7c6b01a05c112ffc1251ec4ba700d))
358
- * **core:** handle missing dependency maps ([372aa68](https://github.com/JamieMason/syncpack/commit/372aa6877f47df1118c45931391c8b87ca851413))
359
- * **core:** handle semver ranges containing 1.x.x ([a0f8f56](https://github.com/JamieMason/syncpack/commit/a0f8f5650f3855361914fc6f8303035dc3abfb8d))
360
-
361
-
362
- ### Features
363
-
364
- * **core:** add fix-mismatches command ([4793f1f](https://github.com/JamieMason/syncpack/commit/4793f1fc6b67cfa1f87f73188944f8dd8d196bc0))
365
- * **core:** add list command ([3b29176](https://github.com/JamieMason/syncpack/commit/3b291760f4cba611acc3f75034679303c55bf1a7))
366
- * **core:** add list-mismatches command ([735ad2b](https://github.com/JamieMason/syncpack/commit/735ad2b2a1347b99a3f758b0c797b2fb7a3fc4c3))
367
- * **core:** update command line API ([de8dcb2](https://github.com/JamieMason/syncpack/commit/de8dcb2b0dbe7bb63c91aeb05e8422696b0bd178))
368
-
369
-
370
- ### BREAKING CHANGES
371
-
372
- * **core:** The previous commands have been replaced.
373
-
374
-
375
-
376
- ## [0.3.1](https://github.com/JamieMason/syncpack/compare/0.3.0...0.3.1) (2017-08-23)
377
-
378
-
379
- ### Bug Fixes
380
-
381
- * **copy-values:** write results to disk ([a641de4](https://github.com/JamieMason/syncpack/commit/a641de41faaf6851cf9177ff87acd0d3e16494fb))
382
-
383
-
384
-
385
- # [0.3.0](https://github.com/JamieMason/syncpack/compare/0.2.1...0.3.0) (2017-08-22)
386
-
387
-
388
- ### Features
389
-
390
- * **cli:** add copy-values command ([b51a2c9](https://github.com/JamieMason/syncpack/commit/b51a2c96e133a1b5020577cf3c6bef31e79de850))
391
-
392
-
393
-
394
- ## [0.2.1](https://github.com/JamieMason/syncpack/compare/0.2.0...0.2.1) (2017-08-20)
395
-
396
-
397
- ### Bug Fixes
398
-
399
- * **core:** update dependencies, fix lint warnings ([a65eef7](https://github.com/JamieMason/syncpack/commit/a65eef765d868a27913e173543dcbda43a2202a5))
400
-
401
-
402
-
403
- # [0.2.0](https://github.com/JamieMason/syncpack/compare/0.1.0...0.2.0) (2017-08-20)
404
-
405
-
406
- ### Features
407
-
408
- * **sync:** synchronise versions across multiple package.json ([7d5848a](https://github.com/JamieMason/syncpack/commit/7d5848a0edbe0c0a312be323cc8d9a4a8ed0ea30))
409
-
410
-
411
-
412
- # [0.1.0](https://github.com/JamieMason/syncpack/compare/f6dada7aae149b7d0299206308347c8497e249d0...0.1.0) (2017-08-18)
413
-
414
-
415
- ### Features
416
-
417
- * **cli:** create scaffold cli ([f6dada7](https://github.com/JamieMason/syncpack/commit/f6dada7aae149b7d0299206308347c8497e249d0))
418
-
419
-
420
-
@@ -1,57 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
4
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5
- return cooked;
6
- };
7
- var __read = (this && this.__read) || function (o, n) {
8
- var m = typeof Symbol === "function" && o[Symbol.iterator];
9
- if (!m) return o;
10
- var i = m.call(o), r, ar = [], e;
11
- try {
12
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13
- }
14
- catch (error) { e = { error: error }; }
15
- finally {
16
- try {
17
- if (r && !r.done && (m = i["return"])) m.call(i);
18
- }
19
- finally { if (e) throw e.error; }
20
- }
21
- return ar;
22
- };
23
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
24
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
25
- to[j] = from[i];
26
- return to;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- var _a, _b, _c, _d, _e;
32
- exports.__esModule = true;
33
- var chalk_1 = __importDefault(require("chalk"));
34
- var fix_mismatches_1 = require("./commands/fix-mismatches");
35
- var constants_1 = require("./constants");
36
- var get_config_1 = require("./lib/get-config");
37
- var commander_1 = require("commander");
38
- commander_1.program.description("\n Ensure that multiple packages requiring the same dependency define the same\n version, so that every package requires eg. react@16.4.2, instead of a\n combination of react@16.4.2, react@0.15.9, and react@16.0.0.".replace(/^\n/, ''));
39
- commander_1.program.on('--help', function () {
40
- console.log(chalk_1["default"](templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack fix-mismatches\n {dim # uses packages defined by --source when provided}\n syncpack fix-mismatches --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack fix-mismatches --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # uses dependencies regular expression defined by --filter when provided}\n syncpack fix-mismatches --filter {yellow \"typescript|tslint\"}\n {dim # only inspect \"devDependencies\"}\n syncpack fix-mismatches --dev\n {dim # only inspect \"devDependencies\" and \"peerDependencies\"}\n syncpack fix-mismatches --dev --peer\n {dim # indent package.json with 4 spaces instead of 2}\n syncpack fix-mismatches --indent {yellow \" \"}\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"], ["\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack fix-mismatches\n {dim # uses packages defined by --source when provided}\n syncpack fix-mismatches --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack fix-mismatches --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # uses dependencies regular expression defined by --filter when provided}\n syncpack fix-mismatches --filter {yellow \"typescript|tslint\"}\n {dim # only inspect \"devDependencies\"}\n syncpack fix-mismatches --dev\n {dim # only inspect \"devDependencies\" and \"peerDependencies\"}\n syncpack fix-mismatches --dev --peer\n {dim # indent package.json with 4 spaces instead of 2}\n syncpack fix-mismatches --indent {yellow \" \"}\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"]))));
41
- });
42
- (_a = (_b = (_c = (_d = (_e = commander_1.program
43
- .option.apply(commander_1.program, __spreadArray([], __read(constants_1.option.source))))
44
- .option.apply(_e, __spreadArray([], __read(constants_1.option.prod))))
45
- .option.apply(_d, __spreadArray([], __read(constants_1.option.dev))))
46
- .option.apply(_c, __spreadArray([], __read(constants_1.option.peer))))
47
- .option.apply(_b, __spreadArray([], __read(constants_1.option.filter))))
48
- .option.apply(_a, __spreadArray([], __read(constants_1.option.indent))).parse(process.argv);
49
- fix_mismatches_1.fixMismatchesToDisk(get_config_1.getConfig({
50
- dev: commander_1.program.opts().dev,
51
- filter: commander_1.program.opts().filter,
52
- indent: commander_1.program.opts().indent,
53
- peer: commander_1.program.opts().peer,
54
- prod: commander_1.program.opts().prod,
55
- source: commander_1.program.opts().source
56
- }));
57
- var templateObject_1;
@@ -1,49 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
4
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5
- return cooked;
6
- };
7
- var __read = (this && this.__read) || function (o, n) {
8
- var m = typeof Symbol === "function" && o[Symbol.iterator];
9
- if (!m) return o;
10
- var i = m.call(o), r, ar = [], e;
11
- try {
12
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13
- }
14
- catch (error) { e = { error: error }; }
15
- finally {
16
- try {
17
- if (r && !r.done && (m = i["return"])) m.call(i);
18
- }
19
- finally { if (e) throw e.error; }
20
- }
21
- return ar;
22
- };
23
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
24
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
25
- to[j] = from[i];
26
- return to;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- var _a;
32
- exports.__esModule = true;
33
- var chalk_1 = __importDefault(require("chalk"));
34
- var format_1 = require("./commands/format");
35
- var constants_1 = require("./constants");
36
- var get_config_1 = require("./lib/get-config");
37
- var commander_1 = require("commander");
38
- commander_1.program.description("\n Organise package.json files according to a conventional format, where fields\n appear in a predictable order and nested fields are ordered alphabetically.\n Shorthand properties are used where available, such as the \"repository\" and\n \"bugs\" fields.".replace(/^\n/, ''));
39
- commander_1.program.on('--help', function () {
40
- console.log(chalk_1["default"](templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack format\n {dim # uses packages defined by --source when provided}\n syncpack format --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack format --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # indent package.json with 4 spaces instead of 2}\n syncpack format --indent {yellow \" \"}\n\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"], ["\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack format\n {dim # uses packages defined by --source when provided}\n syncpack format --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack format --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # indent package.json with 4 spaces instead of 2}\n syncpack format --indent {yellow \" \"}\n\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"]))));
41
- });
42
- (_a = commander_1.program
43
- .option.apply(commander_1.program, __spreadArray([], __read(constants_1.option.source))))
44
- .option.apply(_a, __spreadArray([], __read(constants_1.option.indent))).parse(process.argv);
45
- format_1.formatToDisk(get_config_1.getConfig({
46
- indent: commander_1.program.opts().indent,
47
- source: commander_1.program.opts().source
48
- }));
49
- var templateObject_1;
@@ -1,57 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
4
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5
- return cooked;
6
- };
7
- var __read = (this && this.__read) || function (o, n) {
8
- var m = typeof Symbol === "function" && o[Symbol.iterator];
9
- if (!m) return o;
10
- var i = m.call(o), r, ar = [], e;
11
- try {
12
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13
- }
14
- catch (error) { e = { error: error }; }
15
- finally {
16
- try {
17
- if (r && !r.done && (m = i["return"])) m.call(i);
18
- }
19
- finally { if (e) throw e.error; }
20
- }
21
- return ar;
22
- };
23
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
24
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
25
- to[j] = from[i];
26
- return to;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- var _a, _b, _c, _d, _e;
32
- exports.__esModule = true;
33
- var chalk_1 = __importDefault(require("chalk"));
34
- var lint_semver_ranges_1 = require("./commands/lint-semver-ranges");
35
- var constants_1 = require("./constants");
36
- var get_config_1 = require("./lib/get-config");
37
- var commander_1 = require("commander");
38
- commander_1.program.description("\n Check whether dependency versions used within \"dependencies\", \"devDependencies\", and\n \"peerDependencies\" follow a consistent format.".replace(/^\n/, ''));
39
- commander_1.program.on('--help', function () {
40
- console.log(chalk_1["default"](templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack lint-semver-ranges\n {dim # uses packages defined by --source when provided}\n syncpack lint-semver-ranges --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack lint-semver-ranges --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # uses dependencies regular expression defined by --filter when provided}\n syncpack lint-semver-ranges --filter {yellow \"typescript|tslint\"}\n {dim # use ~ range instead of default \"\"}\n syncpack lint-semver-ranges --semver-range ~\n {dim # use ~ range in \"devDependencies\"}\n syncpack lint-semver-ranges --dev --semver-range ~\n {dim # use ~ range in \"devDependencies\" and \"peerDependencies\"}\n syncpack lint-semver-ranges --dev --peer --semver-range ~\n\nSupported Ranges:\n < {dim <1.4.2}\n <= {dim <=1.4.2}\n \"\" {dim 1.4.2}\n ~ {dim ~1.4.2}\n ^ {dim ^1.4.2}\n >= {dim >=1.4.2}\n > {dim >1.4.2}\n * {dim *}\n\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"], ["\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack lint-semver-ranges\n {dim # uses packages defined by --source when provided}\n syncpack lint-semver-ranges --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack lint-semver-ranges --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # uses dependencies regular expression defined by --filter when provided}\n syncpack lint-semver-ranges --filter {yellow \"typescript|tslint\"}\n {dim # use ~ range instead of default \"\"}\n syncpack lint-semver-ranges --semver-range ~\n {dim # use ~ range in \"devDependencies\"}\n syncpack lint-semver-ranges --dev --semver-range ~\n {dim # use ~ range in \"devDependencies\" and \"peerDependencies\"}\n syncpack lint-semver-ranges --dev --peer --semver-range ~\n\nSupported Ranges:\n < {dim <1.4.2}\n <= {dim <=1.4.2}\n \"\" {dim 1.4.2}\n ~ {dim ~1.4.2}\n ^ {dim ^1.4.2}\n >= {dim >=1.4.2}\n > {dim >1.4.2}\n * {dim *}\n\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"]))));
41
- });
42
- (_a = (_b = (_c = (_d = (_e = commander_1.program
43
- .option.apply(commander_1.program, __spreadArray([], __read(constants_1.option.source))))
44
- .option.apply(_e, __spreadArray([], __read(constants_1.option.prod))))
45
- .option.apply(_d, __spreadArray([], __read(constants_1.option.dev))))
46
- .option.apply(_c, __spreadArray([], __read(constants_1.option.peer))))
47
- .option.apply(_b, __spreadArray([], __read(constants_1.option.filter))))
48
- .option.apply(_a, __spreadArray([], __read(constants_1.option.semverRange))).parse(process.argv);
49
- lint_semver_ranges_1.lintSemverRangesFromDisk(get_config_1.getConfig({
50
- dev: commander_1.program.opts().dev,
51
- filter: commander_1.program.opts().filter,
52
- peer: commander_1.program.opts().peer,
53
- prod: commander_1.program.opts().prod,
54
- semverRange: commander_1.program.opts().semverRange,
55
- source: commander_1.program.opts().source
56
- }));
57
- var templateObject_1;
@@ -1,55 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
4
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
5
- return cooked;
6
- };
7
- var __read = (this && this.__read) || function (o, n) {
8
- var m = typeof Symbol === "function" && o[Symbol.iterator];
9
- if (!m) return o;
10
- var i = m.call(o), r, ar = [], e;
11
- try {
12
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
13
- }
14
- catch (error) { e = { error: error }; }
15
- finally {
16
- try {
17
- if (r && !r.done && (m = i["return"])) m.call(i);
18
- }
19
- finally { if (e) throw e.error; }
20
- }
21
- return ar;
22
- };
23
- var __spreadArray = (this && this.__spreadArray) || function (to, from) {
24
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
25
- to[j] = from[i];
26
- return to;
27
- };
28
- var __importDefault = (this && this.__importDefault) || function (mod) {
29
- return (mod && mod.__esModule) ? mod : { "default": mod };
30
- };
31
- var _a, _b, _c, _d;
32
- exports.__esModule = true;
33
- var chalk_1 = __importDefault(require("chalk"));
34
- var list_mismatches_1 = require("./commands/list-mismatches");
35
- var constants_1 = require("./constants");
36
- var get_config_1 = require("./lib/get-config");
37
- var commander_1 = require("commander");
38
- commander_1.program.description("\n List dependencies which are required by multiple packages, where the version\n is not the same across every package.".replace(/^\n/, ''));
39
- commander_1.program.on('--help', function () {
40
- console.log(chalk_1["default"](templateObject_1 || (templateObject_1 = __makeTemplateObject(["\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack list-mismatches\n {dim # uses packages defined by --source when provided}\n syncpack list-mismatches --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack list-mismatches --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # uses dependencies regular expression defined by --filter when provided}\n syncpack list-mismatches --filter {yellow \"typescript|tslint\"}\n {dim # only inspect \"devDependencies\"}\n syncpack list-mismatches --dev\n {dim # only inspect \"devDependencies\" and \"peerDependencies\"}\n syncpack list-mismatches --dev --peer\n\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"], ["\nExamples:\n {dim # uses defaults for resolving packages}\n syncpack list-mismatches\n {dim # uses packages defined by --source when provided}\n syncpack list-mismatches --source {yellow \"apps/*/package.json\"}\n {dim # multiple globs can be provided like this}\n syncpack list-mismatches --source {yellow \"apps/*/package.json\"} --source {yellow \"core/*/package.json\"}\n {dim # uses dependencies regular expression defined by --filter when provided}\n syncpack list-mismatches --filter {yellow \"typescript|tslint\"}\n {dim # only inspect \"devDependencies\"}\n syncpack list-mismatches --dev\n {dim # only inspect \"devDependencies\" and \"peerDependencies\"}\n syncpack list-mismatches --dev --peer\n\nResolving Packages:\n 1. If {yellow --source} globs are provided, use those.\n 2. If using Pnpm Workspaces, read {yellow packages} from {yellow pnpm-workspace.yaml} in the root of the project.\n 3. If using Yarn Workspaces, read {yellow workspaces} from {yellow package.json}.\n 4. If using Lerna, read {yellow packages} from {yellow lerna.json}.\n 5. Default to {yellow \"package.json\"} and {yellow \"packages/*/package.json\"}.\n\nReference:\n globs {blue.underline https://github.com/isaacs/node-glob#glob-primer}\n lerna.json {blue.underline https://github.com/lerna/lerna#lernajson}\n Yarn Workspaces {blue.underline https://yarnpkg.com/lang/en/docs/workspaces}\n Pnpm Workspaces {blue.underline https://pnpm.js.org/en/workspaces}\n"]))));
41
- });
42
- (_a = (_b = (_c = (_d = commander_1.program
43
- .option.apply(commander_1.program, __spreadArray([], __read(constants_1.option.source))))
44
- .option.apply(_d, __spreadArray([], __read(constants_1.option.prod))))
45
- .option.apply(_c, __spreadArray([], __read(constants_1.option.dev))))
46
- .option.apply(_b, __spreadArray([], __read(constants_1.option.peer))))
47
- .option.apply(_a, __spreadArray([], __read(constants_1.option.filter))).parse(process.argv);
48
- list_mismatches_1.listMismatchesFromDisk(get_config_1.getConfig({
49
- dev: commander_1.program.opts().dev,
50
- filter: commander_1.program.opts().filter,
51
- peer: commander_1.program.opts().peer,
52
- prod: commander_1.program.opts().prod,
53
- source: commander_1.program.opts().source
54
- }));
55
- var templateObject_1;