just-task 1.12.0 → 1.14.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.
- package/lib/cache.d.ts +4 -3
- package/lib/cache.d.ts.map +1 -1
- package/lib/cache.js +6 -128
- package/lib/cli.js +2 -2
- package/lib/config.js +6 -6
- package/lib/enableTypeScript.js +2 -2
- package/lib/interfaces.d.ts +1 -0
- package/lib/interfaces.d.ts.map +1 -1
- package/lib/logger.d.ts +16 -1
- package/lib/logger.d.ts.map +1 -1
- package/lib/logger.js +52 -11
- package/lib/task.d.ts.map +1 -1
- package/lib/task.js +0 -10
- package/lib/undertaker.d.ts.map +1 -1
- package/lib/undertaker.js +0 -2
- package/package.json +1 -3
- package/src/cache.ts +5 -168
- package/src/cli.ts +1 -1
- package/src/config.ts +1 -1
- package/src/enableTypeScript.ts +1 -1
- package/src/interfaces.ts +1 -0
- package/src/logger.ts +85 -1
- package/src/task.ts +0 -10
- package/src/undertaker.ts +0 -3
- package/CHANGELOG.json +0 -1314
- package/CHANGELOG.md +0 -629
- package/lib/package/findDependents.d.ts +0 -7
- package/lib/package/findDependents.d.ts.map +0 -1
- package/lib/package/findDependents.js +0 -56
- package/lib/package/findGitRoot.d.ts +0 -2
- package/lib/package/findGitRoot.d.ts.map +0 -1
- package/lib/package/findGitRoot.js +0 -26
- package/lib/package/findPackageRoot.d.ts +0 -2
- package/lib/package/findPackageRoot.d.ts.map +0 -1
- package/lib/package/findPackageRoot.js +0 -11
- package/lib/paths.d.ts +0 -2
- package/lib/paths.d.ts.map +0 -1
- package/lib/paths.js +0 -9
- package/src/package/findDependents.ts +0 -68
- package/src/package/findGitRoot.ts +0 -28
- package/src/package/findPackageRoot.ts +0 -8
- package/src/paths.ts +0 -6
package/CHANGELOG.md
DELETED
|
@@ -1,629 +0,0 @@
|
|
|
1
|
-
# Change Log - just-task
|
|
2
|
-
|
|
3
|
-
<!-- This log was last generated on Fri, 28 Mar 2025 08:01:39 GMT and should not be manually modified. -->
|
|
4
|
-
|
|
5
|
-
<!-- Start content -->
|
|
6
|
-
|
|
7
|
-
## 1.12.0
|
|
8
|
-
|
|
9
|
-
Fri, 28 Mar 2025 08:01:39 GMT
|
|
10
|
-
|
|
11
|
-
### Minor changes
|
|
12
|
-
|
|
13
|
-
- Build with TypeScript 4.5 (elcraig@microsoft.com)
|
|
14
|
-
- Bump just-task-logger to v1.3.0
|
|
15
|
-
|
|
16
|
-
## 1.11.0
|
|
17
|
-
|
|
18
|
-
Tue, 10 Dec 2024 22:22:46 GMT
|
|
19
|
-
|
|
20
|
-
### Minor changes
|
|
21
|
-
|
|
22
|
-
- Add .cjs config support (tigeroakes@microsoft.com)
|
|
23
|
-
|
|
24
|
-
## 1.10.0
|
|
25
|
-
|
|
26
|
-
Tue, 26 Mar 2024 00:12:38 GMT
|
|
27
|
-
|
|
28
|
-
### Minor changes
|
|
29
|
-
|
|
30
|
-
- Update dependency undertaker to v2 (email not defined)
|
|
31
|
-
|
|
32
|
-
## 1.9.0
|
|
33
|
-
|
|
34
|
-
Sat, 02 Mar 2024 02:16:34 GMT
|
|
35
|
-
|
|
36
|
-
### Minor changes
|
|
37
|
-
|
|
38
|
-
- Add an option --esm to support imports of ESM packages (elcraig@microsoft.com)
|
|
39
|
-
|
|
40
|
-
## 1.8.0
|
|
41
|
-
|
|
42
|
-
Tue, 12 Sep 2023 08:02:05 GMT
|
|
43
|
-
|
|
44
|
-
### Minor changes
|
|
45
|
-
|
|
46
|
-
- Add `@types` referenced by exports as dependencies (elcraig@microsoft.com)
|
|
47
|
-
|
|
48
|
-
### Patches
|
|
49
|
-
|
|
50
|
-
- Update dependency @rushstack/package-deps-hash to v4 (email not defined)
|
|
51
|
-
- Update dependency fs-extra to v11 (renovate@whitesourcesoftware.com)
|
|
52
|
-
|
|
53
|
-
## 1.7.2
|
|
54
|
-
|
|
55
|
-
Fri, 10 Mar 2023 08:01:53 GMT
|
|
56
|
-
|
|
57
|
-
### Patches
|
|
58
|
-
|
|
59
|
-
- Update readmes and homepage links (elcraig@microsoft.com)
|
|
60
|
-
|
|
61
|
-
## 1.7.1
|
|
62
|
-
|
|
63
|
-
Thu, 09 Mar 2023 08:02:09 GMT
|
|
64
|
-
|
|
65
|
-
### Patches
|
|
66
|
-
|
|
67
|
-
- Remove an incorrect reference to `yargs` types (elcraig@microsoft.com)
|
|
68
|
-
- Bump just-task-logger to v1.2.1
|
|
69
|
-
|
|
70
|
-
## 1.7.0
|
|
71
|
-
|
|
72
|
-
Fri, 18 Nov 2022 22:40:12 GMT
|
|
73
|
-
|
|
74
|
-
### Minor changes
|
|
75
|
-
|
|
76
|
-
- Require Node 14 (elcraig@microsoft.com)
|
|
77
|
-
- Bump just-task-logger to v1.2.0
|
|
78
|
-
|
|
79
|
-
## 1.6.1
|
|
80
|
-
|
|
81
|
-
Fri, 16 Sep 2022 08:02:22 GMT
|
|
82
|
-
|
|
83
|
-
### Patches
|
|
84
|
-
|
|
85
|
-
- Update dependency bach to v2 (email not defined)
|
|
86
|
-
|
|
87
|
-
## 1.6.0
|
|
88
|
-
|
|
89
|
-
Sat, 10 Sep 2022 08:02:45 GMT
|
|
90
|
-
|
|
91
|
-
### Minor changes
|
|
92
|
-
|
|
93
|
-
- Fix type of OptionConfig.default (elcraig@microsoft.com)
|
|
94
|
-
|
|
95
|
-
### Patches
|
|
96
|
-
|
|
97
|
-
- Update dependency fs-extra to v10 (email not defined)
|
|
98
|
-
- Update dependency undertaker-registry to v2 (email not defined)
|
|
99
|
-
|
|
100
|
-
## 1.5.1
|
|
101
|
-
|
|
102
|
-
Sat, 10 Sep 2022 00:19:03 GMT
|
|
103
|
-
|
|
104
|
-
### Patches
|
|
105
|
-
|
|
106
|
-
- Specify Node 12+ engines requirement (elcraig@microsoft.com)
|
|
107
|
-
- Bump just-task-logger to v1.1.2
|
|
108
|
-
|
|
109
|
-
## 1.5.0
|
|
110
|
-
|
|
111
|
-
Thu, 31 Mar 2022 17:04:30 GMT
|
|
112
|
-
|
|
113
|
-
### Minor changes
|
|
114
|
-
|
|
115
|
-
- Upgrading package-deps-hash to latest major to remove transitive security vulnerability in validator package. (dzearing@microsoft.com)
|
|
116
|
-
|
|
117
|
-
## 1.4.2
|
|
118
|
-
|
|
119
|
-
Fri, 10 Sep 2021 23:58:46 GMT
|
|
120
|
-
|
|
121
|
-
### Patches
|
|
122
|
-
|
|
123
|
-
- changes the dep from glob-parent which is old with chokidar directly (kchau@microsoft.com)
|
|
124
|
-
|
|
125
|
-
## 1.4.1
|
|
126
|
-
|
|
127
|
-
Thu, 15 Apr 2021 19:00:12 GMT
|
|
128
|
-
|
|
129
|
-
### Patches
|
|
130
|
-
|
|
131
|
-
- adding a check to make sure the tasks are registered only for task functions (kchau@microsoft.com)
|
|
132
|
-
|
|
133
|
-
## 1.4.0
|
|
134
|
-
|
|
135
|
-
Fri, 02 Apr 2021 23:21:50 GMT
|
|
136
|
-
|
|
137
|
-
### Minor changes
|
|
138
|
-
|
|
139
|
-
- just now accepts ES6 module as config (kchau@microsoft.com)
|
|
140
|
-
|
|
141
|
-
## 1.3.0
|
|
142
|
-
|
|
143
|
-
Sat, 20 Mar 2021 00:45:10 GMT
|
|
144
|
-
|
|
145
|
-
### Minor changes
|
|
146
|
-
|
|
147
|
-
- adds a watch() API that will generate taskfunction that watches (kchau@microsoft.com)
|
|
148
|
-
|
|
149
|
-
## 1.2.0
|
|
150
|
-
|
|
151
|
-
Tue, 26 Jan 2021 23:51:57 GMT
|
|
152
|
-
|
|
153
|
-
### Minor changes
|
|
154
|
-
|
|
155
|
-
- Add support for default config override (dannyvv@microsoft.com)
|
|
156
|
-
|
|
157
|
-
## 1.1.1
|
|
158
|
-
|
|
159
|
-
Thu, 14 Jan 2021 20:55:06 GMT
|
|
160
|
-
|
|
161
|
-
### Patches
|
|
162
|
-
|
|
163
|
-
- fixing release pipeline and the empty lib folder (kchau@microsoft.com)
|
|
164
|
-
|
|
165
|
-
## 1.1.0
|
|
166
|
-
|
|
167
|
-
Wed, 13 Jan 2021 23:22:52 GMT
|
|
168
|
-
|
|
169
|
-
### Minor changes
|
|
170
|
-
|
|
171
|
-
- Update typescript and other dependencies (elcraig@microsoft.com)
|
|
172
|
-
|
|
173
|
-
### Patches
|
|
174
|
-
|
|
175
|
-
- exit code 1 for unknown just command (kchau@microsoft.com)
|
|
176
|
-
- Bump just-task-logger to v1.1.0 (elcraig@microsoft.com)
|
|
177
|
-
|
|
178
|
-
## 1.0.2
|
|
179
|
-
|
|
180
|
-
Mon, 02 Nov 2020 16:42:46 GMT
|
|
181
|
-
|
|
182
|
-
### Patches
|
|
183
|
-
|
|
184
|
-
- Bump yargs dependency (1581488+christiango@users.noreply.github.com)
|
|
185
|
-
|
|
186
|
-
## 1.0.1
|
|
187
|
-
|
|
188
|
-
Mon, 02 Nov 2020 16:26:27 GMT
|
|
189
|
-
|
|
190
|
-
### Patches
|
|
191
|
-
|
|
192
|
-
- Publish src folder (1581488+christiango@users.noreply.github.com)
|
|
193
|
-
|
|
194
|
-
## 1.0.0
|
|
195
|
-
|
|
196
|
-
Tue, 06 Oct 2020 23:06:25 GMT
|
|
197
|
-
|
|
198
|
-
### Major changes
|
|
199
|
-
|
|
200
|
-
- removed just-stack-* (kchau@microsoft.com)
|
|
201
|
-
|
|
202
|
-
### Patches
|
|
203
|
-
|
|
204
|
-
- Remove implicit SDI usage (darthtrevino@gmail.com)
|
|
205
|
-
- fixes publish (kchau@microsoft.com)
|
|
206
|
-
|
|
207
|
-
## 0.17.0
|
|
208
|
-
|
|
209
|
-
Tue, 02 Jun 2020 20:33:23 GMT
|
|
210
|
-
|
|
211
|
-
### Minor changes
|
|
212
|
-
|
|
213
|
-
- resolve: add extensions option (elcraig@microsoft.com)
|
|
214
|
-
|
|
215
|
-
## 0.16.0
|
|
216
|
-
Fri, 24 Apr 2020 17:48:46 GMT
|
|
217
|
-
|
|
218
|
-
### Minor changes
|
|
219
|
-
|
|
220
|
-
- Resolve from custom resolve paths before Just location (email not defined)
|
|
221
|
-
## 0.15.1
|
|
222
|
-
Fri, 24 Apr 2020 16:46:48 GMT
|
|
223
|
-
|
|
224
|
-
### Patches
|
|
225
|
-
|
|
226
|
-
- change target in enableTypeScript (imjuni@gmail.com)
|
|
227
|
-
## 0.15.0
|
|
228
|
-
Fri, 10 Apr 2020 20:34:02 GMT
|
|
229
|
-
|
|
230
|
-
### Minor changes
|
|
231
|
-
|
|
232
|
-
- Replace yargs with yargs-parser, taking over the command parsing (kchau@microsoft.com)
|
|
233
|
-
## 0.14.3
|
|
234
|
-
Mon, 11 Nov 2019 21:09:42 GMT
|
|
235
|
-
|
|
236
|
-
### Patches
|
|
237
|
-
|
|
238
|
-
- Show full stack on config file errors (elcraig@microsoft.com)
|
|
239
|
-
## 0.14.2
|
|
240
|
-
Fri, 18 Oct 2019 21:58:37 GMT
|
|
241
|
-
|
|
242
|
-
### Patches
|
|
243
|
-
|
|
244
|
-
- esModuleInterop is important to have as true (kchau@microsoft.com)
|
|
245
|
-
## 0.14.1
|
|
246
|
-
Fri, 18 Oct 2019 21:33:45 GMT
|
|
247
|
-
|
|
248
|
-
### Patches
|
|
249
|
-
|
|
250
|
-
- use full resolve logic for ts-node (kchau@microsoft.com)
|
|
251
|
-
## 0.14.0
|
|
252
|
-
Fri, 18 Oct 2019 19:52:03 GMT
|
|
253
|
-
|
|
254
|
-
### Minor changes
|
|
255
|
-
|
|
256
|
-
- adds support for typescript just.config.ts (kchau@microsoft.com)
|
|
257
|
-
## 0.13.3
|
|
258
|
-
Mon, 16 Sep 2019 19:57:52 GMT
|
|
259
|
-
|
|
260
|
-
### Patches
|
|
261
|
-
|
|
262
|
-
- Remove void from task() return type (elcraig@microsoft.com)
|
|
263
|
-
## 0.13.2
|
|
264
|
-
Mon, 26 Aug 2019 22:53:18 GMT
|
|
265
|
-
|
|
266
|
-
### Patches
|
|
267
|
-
|
|
268
|
-
- caching algo changed so it is faster (kchau@microsoft.com)
|
|
269
|
-
## 0.13.1
|
|
270
|
-
Mon, 22 Jul 2019 20:51:44 GMT
|
|
271
|
-
|
|
272
|
-
### Patches
|
|
273
|
-
|
|
274
|
-
- fail the build if it has invalid config (kchau@microsoft.com)
|
|
275
|
-
|
|
276
|
-
## 0.13.0
|
|
277
|
-
Thu, 11 Jul 2019 19:35:28 GMT
|
|
278
|
-
|
|
279
|
-
### Minor changes
|
|
280
|
-
|
|
281
|
-
- returns a wrapped task even when doing a task('foo', 'bar') form (kchau@microsoft.com)
|
|
282
|
-
|
|
283
|
-
## 0.12.2
|
|
284
|
-
Thu, 11 Jul 2019 17:08:46 GMT
|
|
285
|
-
|
|
286
|
-
### Patches
|
|
287
|
-
|
|
288
|
-
- speeding up build cache (kchau@microsoft.com)
|
|
289
|
-
|
|
290
|
-
## 0.12.1
|
|
291
|
-
Fri, 05 Jul 2019 16:59:55 GMT
|
|
292
|
-
|
|
293
|
-
### Patches
|
|
294
|
-
|
|
295
|
-
- Uppercase the S in TypeScript (orta.therox@gmail.com)
|
|
296
|
-
|
|
297
|
-
## 0.12.0
|
|
298
|
-
Thu, 04 Jul 2019 02:04:13 GMT
|
|
299
|
-
|
|
300
|
-
### Minor changes
|
|
301
|
-
|
|
302
|
-
- added a no-op detection for packages that aren't build and have no scripts (kchau@microsoft.com)
|
|
303
|
-
|
|
304
|
-
## 0.11.3
|
|
305
|
-
Tue, 02 Jul 2019 20:19:42 GMT
|
|
306
|
-
|
|
307
|
-
### Patches
|
|
308
|
-
|
|
309
|
-
- making build cache more accurately determine deps that aren't using just (kchau@microsoft.com)
|
|
310
|
-
|
|
311
|
-
## 0.11.2
|
|
312
|
-
Mon, 01 Jul 2019 20:15:20 GMT
|
|
313
|
-
|
|
314
|
-
### Patches
|
|
315
|
-
|
|
316
|
-
- introduce ESLint to sources (43081j@users.noreply.github.com)
|
|
317
|
-
|
|
318
|
-
## 0.11.1
|
|
319
|
-
Mon, 01 Jul 2019 18:55:04 GMT
|
|
320
|
-
|
|
321
|
-
### Patches
|
|
322
|
-
|
|
323
|
-
- fixes build cache so packages can have different path name than package name (kchau@microsoft.com)
|
|
324
|
-
|
|
325
|
-
## 0.11.0
|
|
326
|
-
Thu, 13 Jun 2019 21:16:34 GMT
|
|
327
|
-
|
|
328
|
-
### Minor
|
|
329
|
-
|
|
330
|
-
- adds a bit more rigor to support build deps invalidation of cache (kchau@microsoft.com)
|
|
331
|
-
|
|
332
|
-
## 0.10.0
|
|
333
|
-
Tue, 04 Jun 2019 15:55:03 GMT
|
|
334
|
-
|
|
335
|
-
### Minor changes
|
|
336
|
-
|
|
337
|
-
- Adds cache capability
|
|
338
|
-
|
|
339
|
-
## 0.9.9
|
|
340
|
-
Wed, 15 May 2019 18:44:04 GMT
|
|
341
|
-
|
|
342
|
-
### Patches
|
|
343
|
-
|
|
344
|
-
- Switch microsoft in repo URL to lowercase
|
|
345
|
-
|
|
346
|
-
## 0.9.8
|
|
347
|
-
Tue, 14 May 2019 17:59:20 GMT
|
|
348
|
-
|
|
349
|
-
### Patches
|
|
350
|
-
|
|
351
|
-
- Adds __dirname resolve as last resort
|
|
352
|
-
|
|
353
|
-
## 0.9.7
|
|
354
|
-
Fri, 10 May 2019 17:53:27 GMT
|
|
355
|
-
|
|
356
|
-
### Patches
|
|
357
|
-
|
|
358
|
-
- Adds validation of command and a friendlier error message
|
|
359
|
-
|
|
360
|
-
## 0.9.6
|
|
361
|
-
Fri, 03 May 2019 19:49:20 GMT
|
|
362
|
-
|
|
363
|
-
### Patches
|
|
364
|
-
|
|
365
|
-
- Show error message if it's a string
|
|
366
|
-
|
|
367
|
-
## 0.9.5
|
|
368
|
-
Wed, 01 May 2019 16:12:57 GMT
|
|
369
|
-
|
|
370
|
-
### Patches
|
|
371
|
-
|
|
372
|
-
- Export the chain API from the root as well
|
|
373
|
-
|
|
374
|
-
## 0.9.4
|
|
375
|
-
Mon, 29 Apr 2019 21:46:55 GMT
|
|
376
|
-
|
|
377
|
-
### Patches
|
|
378
|
-
|
|
379
|
-
- More explicit error logs
|
|
380
|
-
|
|
381
|
-
## 0.9.3
|
|
382
|
-
Thu, 25 Apr 2019 22:19:05 GMT
|
|
383
|
-
|
|
384
|
-
### Patches
|
|
385
|
-
|
|
386
|
-
- really get rid of deprecation warning
|
|
387
|
-
|
|
388
|
-
## 0.9.2
|
|
389
|
-
Thu, 25 Apr 2019 21:21:58 GMT
|
|
390
|
-
|
|
391
|
-
### Patches
|
|
392
|
-
|
|
393
|
-
- get rid of logs with the wrapped task
|
|
394
|
-
|
|
395
|
-
## 0.9.1
|
|
396
|
-
Thu, 25 Apr 2019 18:29:49 GMT
|
|
397
|
-
|
|
398
|
-
### Patches
|
|
399
|
-
|
|
400
|
-
- gets rid of dep0097 warnings when running just tasks
|
|
401
|
-
|
|
402
|
-
## 0.9.0
|
|
403
|
-
Wed, 17 Apr 2019 00:09:58 GMT
|
|
404
|
-
|
|
405
|
-
### Minor changes
|
|
406
|
-
|
|
407
|
-
- Adds API to allow injecting a task after task has been registered
|
|
408
|
-
|
|
409
|
-
## 0.8.1
|
|
410
|
-
Sun, 24 Feb 2019 04:07:27 GMT
|
|
411
|
-
|
|
412
|
-
### Patches
|
|
413
|
-
|
|
414
|
-
- Fix breaks caused by just-task resolve using the same yargs instance to check config path
|
|
415
|
-
|
|
416
|
-
## 0.8.0
|
|
417
|
-
Fri, 22 Feb 2019 23:37:36 GMT
|
|
418
|
-
|
|
419
|
-
### Minor changes
|
|
420
|
-
|
|
421
|
-
- Consistent interface naming
|
|
422
|
-
|
|
423
|
-
## 0.7.10
|
|
424
|
-
Fri, 22 Feb 2019 19:03:38 GMT
|
|
425
|
-
|
|
426
|
-
### Patches
|
|
427
|
-
|
|
428
|
-
- Update package metadata
|
|
429
|
-
|
|
430
|
-
## 0.7.9
|
|
431
|
-
Fri, 22 Feb 2019 16:58:03 GMT
|
|
432
|
-
|
|
433
|
-
### Patches
|
|
434
|
-
|
|
435
|
-
- Tests and docs for resolve
|
|
436
|
-
|
|
437
|
-
## 0.7.8
|
|
438
|
-
Thu, 21 Feb 2019 23:25:53 GMT
|
|
439
|
-
|
|
440
|
-
### Patches
|
|
441
|
-
|
|
442
|
-
- Use new logger package
|
|
443
|
-
|
|
444
|
-
## 0.7.7
|
|
445
|
-
Wed, 20 Feb 2019 23:17:15 GMT
|
|
446
|
-
|
|
447
|
-
### Patches
|
|
448
|
-
|
|
449
|
-
- Lock some dep versions
|
|
450
|
-
|
|
451
|
-
## 0.7.6
|
|
452
|
-
Tue, 22 Jan 2019 21:28:18 GMT
|
|
453
|
-
|
|
454
|
-
### Patches
|
|
455
|
-
|
|
456
|
-
- deps update
|
|
457
|
-
|
|
458
|
-
## 0.7.5
|
|
459
|
-
Sat, 05 Jan 2019 20:47:28 GMT
|
|
460
|
-
|
|
461
|
-
### Patches
|
|
462
|
-
|
|
463
|
-
- Fixed: make sure to display list of tasks that didn't complete
|
|
464
|
-
|
|
465
|
-
## 0.7.4
|
|
466
|
-
Sat, 05 Jan 2019 19:16:15 GMT
|
|
467
|
-
|
|
468
|
-
### Patches
|
|
469
|
-
|
|
470
|
-
- Fixed: set proper exit code for cases where task function exits the process before top level task is reached
|
|
471
|
-
|
|
472
|
-
## 0.7.3
|
|
473
|
-
Sat, 15 Dec 2018 04:42:57 GMT
|
|
474
|
-
|
|
475
|
-
### Patches
|
|
476
|
-
|
|
477
|
-
- fix bugs with config file search
|
|
478
|
-
|
|
479
|
-
## 0.7.2
|
|
480
|
-
Thu, 13 Dec 2018 23:56:45 GMT
|
|
481
|
-
|
|
482
|
-
### Patches
|
|
483
|
-
|
|
484
|
-
- Fixed: config file argument now works again
|
|
485
|
-
|
|
486
|
-
## 0.7.1
|
|
487
|
-
Thu, 13 Dec 2018 18:16:47 GMT
|
|
488
|
-
|
|
489
|
-
### Patches
|
|
490
|
-
|
|
491
|
-
- Fixed a bug with the new thunk replacement of just returning a function
|
|
492
|
-
|
|
493
|
-
## 0.7.0
|
|
494
|
-
Wed, 12 Dec 2018 18:57:17 GMT
|
|
495
|
-
|
|
496
|
-
### Minor changes
|
|
497
|
-
|
|
498
|
-
- Get rid of thunk API
|
|
499
|
-
|
|
500
|
-
## 0.6.1
|
|
501
|
-
Wed, 12 Dec 2018 03:04:50 GMT
|
|
502
|
-
|
|
503
|
-
### Patches
|
|
504
|
-
|
|
505
|
-
- Fixed resolution logic
|
|
506
|
-
|
|
507
|
-
## 0.6.0
|
|
508
|
-
Sun, 09 Dec 2018 23:01:57 GMT
|
|
509
|
-
|
|
510
|
-
### Minor changes
|
|
511
|
-
|
|
512
|
-
- Adds thunk and condition meta functions
|
|
513
|
-
|
|
514
|
-
## 0.5.0
|
|
515
|
-
Sat, 08 Dec 2018 04:58:33 GMT
|
|
516
|
-
|
|
517
|
-
### Minor changes
|
|
518
|
-
|
|
519
|
-
- streamlines API so the logger is not from the this context
|
|
520
|
-
|
|
521
|
-
## 0.4.2
|
|
522
|
-
Fri, 07 Dec 2018 22:20:28 GMT
|
|
523
|
-
|
|
524
|
-
### Patches
|
|
525
|
-
|
|
526
|
-
- fix: pass the right argv to the consumers
|
|
527
|
-
|
|
528
|
-
## 0.4.1
|
|
529
|
-
Fri, 07 Dec 2018 22:10:50 GMT
|
|
530
|
-
|
|
531
|
-
### Patches
|
|
532
|
-
|
|
533
|
-
- fix: makes conditon() work with series and parallel
|
|
534
|
-
|
|
535
|
-
## 0.4.0
|
|
536
|
-
Fri, 07 Dec 2018 18:17:23 GMT
|
|
537
|
-
|
|
538
|
-
### Minor changes
|
|
539
|
-
|
|
540
|
-
- Adds a 'condition' task function that can decide whether to skip task or not
|
|
541
|
-
|
|
542
|
-
## 0.3.1
|
|
543
|
-
Fri, 07 Dec 2018 17:16:09 GMT
|
|
544
|
-
|
|
545
|
-
### Patches
|
|
546
|
-
|
|
547
|
-
- Adds resilience to CLI script
|
|
548
|
-
|
|
549
|
-
## 0.3.0
|
|
550
|
-
Wed, 05 Dec 2018 22:16:09 GMT
|
|
551
|
-
|
|
552
|
-
### Minor changes
|
|
553
|
-
|
|
554
|
-
- Rename rig bin script to just
|
|
555
|
-
|
|
556
|
-
## 0.2.0
|
|
557
|
-
Wed, 05 Dec 2018 22:01:31 GMT
|
|
558
|
-
|
|
559
|
-
### Minor changes
|
|
560
|
-
|
|
561
|
-
- Renamed to just
|
|
562
|
-
|
|
563
|
-
## 1.2.6
|
|
564
|
-
Tue, 04 Dec 2018 06:13:37 GMT
|
|
565
|
-
|
|
566
|
-
### Patches
|
|
567
|
-
|
|
568
|
-
- Fixes globally installed just-task to check for local copy
|
|
569
|
-
|
|
570
|
-
## 1.2.5
|
|
571
|
-
Tue, 04 Dec 2018 05:15:26 GMT
|
|
572
|
-
|
|
573
|
-
### Patches
|
|
574
|
-
|
|
575
|
-
- Fixed help command to actually list commands
|
|
576
|
-
|
|
577
|
-
## 1.2.4
|
|
578
|
-
Mon, 03 Dec 2018 22:48:20 GMT
|
|
579
|
-
|
|
580
|
-
### Patches
|
|
581
|
-
|
|
582
|
-
- better failure logging and documentation
|
|
583
|
-
|
|
584
|
-
## 1.2.3
|
|
585
|
-
Mon, 03 Dec 2018 22:24:03 GMT
|
|
586
|
-
|
|
587
|
-
### Patches
|
|
588
|
-
|
|
589
|
-
- Fixed default tasks
|
|
590
|
-
|
|
591
|
-
## 1.2.2
|
|
592
|
-
Mon, 03 Dec 2018 22:04:01 GMT
|
|
593
|
-
|
|
594
|
-
### Patches
|
|
595
|
-
|
|
596
|
-
- Adding tests
|
|
597
|
-
|
|
598
|
-
## 1.2.1
|
|
599
|
-
Mon, 03 Dec 2018 18:39:51 GMT
|
|
600
|
-
|
|
601
|
-
### Patches
|
|
602
|
-
|
|
603
|
-
- Adds better failure logging messages
|
|
604
|
-
|
|
605
|
-
## 1.2.0
|
|
606
|
-
Mon, 03 Dec 2018 06:31:09 GMT
|
|
607
|
-
|
|
608
|
-
### Minor changes
|
|
609
|
-
|
|
610
|
-
- Adds default task support
|
|
611
|
-
|
|
612
|
-
## 1.1.0
|
|
613
|
-
Mon, 03 Dec 2018 05:18:13 GMT
|
|
614
|
-
|
|
615
|
-
### Minor changes
|
|
616
|
-
|
|
617
|
-
- Added some readme and add support for yargs command module in task definition
|
|
618
|
-
|
|
619
|
-
## 1.0.1
|
|
620
|
-
Mon, 03 Dec 2018 00:54:11 GMT
|
|
621
|
-
|
|
622
|
-
### Patches
|
|
623
|
-
|
|
624
|
-
- adding blank line to test publish
|
|
625
|
-
|
|
626
|
-
## 1.0.0
|
|
627
|
-
Sun, 02 Dec 2018 03:50:30 GMT
|
|
628
|
-
|
|
629
|
-
*Initial release*
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findDependents.d.ts","sourceRoot":"","sources":["../../src/package/findDependents.ts"],"names":[],"mappings":"AAQA,UAAU,OAAO;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,cAAc,IAAI,GAAG,CAAC,OAAO,CAAC,CAK7C"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findDependents = void 0;
|
|
4
|
-
const fs = require("fs");
|
|
5
|
-
const path = require("path");
|
|
6
|
-
const resolve_1 = require("../resolve");
|
|
7
|
-
const findPackageRoot_1 = require("./findPackageRoot");
|
|
8
|
-
const just_task_logger_1 = require("just-task-logger");
|
|
9
|
-
const findGitRoot_1 = require("./findGitRoot");
|
|
10
|
-
const paths_1 = require("../paths");
|
|
11
|
-
function findDependents() {
|
|
12
|
-
(0, just_task_logger_1.mark)('cache:findDependents');
|
|
13
|
-
const results = collectAllDependentPaths((0, findPackageRoot_1.findPackageRoot)());
|
|
14
|
-
just_task_logger_1.logger.perf('cache:findDependents');
|
|
15
|
-
return results;
|
|
16
|
-
}
|
|
17
|
-
exports.findDependents = findDependents;
|
|
18
|
-
function getDepsPaths(pkgPath) {
|
|
19
|
-
const gitRoot = (0, findGitRoot_1.findGitRoot)();
|
|
20
|
-
const packageJsonFile = path.join(pkgPath, 'package.json');
|
|
21
|
-
try {
|
|
22
|
-
const packageJson = JSON.parse(fs.readFileSync(packageJsonFile).toString());
|
|
23
|
-
let deps = [];
|
|
24
|
-
deps = [
|
|
25
|
-
...deps,
|
|
26
|
-
...(packageJson.dependencies ? Object.keys(packageJson.dependencies) : []),
|
|
27
|
-
...(packageJson.devDependencies ? Object.keys(packageJson.devDependencies) : []),
|
|
28
|
-
];
|
|
29
|
-
return deps
|
|
30
|
-
.map(dep => {
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
32
|
-
const depPackageJson = (0, resolve_1.resolveCwd)(path.join(dep, 'package.json'));
|
|
33
|
-
if (!depPackageJson) {
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return { name: dep, path: path.dirname(fs.realpathSync(depPackageJson)) };
|
|
37
|
-
})
|
|
38
|
-
.filter(p => p && p.path.indexOf('node_modules') === -1 && (0, paths_1.isChildOf)(p.path, gitRoot));
|
|
39
|
-
}
|
|
40
|
-
catch (e) {
|
|
41
|
-
just_task_logger_1.logger.error(`Invalid package.json detected at ${packageJsonFile} `, e);
|
|
42
|
-
return [];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function collectAllDependentPaths(pkgPath, collected = new Set()) {
|
|
46
|
-
(0, just_task_logger_1.mark)(`collectAllDependentPaths:${pkgPath}`);
|
|
47
|
-
const depPaths = getDepsPaths(pkgPath);
|
|
48
|
-
depPaths.forEach(depPath => collected.add(depPath));
|
|
49
|
-
for (const depPath of depPaths) {
|
|
50
|
-
if (!collected.has(depPath)) {
|
|
51
|
-
collectAllDependentPaths(depPath.path, collected);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
just_task_logger_1.logger.perf(`collectAllDependentPaths:${pkgPath}`);
|
|
55
|
-
return collected;
|
|
56
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findGitRoot.d.ts","sourceRoot":"","sources":["../../src/package/findGitRoot.ts"],"names":[],"mappings":"AAKA,wBAAgB,WAAW,IAAI,MAAM,CAsBpC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.findGitRoot = void 0;
|
|
4
|
-
const path = require("path");
|
|
5
|
-
const fs = require("fs-extra");
|
|
6
|
-
let gitRootCache = '';
|
|
7
|
-
function findGitRoot() {
|
|
8
|
-
if (gitRootCache) {
|
|
9
|
-
return gitRootCache;
|
|
10
|
-
}
|
|
11
|
-
let cwd = process.cwd();
|
|
12
|
-
const root = path.parse(cwd).root;
|
|
13
|
-
let found = false;
|
|
14
|
-
while (!found && cwd !== root) {
|
|
15
|
-
if (fs.pathExistsSync(path.join(cwd, '.git'))) {
|
|
16
|
-
found = true;
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
cwd = path.dirname(cwd);
|
|
20
|
-
}
|
|
21
|
-
if (found) {
|
|
22
|
-
gitRootCache = path.join(cwd);
|
|
23
|
-
}
|
|
24
|
-
return gitRootCache;
|
|
25
|
-
}
|
|
26
|
-
exports.findGitRoot = findGitRoot;
|