@atlaspack/cli 2.13.7-canary.2 → 2.13.7-canary.200

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,469 @@
1
1
  # @atlaspack/cli
2
2
 
3
+ ## 2.14.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#785](https://github.com/atlassian-labs/atlaspack/pull/785) [`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922) Thanks [@matt-koko](https://github.com/matt-koko)! - We need to re-publish every package in Atlaspack with the corrected types field.
8
+
9
+ - Updated dependencies [[`0e7dd5e`](https://github.com/atlassian-labs/atlaspack/commit/0e7dd5ec6fbe05aa9e0bb5775a9d0975f206a922), [`686a398`](https://github.com/atlassian-labs/atlaspack/commit/686a398faa1f9e19cbf9274add2c46e246bafba8)]:
10
+ - @atlaspack/config-default@5.0.1
11
+ - @atlaspack/core@2.24.1
12
+ - @atlaspack/diagnostic@2.14.4
13
+ - @atlaspack/feature-flags@2.25.1
14
+ - @atlaspack/fs@2.15.26
15
+ - @atlaspack/logger@2.14.23
16
+ - @atlaspack/package-manager@2.14.31
17
+ - @atlaspack/utils@2.19.3
18
+ - @atlaspack/reporter-cli@2.17.13
19
+ - @atlaspack/reporter-dev-server@2.14.31
20
+ - @atlaspack/reporter-tracer@2.14.31
21
+ - @atlaspack/events@2.14.4
22
+
23
+ ## 2.14.9
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [[`7a52bab`](https://github.com/atlassian-labs/atlaspack/commit/7a52bab6281e8edbfa66af248eb6f872c6b4b7bd), [`eedcbc4`](https://github.com/atlassian-labs/atlaspack/commit/eedcbc408fc1e86a2a8e25f1a41c57146d8529e1), [`5a0363f`](https://github.com/atlassian-labs/atlaspack/commit/5a0363f1086e81068959b87e92064bed5a11a9b4), [`038e87a`](https://github.com/atlassian-labs/atlaspack/commit/038e87a7858d39556d59d3a2d17db534d45f62c6), [`f6532d7`](https://github.com/atlassian-labs/atlaspack/commit/f6532d7a4f7f007bd4e5e36af04dd466f0b9f572), [`602f8ed`](https://github.com/atlassian-labs/atlaspack/commit/602f8ed9d8381301df8b2cc82c1d5cf6f2f94fec), [`8604d2a`](https://github.com/atlassian-labs/atlaspack/commit/8604d2a49ace5e9194ec4f76e71f06b93610f6b4)]:
28
+ - @atlaspack/feature-flags@2.25.0
29
+ - @atlaspack/core@2.24.0
30
+ - @atlaspack/fs@2.15.25
31
+ - @atlaspack/utils@2.19.2
32
+ - @atlaspack/reporter-cli@2.17.12
33
+ - @atlaspack/config-default@5.0.0
34
+ - @atlaspack/logger@2.14.22
35
+ - @atlaspack/package-manager@2.14.30
36
+ - @atlaspack/reporter-dev-server@2.14.30
37
+ - @atlaspack/reporter-tracer@2.14.30
38
+
39
+ ## 2.14.8
40
+
41
+ ### Patch Changes
42
+
43
+ - Updated dependencies []:
44
+ - @atlaspack/config-default@4.0.6
45
+
46
+ ## 2.14.7
47
+
48
+ ### Patch Changes
49
+
50
+ - Updated dependencies [[`830261d`](https://github.com/atlassian-labs/atlaspack/commit/830261dcf4a40293090b61cab52fd75d5683c73f), [`58ddd5d`](https://github.com/atlassian-labs/atlaspack/commit/58ddd5d79adde2ac5dc4c60ca575e4705a91e592)]:
51
+ - @atlaspack/feature-flags@2.24.1
52
+ - @atlaspack/package-manager@2.14.29
53
+ - @atlaspack/core@2.23.5
54
+ - @atlaspack/fs@2.15.24
55
+ - @atlaspack/utils@2.19.1
56
+ - @atlaspack/reporter-cli@2.17.11
57
+ - @atlaspack/config-default@4.0.5
58
+ - @atlaspack/logger@2.14.21
59
+ - @atlaspack/reporter-dev-server@2.14.29
60
+ - @atlaspack/reporter-tracer@2.14.29
61
+
62
+ ## 2.14.6
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [[`f0349a6`](https://github.com/atlassian-labs/atlaspack/commit/f0349a6b9b04755088f121095ca6301a2ada3767), [`a5081c3`](https://github.com/atlassian-labs/atlaspack/commit/a5081c3f9207d28716ee4edd3841de1830ea4b80), [`f930003`](https://github.com/atlassian-labs/atlaspack/commit/f930003364fdc31e5487520ebe256f1a9389f579), [`f930003`](https://github.com/atlassian-labs/atlaspack/commit/f930003364fdc31e5487520ebe256f1a9389f579), [`8843980`](https://github.com/atlassian-labs/atlaspack/commit/88439807be20025fd3433380204ff1205079729e)]:
67
+ - @atlaspack/feature-flags@2.24.0
68
+ - @atlaspack/utils@2.19.0
69
+ - @atlaspack/core@2.23.4
70
+ - @atlaspack/fs@2.15.23
71
+ - @atlaspack/reporter-cli@2.17.10
72
+ - @atlaspack/config-default@4.0.4
73
+ - @atlaspack/package-manager@2.14.28
74
+ - @atlaspack/reporter-dev-server@2.14.28
75
+ - @atlaspack/reporter-tracer@2.14.28
76
+ - @atlaspack/logger@2.14.20
77
+
78
+ ## 2.14.5
79
+
80
+ ### Patch Changes
81
+
82
+ - Updated dependencies [[`3cfb7cf`](https://github.com/atlassian-labs/atlaspack/commit/3cfb7cfd90b78a5c48ce717e779ff789769825a3)]:
83
+ - @atlaspack/feature-flags@2.23.2
84
+ - @atlaspack/core@2.23.3
85
+ - @atlaspack/fs@2.15.22
86
+ - @atlaspack/utils@2.18.4
87
+ - @atlaspack/reporter-cli@2.17.9
88
+ - @atlaspack/config-default@4.0.3
89
+ - @atlaspack/logger@2.14.19
90
+ - @atlaspack/package-manager@2.14.27
91
+ - @atlaspack/reporter-dev-server@2.14.27
92
+ - @atlaspack/reporter-tracer@2.14.27
93
+
94
+ ## 2.14.4
95
+
96
+ ### Patch Changes
97
+
98
+ - [#742](https://github.com/atlassian-labs/atlaspack/pull/742) [`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd) Thanks [@yamadapc](https://github.com/yamadapc)! - Internal changes and bug fixes to environmentDeduplication flag
99
+
100
+ - Updated dependencies [[`ee040bb`](https://github.com/atlassian-labs/atlaspack/commit/ee040bb6428f29b57d892ddd8107e29077d08ffd), [`889c65c`](https://github.com/atlassian-labs/atlaspack/commit/889c65cd25b811045e26a117e7404f694dde77a2), [`b6e72b6`](https://github.com/atlassian-labs/atlaspack/commit/b6e72b6dd2b517cbb0e700fa69e63332d3eacb1e)]:
101
+ - @atlaspack/package-manager@2.14.26
102
+ - @atlaspack/reporter-dev-server@2.14.26
103
+ - @atlaspack/feature-flags@2.23.1
104
+ - @atlaspack/reporter-tracer@2.14.26
105
+ - @atlaspack/config-default@4.0.2
106
+ - @atlaspack/diagnostic@2.14.3
107
+ - @atlaspack/reporter-cli@2.17.8
108
+ - @atlaspack/events@2.14.3
109
+ - @atlaspack/logger@2.14.18
110
+ - @atlaspack/utils@2.18.3
111
+ - @atlaspack/core@2.23.2
112
+ - @atlaspack/fs@2.15.21
113
+
114
+ ## 2.14.3
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [[`f6b3f22`](https://github.com/atlassian-labs/atlaspack/commit/f6b3f2276c7e417580b49c4879563aab51f156b1)]:
119
+ - @atlaspack/feature-flags@2.23.0
120
+ - @atlaspack/core@2.23.1
121
+ - @atlaspack/fs@2.15.20
122
+ - @atlaspack/utils@2.18.2
123
+ - @atlaspack/reporter-cli@2.17.7
124
+ - @atlaspack/config-default@4.0.1
125
+ - @atlaspack/package-manager@2.14.25
126
+ - @atlaspack/logger@2.14.17
127
+ - @atlaspack/reporter-dev-server@2.14.25
128
+ - @atlaspack/reporter-tracer@2.14.25
129
+
130
+ ## 2.14.2
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [[`7f5841c`](https://github.com/atlassian-labs/atlaspack/commit/7f5841c39df049f9546cccbeea2a7337e0337b45), [`73dd7ba`](https://github.com/atlassian-labs/atlaspack/commit/73dd7baab69456ef2f6e4a0cc7dbb04f407eb148)]:
135
+ - @atlaspack/core@2.23.0
136
+ - @atlaspack/feature-flags@2.22.0
137
+ - @atlaspack/config-default@4.0.0
138
+ - @atlaspack/fs@2.15.19
139
+ - @atlaspack/logger@2.14.16
140
+ - @atlaspack/utils@2.18.1
141
+ - @atlaspack/package-manager@2.14.24
142
+ - @atlaspack/reporter-cli@2.17.6
143
+ - @atlaspack/reporter-dev-server@2.14.24
144
+ - @atlaspack/reporter-tracer@2.14.24
145
+
146
+ ## 2.14.1
147
+
148
+ ### Patch Changes
149
+
150
+ - Updated dependencies [[`23d561e`](https://github.com/atlassian-labs/atlaspack/commit/23d561e51e68b0c38fd1ff4e4fb173e5e7b01cf2)]:
151
+ - @atlaspack/feature-flags@2.21.0
152
+ - @atlaspack/utils@2.18.0
153
+ - @atlaspack/core@2.22.0
154
+ - @atlaspack/fs@2.15.18
155
+ - @atlaspack/reporter-cli@2.17.5
156
+ - @atlaspack/config-default@3.1.25
157
+ - @atlaspack/package-manager@2.14.23
158
+ - @atlaspack/reporter-dev-server@2.14.23
159
+ - @atlaspack/reporter-tracer@2.14.23
160
+ - @atlaspack/logger@2.14.15
161
+
162
+ ## 2.14.0
163
+
164
+ ### Minor Changes
165
+
166
+ - [#723](https://github.com/atlassian-labs/atlaspack/pull/723) [`43fdd22`](https://github.com/atlassian-labs/atlaspack/commit/43fdd223860fbc97af17d68c65419b97412cb888) Thanks [@vykimnguyen](https://github.com/vykimnguyen)! - adding projectRoot option
167
+
168
+ ### Patch Changes
169
+
170
+ - [#720](https://github.com/atlassian-labs/atlaspack/pull/720) [`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94) Thanks [@alshdavid](https://github.com/alshdavid)! - Migrate to TypeScript
171
+
172
+ - Updated dependencies [[`d2fd849`](https://github.com/atlassian-labs/atlaspack/commit/d2fd849770fe6305e9c694bd97b1bd905abd9d94), [`43fdd22`](https://github.com/atlassian-labs/atlaspack/commit/43fdd223860fbc97af17d68c65419b97412cb888), [`12bee0e`](https://github.com/atlassian-labs/atlaspack/commit/12bee0e23f0464d7f6bd3e24fbe0d19c126d587d)]:
173
+ - @atlaspack/package-manager@2.14.22
174
+ - @atlaspack/reporter-dev-server@2.14.22
175
+ - @atlaspack/feature-flags@2.20.1
176
+ - @atlaspack/reporter-tracer@2.14.22
177
+ - @atlaspack/config-default@3.1.24
178
+ - @atlaspack/diagnostic@2.14.2
179
+ - @atlaspack/reporter-cli@2.17.4
180
+ - @atlaspack/events@2.14.2
181
+ - @atlaspack/logger@2.14.14
182
+ - @atlaspack/utils@2.17.4
183
+ - @atlaspack/core@2.21.0
184
+ - @atlaspack/fs@2.15.17
185
+
186
+ ## 2.13.25
187
+
188
+ ### Patch Changes
189
+
190
+ - Updated dependencies [[`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd)]:
191
+ - @atlaspack/feature-flags@2.20.0
192
+ - @atlaspack/core@2.20.0
193
+ - @atlaspack/fs@2.15.16
194
+ - @atlaspack/utils@2.17.3
195
+ - @atlaspack/reporter-cli@2.17.3
196
+ - @atlaspack/config-default@3.1.23
197
+ - @atlaspack/package-manager@2.14.21
198
+ - @atlaspack/reporter-dev-server@2.14.21
199
+ - @atlaspack/reporter-tracer@2.14.21
200
+
201
+ ## 2.13.24
202
+
203
+ ### Patch Changes
204
+
205
+ - Updated dependencies [[`1c7865a`](https://github.com/atlassian-labs/atlaspack/commit/1c7865a64451116d94015e248302435839d347c0), [`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a)]:
206
+ - @atlaspack/feature-flags@2.19.2
207
+ - @atlaspack/core@2.19.2
208
+ - @atlaspack/config-default@3.1.22
209
+ - @atlaspack/reporter-cli@2.17.2
210
+ - @atlaspack/reporter-dev-server@2.14.20
211
+ - @atlaspack/reporter-tracer@2.14.20
212
+ - @atlaspack/fs@2.15.15
213
+ - @atlaspack/utils@2.17.2
214
+ - @atlaspack/package-manager@2.14.20
215
+
216
+ ## 2.13.23
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [[`13aef17`](https://github.com/atlassian-labs/atlaspack/commit/13aef177eea289a6e40d2113b5ec1ac9be18a33d)]:
221
+ - @atlaspack/feature-flags@2.19.1
222
+ - @atlaspack/core@2.19.1
223
+ - @atlaspack/fs@2.15.14
224
+ - @atlaspack/utils@2.17.1
225
+ - @atlaspack/reporter-cli@2.17.1
226
+ - @atlaspack/config-default@3.1.21
227
+ - @atlaspack/package-manager@2.14.19
228
+ - @atlaspack/reporter-dev-server@2.14.19
229
+ - @atlaspack/reporter-tracer@2.14.19
230
+
231
+ ## 2.13.22
232
+
233
+ ### Patch Changes
234
+
235
+ - [#682](https://github.com/atlassian-labs/atlaspack/pull/682) [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56) Thanks [@alshdavid](https://github.com/alshdavid)! - Updating build system
236
+
237
+ - [#687](https://github.com/atlassian-labs/atlaspack/pull/687) [`26070c8`](https://github.com/atlassian-labs/atlaspack/commit/26070c871d2700daf4501051dd87b58b414912c0) Thanks [@alshdavid](https://github.com/alshdavid)! - Fixes for atlaspack link
238
+
239
+ - Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`becf977`](https://github.com/atlassian-labs/atlaspack/commit/becf977f625d5ee46dae3d4c679f173bf5f40cc0), [`c4415a4`](https://github.com/atlassian-labs/atlaspack/commit/c4415a455543d984ca28452c2cb87a794d22497c), [`f0f7c71`](https://github.com/atlassian-labs/atlaspack/commit/f0f7c7168a1d3d18c6f30d2daed611275692b7c5), [`de23e0c`](https://github.com/atlassian-labs/atlaspack/commit/de23e0ce49d5504fe3947ac26640a3d951087da3), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417), [`a5ed1b4`](https://github.com/atlassian-labs/atlaspack/commit/a5ed1b414498560f393ff491af4da25b6e8dde56), [`3ba1aee`](https://github.com/atlassian-labs/atlaspack/commit/3ba1aee6a794a26b2f0255aaf6d003981532d0ae)]:
240
+ - @atlaspack/feature-flags@2.19.0
241
+ - @atlaspack/utils@2.17.0
242
+ - @atlaspack/core@2.19.0
243
+ - @atlaspack/package-manager@2.14.18
244
+ - @atlaspack/reporter-dev-server@2.14.18
245
+ - @atlaspack/fs@2.15.13
246
+ - @atlaspack/reporter-cli@2.17.0
247
+ - @atlaspack/config-default@3.1.20
248
+ - @atlaspack/reporter-tracer@2.14.18
249
+ - @atlaspack/logger@2.14.13
250
+
251
+ ## 2.13.21
252
+
253
+ ### Patch Changes
254
+
255
+ - Updated dependencies []:
256
+ - @atlaspack/core@2.18.8
257
+ - @atlaspack/fs@2.15.12
258
+ - @atlaspack/logger@2.14.12
259
+ - @atlaspack/utils@2.16.1
260
+ - @atlaspack/config-default@3.1.19
261
+ - @atlaspack/package-manager@2.14.17
262
+ - @atlaspack/reporter-cli@2.16.1
263
+ - @atlaspack/reporter-dev-server@2.14.17
264
+ - @atlaspack/reporter-tracer@2.14.17
265
+
266
+ ## 2.13.20
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [[`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529), [`1ff31f1`](https://github.com/atlassian-labs/atlaspack/commit/1ff31f10391c48780c9fcfc243b4e828a1b285e0), [`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c), [`30ee2cf`](https://github.com/atlassian-labs/atlaspack/commit/30ee2cfcd34cf2646ded0eda13fdb80a2a5de529)]:
271
+ - @atlaspack/reporter-cli@2.16.0
272
+ - @atlaspack/core@2.18.7
273
+ - @atlaspack/feature-flags@2.18.4
274
+ - @atlaspack/utils@2.16.0
275
+ - @atlaspack/fs@2.15.11
276
+ - @atlaspack/config-default@3.1.18
277
+ - @atlaspack/package-manager@2.14.16
278
+ - @atlaspack/reporter-dev-server@2.14.16
279
+ - @atlaspack/reporter-tracer@2.14.16
280
+
281
+ ## 2.13.19
282
+
283
+ ### Patch Changes
284
+
285
+ - Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be), [`74fd942`](https://github.com/atlassian-labs/atlaspack/commit/74fd94236ac697207082c4b755b079e56f5564fb)]:
286
+ - @atlaspack/feature-flags@2.18.3
287
+ - @atlaspack/core@2.18.6
288
+ - @atlaspack/fs@2.15.10
289
+ - @atlaspack/utils@2.15.3
290
+ - @atlaspack/reporter-cli@2.15.11
291
+ - @atlaspack/config-default@3.1.17
292
+ - @atlaspack/package-manager@2.14.15
293
+ - @atlaspack/reporter-dev-server@2.14.15
294
+ - @atlaspack/reporter-tracer@2.14.15
295
+
296
+ ## 2.13.18
297
+
298
+ ### Patch Changes
299
+
300
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
301
+ - @atlaspack/feature-flags@2.18.2
302
+ - @atlaspack/core@2.18.5
303
+ - @atlaspack/fs@2.15.9
304
+ - @atlaspack/utils@2.15.2
305
+ - @atlaspack/reporter-cli@2.15.10
306
+ - @atlaspack/config-default@3.1.16
307
+ - @atlaspack/package-manager@2.14.14
308
+ - @atlaspack/reporter-dev-server@2.14.14
309
+ - @atlaspack/reporter-tracer@2.14.14
310
+
311
+ ## 2.13.17
312
+
313
+ ### Patch Changes
314
+
315
+ - Updated dependencies [[`ef3d622`](https://github.com/atlassian-labs/atlaspack/commit/ef3d6228f4e006702198a19c61e051d194d325cb), [`6b1f5ff`](https://github.com/atlassian-labs/atlaspack/commit/6b1f5fff68d7131fae075e14f4d2c02606dc6058), [`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`c8f7df4`](https://github.com/atlassian-labs/atlaspack/commit/c8f7df4eadfc4718040fceb065dae6e96a4051e7), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
316
+ - @atlaspack/logger@2.14.11
317
+ - @atlaspack/core@2.18.4
318
+ - @atlaspack/feature-flags@2.18.1
319
+ - @atlaspack/fs@2.15.8
320
+ - @atlaspack/package-manager@2.14.13
321
+ - @atlaspack/utils@2.15.1
322
+ - @atlaspack/config-default@3.1.15
323
+ - @atlaspack/reporter-cli@2.15.9
324
+ - @atlaspack/reporter-dev-server@2.14.13
325
+ - @atlaspack/reporter-tracer@2.14.13
326
+
327
+ ## 2.13.16
328
+
329
+ ### Patch Changes
330
+
331
+ - Updated dependencies [[`10fbcfb`](https://github.com/atlassian-labs/atlaspack/commit/10fbcfbfa49c7a83da5d7c40983e36e87f524a75), [`85c52d3`](https://github.com/atlassian-labs/atlaspack/commit/85c52d3f7717b3c84a118d18ab98cfbfd71dcbd2), [`e39c6cf`](https://github.com/atlassian-labs/atlaspack/commit/e39c6cf05f7e95ce5420dbcea66f401b1cbd397c)]:
332
+ - @atlaspack/feature-flags@2.18.0
333
+ - @atlaspack/utils@2.15.0
334
+ - @atlaspack/core@2.18.3
335
+ - @atlaspack/fs@2.15.7
336
+ - @atlaspack/reporter-cli@2.15.8
337
+ - @atlaspack/config-default@3.1.14
338
+ - @atlaspack/package-manager@2.14.12
339
+ - @atlaspack/reporter-dev-server@2.14.12
340
+ - @atlaspack/reporter-tracer@2.14.12
341
+
342
+ ## 2.13.15
343
+
344
+ ### Patch Changes
345
+
346
+ - Updated dependencies [[`73ea3c4`](https://github.com/atlassian-labs/atlaspack/commit/73ea3c4d85d4401fdd15abcbf988237e890e7ad3), [`b1b3693`](https://github.com/atlassian-labs/atlaspack/commit/b1b369317c66f8a431c170df2ebba4fa5b2e38ef)]:
347
+ - @atlaspack/feature-flags@2.17.0
348
+ - @atlaspack/config-default@3.1.13
349
+ - @atlaspack/core@2.18.2
350
+ - @atlaspack/fs@2.15.6
351
+ - @atlaspack/utils@2.14.11
352
+ - @atlaspack/reporter-cli@2.15.7
353
+ - @atlaspack/package-manager@2.14.11
354
+ - @atlaspack/reporter-dev-server@2.14.11
355
+ - @atlaspack/reporter-tracer@2.14.11
356
+
357
+ ## 2.13.14
358
+
359
+ ### Patch Changes
360
+
361
+ - Updated dependencies []:
362
+ - @atlaspack/config-default@3.1.12
363
+
364
+ ## 2.13.13
365
+
366
+ ### Patch Changes
367
+
368
+ - Updated dependencies []:
369
+ - @atlaspack/config-default@3.1.11
370
+ - @atlaspack/core@2.18.1
371
+
372
+ ## 2.13.12
373
+
374
+ ### Patch Changes
375
+
376
+ - Updated dependencies [[`0999fb7`](https://github.com/atlassian-labs/atlaspack/commit/0999fb78da519a6c7582d212883e515fcf6c1252), [`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b), [`1e32d4e`](https://github.com/atlassian-labs/atlaspack/commit/1e32d4eae6b3af3968e8a0ef97d35b4347fd4196), [`0b2f6f5`](https://github.com/atlassian-labs/atlaspack/commit/0b2f6f55794d3ff6e2f5a41f963e7e5dd8ad9f8d), [`6dd4ccb`](https://github.com/atlassian-labs/atlaspack/commit/6dd4ccb753541de32322d881f973d571dd57e4ca)]:
377
+ - @atlaspack/fs@2.15.5
378
+ - @atlaspack/core@2.18.0
379
+ - @atlaspack/package-manager@2.14.10
380
+ - @atlaspack/reporter-cli@2.15.6
381
+ - @atlaspack/reporter-dev-server@2.14.10
382
+ - @atlaspack/config-default@3.1.10
383
+ - @atlaspack/logger@2.14.10
384
+ - @atlaspack/utils@2.14.10
385
+ - @atlaspack/reporter-tracer@2.14.10
386
+
387
+ ## 2.13.11
388
+
389
+ ### Patch Changes
390
+
391
+ - Updated dependencies [[`1940859`](https://github.com/atlassian-labs/atlaspack/commit/194085942f0e86532e9d039fc3f8039badce4594), [`15b6155`](https://github.com/atlassian-labs/atlaspack/commit/15b61556e9114203ebbc9de94b864118ca764598), [`e4d966c`](https://github.com/atlassian-labs/atlaspack/commit/e4d966c3c9c4292c5013372ae65b10d19d4bacc6), [`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`d04de26`](https://github.com/atlassian-labs/atlaspack/commit/d04de26af684d7abfba5091fbe3df16a12cd0ebc), [`f4da1e1`](https://github.com/atlassian-labs/atlaspack/commit/f4da1e120e73eeb5e8b8927f05e88f04d6148c7b)]:
392
+ - @atlaspack/core@2.17.4
393
+ - @atlaspack/fs@2.15.4
394
+ - @atlaspack/feature-flags@2.16.0
395
+ - @atlaspack/logger@2.14.9
396
+ - @atlaspack/utils@2.14.9
397
+ - @atlaspack/package-manager@2.14.9
398
+ - @atlaspack/reporter-cli@2.15.5
399
+ - @atlaspack/config-default@3.1.9
400
+ - @atlaspack/reporter-dev-server@2.14.9
401
+ - @atlaspack/reporter-tracer@2.14.9
402
+
403
+ ## 2.13.10
404
+
405
+ ### Patch Changes
406
+
407
+ - Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b), [`3a3e8e7`](https://github.com/atlassian-labs/atlaspack/commit/3a3e8e7be9e2dffd7304436d792f0f595d59665a), [`1ab0a27`](https://github.com/atlassian-labs/atlaspack/commit/1ab0a275aeca40350415e2b03e7440d1dddc6228), [`b8a4ae8`](https://github.com/atlassian-labs/atlaspack/commit/b8a4ae8f83dc0a83d8b145c5f729936ce52080a3), [`15c1e3c`](https://github.com/atlassian-labs/atlaspack/commit/15c1e3c0628bae4c768d76cf3afc53d6d0d7ce7c)]:
408
+ - @atlaspack/core@2.17.3
409
+ - @atlaspack/feature-flags@2.15.1
410
+ - @atlaspack/fs@2.15.3
411
+ - @atlaspack/utils@2.14.8
412
+ - @atlaspack/reporter-cli@2.15.4
413
+ - @atlaspack/package-manager@2.14.8
414
+ - @atlaspack/logger@2.14.8
415
+ - @atlaspack/config-default@3.1.8
416
+ - @atlaspack/reporter-dev-server@2.14.8
417
+ - @atlaspack/reporter-tracer@2.14.8
418
+
419
+ ## 2.13.9
420
+
421
+ ### Patch Changes
422
+
423
+ - Updated dependencies [[`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929), [`556d6ab`](https://github.com/atlassian-labs/atlaspack/commit/556d6ab8ede759fa7f37fcd3f4da336ef1c55e8f)]:
424
+ - @atlaspack/feature-flags@2.15.0
425
+ - @atlaspack/logger@2.14.7
426
+ - @atlaspack/core@2.17.2
427
+ - @atlaspack/fs@2.15.2
428
+ - @atlaspack/utils@2.14.7
429
+ - @atlaspack/reporter-cli@2.15.3
430
+ - @atlaspack/config-default@3.1.7
431
+ - @atlaspack/package-manager@2.14.7
432
+ - @atlaspack/reporter-dev-server@2.14.7
433
+ - @atlaspack/reporter-tracer@2.14.7
434
+
435
+ ## 2.13.8
436
+
437
+ ### Patch Changes
438
+
439
+ - Updated dependencies [[`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09)]:
440
+ - @atlaspack/feature-flags@2.14.4
441
+ - @atlaspack/core@2.17.1
442
+ - @atlaspack/fs@2.15.1
443
+ - @atlaspack/utils@2.14.6
444
+ - @atlaspack/reporter-cli@2.15.2
445
+ - @atlaspack/logger@2.14.6
446
+ - @atlaspack/config-default@3.1.6
447
+ - @atlaspack/package-manager@2.14.6
448
+ - @atlaspack/reporter-dev-server@2.14.6
449
+ - @atlaspack/reporter-tracer@2.14.6
450
+
451
+ ## 2.13.7
452
+
453
+ ### Patch Changes
454
+
455
+ - Updated dependencies [[`2e90c9b`](https://github.com/atlassian-labs/atlaspack/commit/2e90c9bd07d7eb52645f9d84ccbb7f82685cbc8c), [`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7), [`e2ba0f6`](https://github.com/atlassian-labs/atlaspack/commit/e2ba0f69702656f3d1ce95ab1454e35062b13b39), [`4c17141`](https://github.com/atlassian-labs/atlaspack/commit/4c1714103dab2aa9039c488f381551d2b65d1d01)]:
456
+ - @atlaspack/core@2.17.0
457
+ - @atlaspack/feature-flags@2.14.3
458
+ - @atlaspack/fs@2.15.0
459
+ - @atlaspack/utils@2.14.5
460
+ - @atlaspack/reporter-cli@2.15.1
461
+ - @atlaspack/logger@2.14.5
462
+ - @atlaspack/config-default@3.1.5
463
+ - @atlaspack/package-manager@2.14.5
464
+ - @atlaspack/reporter-dev-server@2.14.5
465
+ - @atlaspack/reporter-tracer@2.14.5
466
+
3
467
  ## 2.13.6
4
468
 
5
469
  ### Patch Changes
package/bin/atlaspack.js CHANGED
@@ -1,2 +1,13 @@
1
1
  #!/usr/bin/env node
2
- require('../lib/bin');
2
+ 'use strict';
3
+
4
+ if (
5
+ process.env.ATLASPACK_REGISTER_USE_SRC === 'true' ||
6
+ process.env.ATLASPACK_BUILD_ENV === 'test' ||
7
+ process.env.ATLASPACK_SELF_BUILD
8
+ ) {
9
+ require('@atlaspack/babel-register');
10
+ require('../src/cli');
11
+ } else {
12
+ require('../lib/cli');
13
+ }
@@ -12,12 +12,15 @@ function _commander() {
12
12
  return data;
13
13
  }
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ // @ts-expect-error TS2305
16
+
15
17
  function applyOptions(cmd, options) {
16
18
  for (let opt in options) {
17
19
  const option = options[opt];
18
20
  if (option instanceof _commander().default.Option) {
19
21
  cmd.addOption(option);
20
22
  } else if (Array.isArray(option)) {
23
+ // @ts-expect-error TS2345
21
24
  cmd.option(opt, ...option);
22
25
  } else if (typeof option === 'string') {
23
26
  cmd.option(opt, option);
package/lib/bin.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
2
- 'use strict';
1
+ "use strict";
3
2
 
4
- require('./cli');
3
+ // This file exists for atlaspack-link support
4
+ require('../bin/atlaspack.js');
package/lib/cli.js CHANGED
@@ -92,7 +92,6 @@ program.on('--help', function () {
92
92
  });
93
93
 
94
94
  // Override to output option description if argument was missing
95
- // $FlowFixMe[prop-missing]
96
95
  _commander().default.Command.prototype.optionMissingArgument = function (option) {
97
96
  _logger().INTERNAL_ORIGINAL_CONSOLE.error("error: option `%s' argument missing", option.flags);
98
97
  _logger().INTERNAL_ORIGINAL_CONSOLE.log(program.createHelp().optionDescription(option));
@@ -106,7 +105,10 @@ if (!args[2] || !program.commands.some(c => c.name() === args[2])) {
106
105
  args.splice(2, 0, 'serve');
107
106
  }
108
107
  program.parse(args);
108
+
109
+ // @ts-expect-error TS7019
109
110
  function runCommand(...args) {
111
+ // @ts-expect-error TS2556
110
112
  run(...args).catch(_handleUncaughtException.handleUncaughtException);
111
113
  }
112
114
  async function run(entries, _opts,
@@ -129,8 +131,10 @@ command) {
129
131
  });
130
132
  let disposable = new (_events().Disposable)();
131
133
  let unsubscribe;
134
+ // @ts-expect-error TS7034
132
135
  let isExiting;
133
136
  async function exit(exitCode = 0) {
137
+ // @ts-expect-error TS7005
134
138
  if (isExiting) {
135
139
  return;
136
140
  }
@@ -141,7 +145,6 @@ command) {
141
145
  await atlaspack.stopProfiling();
142
146
  }
143
147
  if (process.stdin.isTTY && process.stdin.isRaw) {
144
- // $FlowFixMe
145
148
  process.stdin.setRawMode(false);
146
149
  }
147
150
  disposable.dispose();
@@ -149,7 +152,6 @@ command) {
149
152
  }
150
153
  const isWatching = command.name() === 'watch' || command.name() === 'serve';
151
154
  if (process.stdin.isTTY) {
152
- // $FlowFixMe
153
155
  process.stdin.setRawMode(true);
154
156
  require('readline').emitKeypressEvents(process.stdin);
155
157
  let stream = process.stdin.on('keypress', async (char, key) => {
@@ -185,6 +187,7 @@ command) {
185
187
  });
186
188
  }
187
189
  if (isWatching) {
190
+ // @ts-expect-error TS7006
188
191
  ({
189
192
  unsubscribe
190
193
  } = await atlaspack.watch(err => {
@@ -65,7 +65,9 @@ async function logUncaughtError(e) {
65
65
  }
66
66
 
67
67
  // A hack to definitely ensure we logged the uncaught exception
68
- await new Promise(resolve => setTimeout(resolve, 100));
68
+ await new Promise(resolve =>
69
+ // @ts-expect-error TS2304
70
+ setTimeout(resolve, 100));
69
71
  }
70
72
  async function handleUncaughtException(exception) {
71
73
  try {
@@ -37,6 +37,8 @@ var _applyOptions = require("./applyOptions");
37
37
  var _options = require("./options");
38
38
  var _handleUncaughtException = require("./handleUncaughtException");
39
39
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
40
+ // @ts-expect-error TS2305
41
+
40
42
  function makeDebugCommand() {
41
43
  const debug = new (_commander().default.Command)('debug').description('Debug commands for atlaspack');
42
44
  const getInstance = async (args, opts, command) => {
@@ -92,5 +94,19 @@ function makeDebugCommand() {
92
94
  }
93
95
  });
94
96
  (0, _applyOptions.applyOptions)(buildAssetGraph, _options.commonOptions);
97
+ const compactCache = debug.command('compact-cache [input...]').description('Compact the cache').action(async (args, opts, command) => {
98
+ const atlaspack = await getInstance(args, opts, command);
99
+ try {
100
+ await atlaspack.unstable_compactCache();
101
+ _logger().default.info({
102
+ message: 'Done compacting cache',
103
+ origin: '@atlaspack/cli'
104
+ });
105
+ process.exit(0);
106
+ } catch (err) {
107
+ (0, _handleUncaughtException.handleUncaughtException)(err);
108
+ }
109
+ });
110
+ (0, _applyOptions.applyOptions)(compactCache, _options.commonOptions);
95
111
  return debug;
96
112
  }
@@ -42,10 +42,6 @@ function parsePort(portValue) {
42
42
  }
43
43
  return parsedPort;
44
44
  }
45
-
46
- // $FlowFixMe
47
-
48
- // $FlowFixMe
49
45
  function shouldUseProductionDefaults(command) {
50
46
  return command.name() === 'build' || command.production === true;
51
47
  }
@@ -64,6 +60,7 @@ async function normalizeOptions(command, inputFS) {
64
60
  process.env.NODE_ENV = nodeEnv;
65
61
  let https = !!command.https;
66
62
  if (command.cert != null && command.key != null) {
63
+ // @ts-expect-error TS2322
67
64
  https = {
68
65
  cert: command.cert,
69
66
  key: command.key
@@ -107,6 +104,8 @@ async function normalizeOptions(command, inputFS) {
107
104
  let {
108
105
  publicUrl
109
106
  } = command;
107
+
108
+ // @ts-expect-error TS2322
110
109
  serveOptions = {
111
110
  https,
112
111
  port,
@@ -147,6 +146,7 @@ async function normalizeOptions(command, inputFS) {
147
146
  return {
148
147
  shouldDisableCache: command.cache === false,
149
148
  cacheDir: command.cacheDir,
149
+ projectRoot: command.projectRoot,
150
150
  watchDir: command.watchDir,
151
151
  watchBackend: command.watchBackend,
152
152
  watchIgnore: command.watchIgnore,
@@ -154,6 +154,7 @@ async function normalizeOptions(command, inputFS) {
154
154
  mode,
155
155
  hmrOptions,
156
156
  shouldContentHash: hmrOptions ? false : command.contentHash,
157
+ // @ts-expect-error TS2322
157
158
  serveOptions,
158
159
  targets: command.target.length > 0 ? command.target : null,
159
160
  shouldAutoInstall: command.autoinstall ?? true,
@@ -165,6 +166,7 @@ async function normalizeOptions(command, inputFS) {
165
166
  lazyExcludes: normalizeIncludeExcludeList(command.lazyExclude),
166
167
  shouldBundleIncrementally: process.env.ATLASPACK_INCREMENTAL_BUNDLING === 'false' ? false : true,
167
168
  detailedReport: command.detailedReport != null ? {
169
+ // @ts-expect-error TS2345
168
170
  assetsPerBundle: parseInt(command.detailedReport, 10)
169
171
  } : null,
170
172
  env: {
package/lib/options.js CHANGED
@@ -44,6 +44,7 @@ switch (process.platform) {
44
44
  watcherBackendChoices.push('watchman', 'windows');
45
45
  break;
46
46
  }
47
+ // @ts-expect-error TS2367
47
48
  case 'freebsd' || 'openbsd':
48
49
  {
49
50
  watcherBackendChoices.push('watchman');
@@ -59,6 +60,7 @@ const commonOptions = exports.commonOptions = {
59
60
  '--no-cache': 'disable the filesystem cache',
60
61
  '--config <path>': 'specify which config to use. can be a path or a package name',
61
62
  '--cache-dir <path>': 'set the cache directory. defaults to ".parcel-cache"',
63
+ '--project-root <path>': 'set the project root directory. defaults to nearest directory with lockfiles or version control, falls back to cwd',
62
64
  '--watch-dir <path>': 'set the root watch directory. defaults to nearest lockfile or source control dir.',
63
65
  '--watch-ignore [path]': [`list of directories watcher should not be tracking for changes. defaults to ['.git', '.hg']`, dirs => dirs.split(',')],
64
66
  '--watch-backend': new (_commander().default.Option)('--watch-backend <name>', 'set watcher backend').choices(watcherBackendChoices),
@@ -79,6 +81,7 @@ const commonOptions = exports.commonOptions = {
79
81
  let [name, val] = value.split('=');
80
82
  if (name in _featureFlags().DEFAULT_FEATURE_FLAGS) {
81
83
  let featureFlagValue;
84
+ // @ts-expect-error TS7053
82
85
  if (typeof _featureFlags().DEFAULT_FEATURE_FLAGS[name] === 'boolean') {
83
86
  if (val !== 'true' && val !== 'false') {
84
87
  throw new Error(`Feature flag ${name} must be set to true or false`);
@@ -0,0 +1,5 @@
1
+ import commander from 'commander';
2
+ export interface OptionsDefinition {
3
+ [key: string]: string | unknown[] | commander.Option;
4
+ }
5
+ export declare function applyOptions(cmd: commander.Command, options: OptionsDefinition): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare function logUncaughtError(e: unknown): Promise<void>;
2
+ export declare function handleUncaughtException(exception: unknown): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import commander from 'commander';
2
+ export declare function makeDebugCommand(): commander.Command;
@@ -0,0 +1,41 @@
1
+ import commander from 'commander';
2
+ import type { FileSystem } from '@atlaspack/fs';
3
+ import type { FeatureFlags } from '@atlaspack/feature-flags';
4
+ import type { InitialAtlaspackOptions, LogLevel } from '@atlaspack/types';
5
+ export interface Options {
6
+ production?: boolean;
7
+ autoinstall?: boolean;
8
+ https?: boolean;
9
+ cert?: string;
10
+ key?: string;
11
+ host: string;
12
+ port?: string;
13
+ hmr?: boolean;
14
+ hmrPort?: string;
15
+ hmrHost?: string;
16
+ publicUrl?: string;
17
+ detailedReport?: boolean | string;
18
+ reporter: string[];
19
+ trace?: boolean;
20
+ cache?: boolean;
21
+ cacheDir?: string;
22
+ projectRoot?: string;
23
+ watchDir?: string;
24
+ watchBackend?: 'watchman' | 'fs-events' | 'inotify' | 'brute-force' | 'windows';
25
+ watchIgnore?: string[];
26
+ config?: string;
27
+ logLevel?: LogLevel;
28
+ profile?: boolean;
29
+ contentHash?: boolean;
30
+ featureFlag?: Partial<FeatureFlags>;
31
+ optimize?: boolean;
32
+ sourceMaps?: boolean;
33
+ scopeHoist?: boolean;
34
+ distDir?: string;
35
+ lazy?: string;
36
+ lazyExclude?: string;
37
+ target: string[];
38
+ }
39
+ export interface CommandExt extends commander.Command, Options {
40
+ }
41
+ export declare function normalizeOptions(command: CommandExt, inputFS: FileSystem): Promise<InitialAtlaspackOptions>;
@@ -0,0 +1,4 @@
1
+ import type { OptionsDefinition } from './applyOptions';
2
+ export declare let watcherBackendChoices: string[];
3
+ export declare const commonOptions: OptionsDefinition;
4
+ export declare const hmrOptions: OptionsDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaspack/cli",
3
- "version": "2.13.7-canary.2+88fcaf47c",
3
+ "version": "2.13.7-canary.200+10ee3fa5b",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "(MIT OR Apache-2.0)",
6
6
  "type": "commonjs",
@@ -14,36 +14,37 @@
14
14
  "bin": {
15
15
  "atlaspack": "bin/atlaspack.js"
16
16
  },
17
- "main": "lib/bin.js",
18
- "source": "src/bin.js",
17
+ "main": "./lib/bin.js",
18
+ "source": "./src/bin.ts",
19
+ "types": "./lib/types/bin.d.ts",
19
20
  "scripts": {
20
- "prepack": "./ensure-no-dev-lib.sh",
21
- "dev:prepare": "rimraf ./lib/ && mkdir -p lib && cp ./bin/dev-bin.js ./lib/bin.js"
21
+ "check-ts": "tsc --emitDeclarationOnly --rootDir src",
22
+ "build:lib": "gulp build --gulpfile ../../../gulpfile.js --cwd ."
22
23
  },
23
24
  "engines": {
24
25
  "node": ">= 16.0.0"
25
26
  },
26
27
  "dependencies": {
27
- "@atlaspack/config-default": "3.1.5-canary.2+88fcaf47c",
28
- "@atlaspack/core": "2.16.2-canary.2+88fcaf47c",
29
- "@atlaspack/diagnostic": "2.14.1-canary.70+88fcaf47c",
30
- "@atlaspack/events": "2.14.1-canary.70+88fcaf47c",
31
- "@atlaspack/feature-flags": "2.14.1-canary.70+88fcaf47c",
32
- "@atlaspack/fs": "2.14.5-canary.2+88fcaf47c",
33
- "@atlaspack/logger": "2.14.5-canary.2+88fcaf47c",
34
- "@atlaspack/package-manager": "2.14.5-canary.2+88fcaf47c",
35
- "@atlaspack/reporter-cli": "2.15.1-canary.2+88fcaf47c",
36
- "@atlaspack/reporter-dev-server": "2.14.5-canary.2+88fcaf47c",
37
- "@atlaspack/reporter-tracer": "2.14.5-canary.2+88fcaf47c",
38
- "@atlaspack/utils": "2.14.5-canary.2+88fcaf47c",
28
+ "@atlaspack/config-default": "3.1.5-canary.200+10ee3fa5b",
29
+ "@atlaspack/core": "2.16.2-canary.200+10ee3fa5b",
30
+ "@atlaspack/diagnostic": "2.14.1-canary.268+10ee3fa5b",
31
+ "@atlaspack/events": "2.14.1-canary.268+10ee3fa5b",
32
+ "@atlaspack/feature-flags": "2.14.1-canary.268+10ee3fa5b",
33
+ "@atlaspack/fs": "2.14.5-canary.200+10ee3fa5b",
34
+ "@atlaspack/logger": "2.14.5-canary.200+10ee3fa5b",
35
+ "@atlaspack/package-manager": "2.14.5-canary.200+10ee3fa5b",
36
+ "@atlaspack/reporter-cli": "2.15.1-canary.200+10ee3fa5b",
37
+ "@atlaspack/reporter-dev-server": "2.14.5-canary.200+10ee3fa5b",
38
+ "@atlaspack/reporter-tracer": "2.14.5-canary.200+10ee3fa5b",
39
+ "@atlaspack/utils": "2.14.5-canary.200+10ee3fa5b",
39
40
  "chalk": "^4.1.0",
40
41
  "commander": "^7.0.0",
41
42
  "get-port": "^4.2.0"
42
43
  },
43
44
  "devDependencies": {
44
- "@atlaspack/babel-register": "2.14.1",
45
+ "@atlaspack/babel-register": "2.14.4",
45
46
  "@babel/core": "^7.22.11",
46
47
  "rimraf": "^5.0.5"
47
48
  },
48
- "gitHead": "88fcaf47c77a6b7a16003028dd65a4b7a1f19dd7"
49
- }
49
+ "gitHead": "10ee3fa5b75a92acde8973673d9b3c5b6f3958e5"
50
+ }
@@ -1,16 +1,12 @@
1
- // @flow strict-local
2
-
3
- import commander, {
4
- type commander$Command,
5
- type commander$Option,
6
- } from 'commander';
1
+ // @ts-expect-error TS2305
2
+ import commander, {commander$Command, commander$Option} from 'commander';
7
3
 
8
4
  export interface OptionsDefinition {
9
- [key: string]: string | mixed[] | commander$Option;
5
+ [key: string]: string | unknown[] | commander.Option;
10
6
  }
11
7
 
12
8
  export function applyOptions(
13
- cmd: commander$Command,
9
+ cmd: commander.Command,
14
10
  options: OptionsDefinition,
15
11
  ) {
16
12
  for (let opt in options) {
@@ -18,6 +14,7 @@ export function applyOptions(
18
14
  if (option instanceof commander.Option) {
19
15
  cmd.addOption(option);
20
16
  } else if (Array.isArray(option)) {
17
+ // @ts-expect-error TS2345
21
18
  cmd.option(opt, ...option);
22
19
  } else if (typeof option === 'string') {
23
20
  cmd.option(opt, option);
package/src/bin.js CHANGED
@@ -1,12 +1,2 @@
1
- #!/usr/bin/env node
2
-
3
- 'use strict';
4
-
5
- if (
6
- process.env.ATLASPACK_BUILD_ENV !== 'production' ||
7
- process.env.ATLASPACK_SELF_BUILD
8
- ) {
9
- require('@atlaspack/babel-register');
10
- }
11
-
12
- require('./cli');
1
+ // This file exists for atlaspack-link support
2
+ require('../bin/atlaspack.js');
@@ -1,5 +1,3 @@
1
- // @flow
2
-
3
1
  import {BuildError} from '@atlaspack/core';
4
2
  import {NodeFS} from '@atlaspack/fs';
5
3
  import {openInBrowser} from '@atlaspack/utils';
@@ -97,8 +95,7 @@ program.on('--help', function () {
97
95
  });
98
96
 
99
97
  // Override to output option description if argument was missing
100
- // $FlowFixMe[prop-missing]
101
- commander.Command.prototype.optionMissingArgument = function (option) {
98
+ commander.Command.prototype.optionMissingArgument = function (option: any) {
102
99
  INTERNAL_ORIGINAL_CONSOLE.error(
103
100
  "error: option `%s' argument missing",
104
101
  option.flags,
@@ -117,7 +114,9 @@ if (!args[2] || !program.commands.some((c) => c.name() === args[2])) {
117
114
 
118
115
  program.parse(args);
119
116
 
117
+ // @ts-expect-error TS7019
120
118
  function runCommand(...args) {
119
+ // @ts-expect-error TS2556
121
120
  run(...args).catch(handleUncaughtException);
122
121
  }
123
122
 
@@ -145,9 +144,11 @@ async function run(
145
144
  });
146
145
 
147
146
  let disposable = new Disposable();
148
- let unsubscribe: () => Promise<mixed>;
147
+ let unsubscribe: () => Promise<unknown>;
148
+ // @ts-expect-error TS7034
149
149
  let isExiting;
150
150
  async function exit(exitCode: number = 0) {
151
+ // @ts-expect-error TS7005
151
152
  if (isExiting) {
152
153
  return;
153
154
  }
@@ -160,7 +161,6 @@ async function run(
160
161
  }
161
162
 
162
163
  if (process.stdin.isTTY && process.stdin.isRaw) {
163
- // $FlowFixMe
164
164
  process.stdin.setRawMode(false);
165
165
  }
166
166
 
@@ -170,7 +170,6 @@ async function run(
170
170
 
171
171
  const isWatching = command.name() === 'watch' || command.name() === 'serve';
172
172
  if (process.stdin.isTTY) {
173
- // $FlowFixMe
174
173
  process.stdin.setRawMode(true);
175
174
  require('readline').emitKeypressEvents(process.stdin);
176
175
 
@@ -212,6 +211,7 @@ async function run(
212
211
  }
213
212
 
214
213
  if (isWatching) {
214
+ // @ts-expect-error TS7006
215
215
  ({unsubscribe} = await atlaspack.watch((err) => {
216
216
  if (err) {
217
217
  throw err;
@@ -243,7 +243,7 @@ async function run(
243
243
  } else {
244
244
  try {
245
245
  await atlaspack.run();
246
- } catch (err) {
246
+ } catch (err: any) {
247
247
  // If an exception is thrown during Atlaspack.build, it is given to reporters in a
248
248
  // buildFailure event, and has been shown to the user.
249
249
  if (!(err instanceof BuildError)) {
@@ -1,11 +1,9 @@
1
- // @flow strict-local
2
-
3
1
  import ThrowableDiagnostic from '@atlaspack/diagnostic';
4
2
  import {prettyDiagnostic} from '@atlaspack/utils';
5
3
  import {INTERNAL_ORIGINAL_CONSOLE} from '@atlaspack/logger';
6
4
  import chalk from 'chalk';
7
5
 
8
- export async function logUncaughtError(e: mixed) {
6
+ export async function logUncaughtError(e: unknown) {
9
7
  if (e instanceof ThrowableDiagnostic) {
10
8
  for (let diagnostic of e.diagnostics) {
11
9
  let {message, codeframe, stack, hints, documentation} =
@@ -31,13 +29,17 @@ export async function logUncaughtError(e: mixed) {
31
29
  }
32
30
 
33
31
  // A hack to definitely ensure we logged the uncaught exception
34
- await new Promise((resolve) => setTimeout(resolve, 100));
32
+ await new Promise(
33
+ (resolve: (result: Promise<undefined> | undefined) => void) =>
34
+ // @ts-expect-error TS2304
35
+ setTimeout(resolve, 100),
36
+ );
35
37
  }
36
38
 
37
- export async function handleUncaughtException(exception: mixed) {
39
+ export async function handleUncaughtException(exception: unknown) {
38
40
  try {
39
41
  await logUncaughtError(exception);
40
- } catch (err) {
42
+ } catch (err: any) {
41
43
  console.error(exception);
42
44
  console.error(err);
43
45
  }
@@ -1,20 +1,23 @@
1
- // @flow strict-local
2
-
3
1
  import {NodeFS} from '@atlaspack/fs';
4
2
  import logger from '@atlaspack/logger';
5
- import commander, {type commander$Command} from 'commander';
3
+ // @ts-expect-error TS2305
4
+ import commander, {commander$Command} from 'commander';
6
5
  import path from 'path';
7
- import {normalizeOptions, type Options} from './normalizeOptions';
6
+ import {normalizeOptions, Options} from './normalizeOptions';
8
7
  import type {CommandExt} from './normalizeOptions';
9
8
  import {applyOptions} from './applyOptions';
10
9
  import {commonOptions} from './options';
11
10
  import {handleUncaughtException} from './handleUncaughtException';
12
11
 
13
- export function makeDebugCommand(): commander$Command {
12
+ export function makeDebugCommand(): commander.Command {
14
13
  const debug = new commander.Command('debug').description(
15
14
  'Debug commands for atlaspack',
16
15
  );
17
- const getInstance = async (args, opts, command) => {
16
+ const getInstance = async (
17
+ args: Array<string>,
18
+ opts: Options,
19
+ command: CommandExt,
20
+ ) => {
18
21
  let entries = args;
19
22
 
20
23
  if (entries.length === 0) {
@@ -58,7 +61,7 @@ export function makeDebugCommand(): commander$Command {
58
61
  message: 'Done invalidating cache',
59
62
  origin: '@atlaspack/cli',
60
63
  });
61
- } catch (err) {
64
+ } catch (err: any) {
62
65
  handleUncaughtException(err);
63
66
  }
64
67
  });
@@ -77,11 +80,29 @@ export function makeDebugCommand(): commander$Command {
77
80
  origin: '@atlaspack/cli',
78
81
  });
79
82
  process.exit(0);
80
- } catch (err) {
83
+ } catch (err: any) {
81
84
  handleUncaughtException(err);
82
85
  }
83
86
  });
84
87
  applyOptions(buildAssetGraph, commonOptions);
85
88
 
89
+ const compactCache = debug
90
+ .command('compact-cache [input...]')
91
+ .description('Compact the cache')
92
+ .action(async (args: string[], opts: Options, command: CommandExt) => {
93
+ const atlaspack = await getInstance(args, opts, command);
94
+ try {
95
+ await atlaspack.unstable_compactCache();
96
+ logger.info({
97
+ message: 'Done compacting cache',
98
+ origin: '@atlaspack/cli',
99
+ });
100
+ process.exit(0);
101
+ } catch (err: any) {
102
+ handleUncaughtException(err);
103
+ }
104
+ });
105
+ applyOptions(compactCache, commonOptions);
106
+
86
107
  return debug;
87
108
  }
@@ -1,5 +1,3 @@
1
- // @flow strict-local
2
-
3
1
  import ThrowableDiagnostic from '@atlaspack/diagnostic';
4
2
  import commander from 'commander';
5
3
  import getPort from 'get-port';
@@ -37,6 +35,7 @@ export interface Options {
37
35
  trace?: boolean;
38
36
  cache?: boolean;
39
37
  cacheDir?: string;
38
+ projectRoot?: string;
40
39
  watchDir?: string;
41
40
  watchBackend?:
42
41
  | 'watchman'
@@ -49,7 +48,7 @@ export interface Options {
49
48
  logLevel?: LogLevel;
50
49
  profile?: boolean;
51
50
  contentHash?: boolean;
52
- featureFlag?: $Partial<FeatureFlags>;
51
+ featureFlag?: Partial<FeatureFlags>;
53
52
  optimize?: boolean;
54
53
  sourceMaps?: boolean;
55
54
  scopeHoist?: boolean;
@@ -59,10 +58,8 @@ export interface Options {
59
58
  target: string[];
60
59
  }
61
60
 
62
- // $FlowFixMe
63
61
  export interface CommandExt extends commander.Command, Options {}
64
62
 
65
- // $FlowFixMe
66
63
  function shouldUseProductionDefaults(command: CommandExt) {
67
64
  return command.name() === 'build' || command.production === true;
68
65
  }
@@ -86,6 +83,7 @@ export async function normalizeOptions(
86
83
 
87
84
  let https = !!command.https;
88
85
  if (command.cert != null && command.key != null) {
86
+ // @ts-expect-error TS2322
89
87
  https = {
90
88
  cert: command.cert,
91
89
  key: command.key,
@@ -104,7 +102,7 @@ export async function normalizeOptions(
104
102
  ) {
105
103
  try {
106
104
  port = await getPort({port, host});
107
- } catch (err) {
105
+ } catch (err: any) {
108
106
  throw new ThrowableDiagnostic({
109
107
  diagnostic: {
110
108
  message: `Could not get available port: ${err.message}`,
@@ -129,6 +127,7 @@ export async function normalizeOptions(
129
127
  if (command.name() === 'serve') {
130
128
  let {publicUrl} = command;
131
129
 
130
+ // @ts-expect-error TS2322
132
131
  serveOptions = {
133
132
  https,
134
133
  port,
@@ -154,7 +153,7 @@ export async function normalizeOptions(
154
153
 
155
154
  let additionalReporters = [
156
155
  {packageName: '@atlaspack/reporter-cli', resolveFrom: __filename},
157
- ...(command.reporter: Array<string>).map((packageName) => ({
156
+ ...(command.reporter as Array<string>).map((packageName) => ({
158
157
  packageName,
159
158
  resolveFrom: path.join(inputFS.cwd(), 'index'),
160
159
  })),
@@ -179,6 +178,7 @@ export async function normalizeOptions(
179
178
  return {
180
179
  shouldDisableCache: command.cache === false,
181
180
  cacheDir: command.cacheDir,
181
+ projectRoot: command.projectRoot,
182
182
  watchDir: command.watchDir,
183
183
  watchBackend: command.watchBackend,
184
184
  watchIgnore: command.watchIgnore,
@@ -186,6 +186,7 @@ export async function normalizeOptions(
186
186
  mode,
187
187
  hmrOptions,
188
188
  shouldContentHash: hmrOptions ? false : command.contentHash,
189
+ // @ts-expect-error TS2322
189
190
  serveOptions,
190
191
  targets: command.target.length > 0 ? command.target : null,
191
192
  shouldAutoInstall: command.autoinstall ?? true,
@@ -200,6 +201,7 @@ export async function normalizeOptions(
200
201
  detailedReport:
201
202
  command.detailedReport != null
202
203
  ? {
204
+ // @ts-expect-error TS2345
203
205
  assetsPerBundle: parseInt(command.detailedReport, 10),
204
206
  }
205
207
  : null,
@@ -1,5 +1,3 @@
1
- // @flow strict-local
2
-
3
1
  import {INTERNAL_ORIGINAL_CONSOLE} from '@atlaspack/logger';
4
2
  import commander from 'commander';
5
3
  import {DEFAULT_FEATURE_FLAGS} from '@atlaspack/feature-flags';
@@ -20,6 +18,7 @@ switch (process.platform) {
20
18
  watcherBackendChoices.push('watchman', 'windows');
21
19
  break;
22
20
  }
21
+ // @ts-expect-error TS2367
23
22
  case 'freebsd' || 'openbsd': {
24
23
  watcherBackendChoices.push('watchman');
25
24
  break;
@@ -35,6 +34,8 @@ export const commonOptions: OptionsDefinition = {
35
34
  '--config <path>':
36
35
  'specify which config to use. can be a path or a package name',
37
36
  '--cache-dir <path>': 'set the cache directory. defaults to ".parcel-cache"',
37
+ '--project-root <path>':
38
+ 'set the project root directory. defaults to nearest directory with lockfiles or version control, falls back to cwd',
38
39
  '--watch-dir <path>':
39
40
  'set the root watch directory. defaults to nearest lockfile or source control dir.',
40
41
  '--watch-ignore [path]': [
@@ -48,7 +49,7 @@ export const commonOptions: OptionsDefinition = {
48
49
  '--no-source-maps': 'disable sourcemaps',
49
50
  '--target [name]': [
50
51
  'only build given target(s)',
51
- (val, list) => list.concat([val]),
52
+ (val: any, list: any) => list.concat([val]),
52
53
  [],
53
54
  ],
54
55
  '--log-level <level>': new commander.Option(
@@ -67,7 +68,7 @@ export const commonOptions: OptionsDefinition = {
67
68
  ],
68
69
  '--reporter <name>': [
69
70
  'additional reporters to run',
70
- (val, acc) => {
71
+ (val: any, acc: any) => {
71
72
  acc.push(val);
72
73
  return acc;
73
74
  },
@@ -75,10 +76,11 @@ export const commonOptions: OptionsDefinition = {
75
76
  ],
76
77
  '--feature-flag <name=value>': [
77
78
  'sets the value of a feature flag',
78
- (value, previousValue) => {
79
+ (value: any, previousValue: any) => {
79
80
  let [name, val] = value.split('=');
80
81
  if (name in DEFAULT_FEATURE_FLAGS) {
81
82
  let featureFlagValue;
83
+ // @ts-expect-error TS7053
82
84
  if (typeof DEFAULT_FEATURE_FLAGS[name] === 'boolean') {
83
85
  if (val !== 'true' && val !== 'false') {
84
86
  throw new Error(
package/tsconfig.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "extends": "../../../tsconfig.json",
3
+ "include": ["src"]
4
+ }