syncpack 5.8.12 → 6.1.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 +15 -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 +44 -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 +57 -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 +135 -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 +36 -36
  88. package/CHANGELOG.md +0 -410
  89. package/dist/bin-fix-mismatches.js +0 -58
  90. package/dist/bin-format.js +0 -50
  91. package/dist/bin-lint-semver-ranges.js +0 -58
  92. package/dist/bin-list-mismatches.js +0 -56
  93. package/dist/bin-list.js +0 -56
  94. package/dist/bin-set-semver-ranges.js +0 -60
  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 -42
  103. package/dist/commands/lib/get-wrappers.js +0 -46
  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 -26
  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 -50
  133. package/dist/lib/get-config.d.ts +0 -2
  134. package/dist/lib/get-config.js +0 -40
package/CHANGELOG.md DELETED
@@ -1,410 +0,0 @@
1
- ## [5.8.12](https://github.com/JamieMason/syncpack/compare/5.7.11...5.8.12) (2021-08-01)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **npm:** update dependencies ([91254f6](https://github.com/JamieMason/syncpack/commit/91254f6aa283afcc0b32163864468359dd4f888f))
7
-
8
-
9
- ### Features
10
-
11
- * **core:** add lint-semver-ranges command ([b4209f0](https://github.com/JamieMason/syncpack/commit/b4209f076344a9d59830d3bbd75569de9e19b4b3)), closes [#56](https://github.com/JamieMason/syncpack/issues/56)
12
-
13
-
14
-
15
- ## [5.7.11](https://github.com/JamieMason/syncpack/compare/5.6.10...5.7.11) (2021-01-29)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * **npm:** update dependencies ([5531da6](https://github.com/JamieMason/syncpack/commit/5531da60bc1cfb0fe3c5ca8e904d0a9e55d3d4b5))
21
-
22
-
23
- ### Features
24
-
25
- * **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)
26
-
27
-
28
-
29
- ## [5.6.10](https://github.com/JamieMason/syncpack/compare/5.6.7...5.6.10) (2020-09-17)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * **cli:** use defaults when source is empty array ([c2f6199](https://github.com/JamieMason/syncpack/commit/c2f61998add60ed5d52af1c3518d1f737cf75c80))
35
- * **core:** support multiple version groups ([bfd12b4](https://github.com/JamieMason/syncpack/commit/bfd12b4f3a6693ac1b4580621b12995d2b04eee7)), closes [#43](https://github.com/JamieMason/syncpack/issues/43)
36
- * **list:** display mismatches from version groups ([43ba18d](https://github.com/JamieMason/syncpack/commit/43ba18dff1aa7c749724b992b6eef17a227f5445))
37
-
38
-
39
-
40
- ## [5.6.7](https://github.com/JamieMason/syncpack/compare/5.5.6...5.6.7) (2020-08-30)
41
-
42
-
43
- ### Bug Fixes
44
-
45
- * **npm:** update dependencies ([2e3ea3b](https://github.com/JamieMason/syncpack/commit/2e3ea3b0f6de8a97a390305a998053550183cc27))
46
-
47
-
48
- ### Features
49
-
50
- * **core:** support granular versioning rules ([2197f90](https://github.com/JamieMason/syncpack/commit/2197f90608c119a04ddde6255e729fa1ec5c49ec)), closes [#41](https://github.com/JamieMason/syncpack/issues/41)
51
-
52
-
53
-
54
- ## [5.5.6](https://github.com/JamieMason/syncpack/compare/5.2.5...5.5.6) (2020-08-23)
55
-
56
-
57
- ### Bug Fixes
58
-
59
- * **core:** ignore link: versions rather than throw ([7a48366](https://github.com/JamieMason/syncpack/commit/7a483666e64a046be9984bf4146ac8566b3f5920)), closes [#38](https://github.com/JamieMason/syncpack/issues/38)
60
-
61
-
62
- ### Features
63
-
64
- * **core:** expose format configuration ([4f74d9a](https://github.com/JamieMason/syncpack/commit/4f74d9a0b9a92428278f66327630e5b0e9dc5add)), closes [#30](https://github.com/JamieMason/syncpack/issues/30)
65
- * **core:** sort resolutions field a-z ([f76a127](https://github.com/JamieMason/syncpack/commit/f76a1278b45ec3b00b2658b5da327d0a480ff12d)), closes [#34](https://github.com/JamieMason/syncpack/issues/34)
66
- * **core:** support yarn workspaces config as object ([34eceaf](https://github.com/JamieMason/syncpack/commit/34eceaffae143fdbc9729495ea693172c2944351)), closes [#33](https://github.com/JamieMason/syncpack/issues/33)
67
-
68
-
69
-
70
- ## [5.2.5](https://github.com/JamieMason/syncpack/compare/5.1.4...5.2.5) (2020-08-22)
71
-
72
-
73
- ### Bug Fixes
74
-
75
- * **npm:** update dependencies ([19ad510](https://github.com/JamieMason/syncpack/commit/19ad510d09040e1aa098e16d6831836da3c9c12f))
76
-
77
-
78
- ### Features
79
-
80
- * **core:** add support for config files ([cfd5df3](https://github.com/JamieMason/syncpack/commit/cfd5df35134de068eaf26bdb2cfaa1890c6c3545))
81
-
82
-
83
-
84
- ## [5.1.4](https://github.com/JamieMason/syncpack/compare/5.0.3...5.1.4) (2020-08-02)
85
-
86
-
87
- ### Bug Fixes
88
-
89
- * **npm:** update dependencies ([f2cac6a](https://github.com/JamieMason/syncpack/commit/f2cac6a05eaf9f5a7736267a797cf75476292757))
90
-
91
-
92
- ### Features
93
-
94
- * **core:** add support for pnpm workspaces ([a6112ec](https://github.com/JamieMason/syncpack/commit/a6112ec786fd26699a3734707218cda38baf9f0e)), closes [#42](https://github.com/JamieMason/syncpack/issues/42)
95
-
96
-
97
-
98
- ## [5.0.3](https://github.com/JamieMason/syncpack/compare/5.0.1...5.0.3) (2020-06-19)
99
-
100
-
101
- ### Bug Fixes
102
-
103
- * **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)
104
- * **npm:** update dependencies ([9e0bd7e](https://github.com/JamieMason/syncpack/commit/9e0bd7ea257b3dcc425f306d4fcae195f6d0d126))
105
-
106
-
107
-
108
- ## [5.0.1](https://github.com/JamieMason/syncpack/compare/4.5.5...5.0.1) (2020-02-16)
109
-
110
-
111
- ### Bug Fixes
112
-
113
- * **core:** include root package.json when reading yarn & lerna config ([a7875cb](https://github.com/JamieMason/syncpack/commit/a7875cb08e0f8382163e8c9e8a4d3e6772b4c160))
114
- * **npm:** update dependencies ([5fdcc7b](https://github.com/JamieMason/syncpack/commit/5fdcc7bd112533f891b31dfcf0be79b54989b8d7))
115
-
116
-
117
- ### BREAKING CHANGES
118
-
119
- * **npm:** engines.node has been increased to >=10 because
120
- semver@7.1.1 is a hard dependency of syncpack and
121
- requires node >=10
122
-
123
-
124
-
125
- ## [4.5.5](https://github.com/JamieMason/syncpack/compare/4.5.4...4.5.5) (2020-01-19)
126
-
127
-
128
- ### Bug Fixes
129
-
130
- * **npm:** update dependencies ([1776b5f](https://github.com/JamieMason/syncpack/commit/1776b5fdbbc79315dd5ab8700f25daeb3ec46b05))
131
-
132
-
133
-
134
- ## [4.5.4](https://github.com/JamieMason/syncpack/compare/4.5.3...4.5.4) (2019-07-16)
135
-
136
-
137
- ### Bug Fixes
138
-
139
- * **npm:** update dependencies ([e07cc44](https://github.com/JamieMason/syncpack/commit/e07cc44add6e9ae2d7775496f5585ac6f46e58e9)), closes [#28](https://github.com/JamieMason/syncpack/issues/28)
140
-
141
-
142
-
143
- ## [4.5.3](https://github.com/JamieMason/syncpack/compare/4.5.2...4.5.3) (2019-06-17)
144
-
145
-
146
- ### Bug Fixes
147
-
148
- * **npm:** update dependencies ([10834a9](https://github.com/JamieMason/syncpack/commit/10834a905812aadd4e13b2420bf3dc1549939dab))
149
-
150
-
151
-
152
- ## [4.5.2](https://github.com/JamieMason/syncpack/compare/4.4.2...4.5.2) (2019-05-14)
153
-
154
-
155
- ### Features
156
-
157
- * **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)
158
-
159
-
160
-
161
- ## [4.4.2](https://github.com/JamieMason/syncpack/compare/4.4.1...4.4.2) (2019-05-06)
162
-
163
-
164
- ### Bug Fixes
165
-
166
- * **filter:** --filter is a string, not a boolean ([5587f2b](https://github.com/JamieMason/syncpack/commit/5587f2bdaef0dcc50022c9ae9e98b1c34ce9e164))
167
-
168
-
169
-
170
- ## [4.4.1](https://github.com/JamieMason/syncpack/compare/4.3.1...4.4.1) (2019-04-29)
171
-
172
-
173
- ### Features
174
-
175
- * **options:** add dependency filter regex ([bfb1f1d](https://github.com/JamieMason/syncpack/commit/bfb1f1dde0ee3cbd11a0ef5cef80a0f53b28083a)), closes [#18](https://github.com/JamieMason/syncpack/issues/18)
176
-
177
-
178
-
179
- ## [4.3.1](https://github.com/JamieMason/syncpack/compare/4.0.1...4.3.1) (2019-02-03)
180
-
181
-
182
- ### Features
183
-
184
- * **fix-mismatches:** output which files are (un)changed ([a79b078](https://github.com/JamieMason/syncpack/commit/a79b078d7527a27a6e1343dab06e901f0c0a0530))
185
- * **format:** output which files are (un)changed ([3a08a7a](https://github.com/JamieMason/syncpack/commit/3a08a7a5a0bebfdf2d10503ce2cd1920ef94367e))
186
- * **list:** sort output alphabetically ([f61bde4](https://github.com/JamieMason/syncpack/commit/f61bde46a08550daf96cca596cbd1e00c13c7564))
187
-
188
-
189
-
190
- ## [4.0.1](https://github.com/JamieMason/syncpack/compare/4.0.0...4.0.1) (2019-01-14)
191
-
192
-
193
- ### Bug Fixes
194
-
195
- * **ci:** cannot read property concat of undefined ([46a45e2](https://github.com/JamieMason/syncpack/commit/46a45e26b51b9f81076148ff7483b19cd34aef73)), closes [#16](https://github.com/JamieMason/syncpack/issues/16)
196
-
197
-
198
-
199
- # [4.0.0](https://github.com/JamieMason/syncpack/compare/3.5.2...4.0.0) (2019-01-11)
200
-
201
-
202
- ### Bug Fixes
203
-
204
- * **node:** support Node.js 8.x or newer ([c71009e](https://github.com/JamieMason/syncpack/commit/c71009e1507cd66c735112a0ae685cd3e51ab2fe))
205
- * **npm:** update dependencies ([23b02e3](https://github.com/JamieMason/syncpack/commit/23b02e3d72e51e8b069a336357e6cddcdc4979c1)), closes [#15](https://github.com/JamieMason/syncpack/issues/15)
206
-
207
-
208
- ### BREAKING CHANGES
209
-
210
- * **node:** Support Node.js 8.x or newer, Transitive Dependency ip-regex@3.0.0
211
- supports node ">=8".
212
-
213
-
214
-
215
- ## [3.5.2](https://github.com/JamieMason/syncpack/compare/3.5.0...3.5.2) (2019-01-07)
216
-
217
-
218
- ### Bug Fixes
219
-
220
- * **core:** improve handling of non-semver versions ([9e1176a](https://github.com/JamieMason/syncpack/commit/9e1176a3495ea97648c61ab5869a12c3ff539c5f)), closes [#14](https://github.com/JamieMason/syncpack/issues/14)
221
- * **npm:** update dependencies ([09d9f04](https://github.com/JamieMason/syncpack/commit/09d9f04480252edd0fd3b6af3cd8dce36c66d96b))
222
-
223
-
224
-
225
- # [3.5.0](https://github.com/JamieMason/syncpack/compare/3.4.0...3.5.0) (2018-10-29)
226
-
227
-
228
- ### Features
229
-
230
- * **cli:** improve --help output and examples ([dfe6274](https://github.com/JamieMason/syncpack/commit/dfe6274c50d6ba3ea3ec419cabd1ccf0bb73f8fb))
231
-
232
-
233
-
234
- # [3.4.0](https://github.com/JamieMason/syncpack/compare/3.3.0...3.4.0) (2018-10-28)
235
-
236
-
237
- ### Features
238
-
239
- * **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)
240
-
241
-
242
-
243
- # [3.3.0](https://github.com/JamieMason/syncpack/compare/3.0.0...3.3.0) (2018-10-28)
244
-
245
-
246
- ### Features
247
-
248
- * **cli:** specify dependency types as options ([ec5ef6b](https://github.com/JamieMason/syncpack/commit/ec5ef6b76f3c2fa0fba0f3a364b734f554d32c8a)), closes [#10](https://github.com/JamieMason/syncpack/issues/10)
249
- * **cli:** specify indentation as option ([8b408bd](https://github.com/JamieMason/syncpack/commit/8b408bd14768fe7b3a2fd5cbb06233ba3b9707b3)), closes [#12](https://github.com/JamieMason/syncpack/issues/12)
250
- * **format:** sort contributors alphabetically ([935ffcf](https://github.com/JamieMason/syncpack/commit/935ffcf307d0adabe06c04ff1e2b258277f060be))
251
-
252
-
253
- ### Performance Improvements
254
-
255
- * **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)
256
-
257
-
258
-
259
- # [3.0.0](https://github.com/JamieMason/syncpack/compare/2.0.1...3.0.0) (2018-08-25)
260
-
261
-
262
- ### Features
263
-
264
- * **bin:** override package locations using repeatable --source options ([5dbcfd4](https://github.com/JamieMason/syncpack/commit/5dbcfd4915cf286cba0e665e554c319d717f6651))
265
- * **list-mismatches:** return exit code on finding mismatches ([06958c6](https://github.com/JamieMason/syncpack/commit/06958c6446646c108fc1dc4e07c714cd08bf58fc))
266
-
267
-
268
- ### BREAKING CHANGES
269
-
270
- * **bin:** Previously the location of package.json files could be overridden like so:
271
-
272
- ```
273
- syncpack list './package.json' './packages/*/package.json'
274
- ```
275
-
276
- This is now done using a repeatable `--source` option:
277
-
278
- ```
279
- syncpack list --source './package.json' --source './packages/*/package.json'
280
- ```
281
-
282
- This change is to make way for new commands which will also require an
283
- overridable `--target` option.
284
-
285
-
286
-
287
- ## [2.0.1](https://github.com/JamieMason/syncpack/compare/2.0.0...2.0.1) (2018-04-29)
288
-
289
-
290
- ### Bug Fixes
291
-
292
- * **core:** ensure pattern overrides are read ([7513ba5](https://github.com/JamieMason/syncpack/commit/7513ba5fa644bf445efbdca22d4797b4a973b56f))
293
-
294
-
295
-
296
- # [2.0.0](https://github.com/JamieMason/syncpack/compare/1.3.2...2.0.0) (2018-04-29)
297
-
298
-
299
- ### Features
300
-
301
- * **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)
302
-
303
-
304
- ### BREAKING CHANGES
305
-
306
- * **core:** --packages option replaced with variadic arguments
307
-
308
-
309
-
310
- ## [1.3.2](https://github.com/JamieMason/syncpack/compare/1.2.2...1.3.2) (2018-04-28)
311
-
312
-
313
- ### Features
314
-
315
- * **core:** add set-semver-ranges command ([4d206b9](https://github.com/JamieMason/syncpack/commit/4d206b9d00c7cf5a9f8ee52b84d7e8b9487fd01a))
316
-
317
-
318
-
319
- ## [1.2.2](https://github.com/JamieMason/syncpack/compare/1.0.2...1.2.2) (2018-02-10)
320
-
321
-
322
- ### Features
323
-
324
- * **core:** add format command ([bae1133](https://github.com/JamieMason/syncpack/commit/bae11337f1c68c87299ee3e33120d3dc0fa8643f))
325
- * **core:** output current version ([e53cd99](https://github.com/JamieMason/syncpack/commit/e53cd99e989b1ea383530bcde78d105b39103a8c))
326
-
327
-
328
-
329
- ## [1.0.2](https://github.com/JamieMason/syncpack/compare/1.0.1...1.0.2) (2018-02-02)
330
-
331
-
332
-
333
- ## [1.0.1](https://github.com/JamieMason/syncpack/compare/1.0.0...1.0.1) (2018-02-02)
334
-
335
-
336
- ### Bug Fixes
337
-
338
- * **core:** correct paths to binaries ([5682cd6](https://github.com/JamieMason/syncpack/commit/5682cd65b8559e9f47c9fe63b6294aebb73ba896))
339
-
340
-
341
-
342
- # [1.0.0](https://github.com/JamieMason/syncpack/compare/0.3.1...1.0.0) (2018-02-02)
343
-
344
-
345
- ### Bug Fixes
346
-
347
- * **core:** correctly check a file is package.json ([d1da609](https://github.com/JamieMason/syncpack/commit/d1da6096c3b7c6b01a05c112ffc1251ec4ba700d))
348
- * **core:** handle missing dependency maps ([372aa68](https://github.com/JamieMason/syncpack/commit/372aa6877f47df1118c45931391c8b87ca851413))
349
- * **core:** handle semver ranges containing 1.x.x ([a0f8f56](https://github.com/JamieMason/syncpack/commit/a0f8f5650f3855361914fc6f8303035dc3abfb8d))
350
-
351
-
352
- ### Features
353
-
354
- * **core:** add fix-mismatches command ([4793f1f](https://github.com/JamieMason/syncpack/commit/4793f1fc6b67cfa1f87f73188944f8dd8d196bc0))
355
- * **core:** add list command ([3b29176](https://github.com/JamieMason/syncpack/commit/3b291760f4cba611acc3f75034679303c55bf1a7))
356
- * **core:** add list-mismatches command ([735ad2b](https://github.com/JamieMason/syncpack/commit/735ad2b2a1347b99a3f758b0c797b2fb7a3fc4c3))
357
- * **core:** update command line API ([de8dcb2](https://github.com/JamieMason/syncpack/commit/de8dcb2b0dbe7bb63c91aeb05e8422696b0bd178))
358
-
359
-
360
- ### BREAKING CHANGES
361
-
362
- * **core:** The previous commands have been replaced.
363
-
364
-
365
-
366
- ## [0.3.1](https://github.com/JamieMason/syncpack/compare/0.3.0...0.3.1) (2017-08-23)
367
-
368
-
369
- ### Bug Fixes
370
-
371
- * **copy-values:** write results to disk ([a641de4](https://github.com/JamieMason/syncpack/commit/a641de41faaf6851cf9177ff87acd0d3e16494fb))
372
-
373
-
374
-
375
- # [0.3.0](https://github.com/JamieMason/syncpack/compare/0.2.1...0.3.0) (2017-08-22)
376
-
377
-
378
- ### Features
379
-
380
- * **cli:** add copy-values command ([b51a2c9](https://github.com/JamieMason/syncpack/commit/b51a2c96e133a1b5020577cf3c6bef31e79de850))
381
-
382
-
383
-
384
- ## [0.2.1](https://github.com/JamieMason/syncpack/compare/0.2.0...0.2.1) (2017-08-20)
385
-
386
-
387
- ### Bug Fixes
388
-
389
- * **core:** update dependencies, fix lint warnings ([a65eef7](https://github.com/JamieMason/syncpack/commit/a65eef765d868a27913e173543dcbda43a2202a5))
390
-
391
-
392
-
393
- # [0.2.0](https://github.com/JamieMason/syncpack/compare/0.1.0...0.2.0) (2017-08-20)
394
-
395
-
396
- ### Features
397
-
398
- * **sync:** synchronise versions across multiple package.json ([7d5848a](https://github.com/JamieMason/syncpack/commit/7d5848a0edbe0c0a312be323cc8d9a4a8ed0ea30))
399
-
400
-
401
-
402
- # [0.1.0](https://github.com/JamieMason/syncpack/compare/f6dada7aae149b7d0299206308347c8497e249d0...0.1.0) (2017-08-18)
403
-
404
-
405
- ### Features
406
-
407
- * **cli:** create scaffold cli ([f6dada7](https://github.com/JamieMason/syncpack/commit/f6dada7aae149b7d0299206308347c8497e249d0))
408
-
409
-
410
-
@@ -1,58 +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
- var args = commander_1.program;
50
- fix_mismatches_1.fixMismatchesToDisk(get_config_1.getConfig({
51
- dev: args.dev,
52
- filter: args.filter,
53
- indent: args.indent,
54
- peer: args.peer,
55
- prod: args.prod,
56
- source: args.source
57
- }));
58
- var templateObject_1;
@@ -1,50 +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
- var args = commander_1.program;
46
- format_1.formatToDisk(get_config_1.getConfig({
47
- indent: args.indent,
48
- source: args.source
49
- }));
50
- var templateObject_1;
@@ -1,58 +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
- var args = commander_1.program;
50
- lint_semver_ranges_1.lintSemverRangesFromDisk(get_config_1.getConfig({
51
- dev: args.dev,
52
- filter: args.filter,
53
- peer: args.peer,
54
- prod: args.prod,
55
- semverRange: args.semverRange,
56
- source: args.source
57
- }));
58
- var templateObject_1;
@@ -1,56 +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
- var args = commander_1.program;
49
- list_mismatches_1.listMismatchesFromDisk(get_config_1.getConfig({
50
- dev: args.dev,
51
- filter: args.filter,
52
- peer: args.peer,
53
- prod: args.prod,
54
- source: args.source
55
- }));
56
- var templateObject_1;