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