@monorepolint/rules 0.5.0-alpha.107 → 0.5.0-alpha.108

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.
@@ -4,24 +4,24 @@
4
4
 
5
5
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
6
6
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
7
- (node:2976) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
7
+ (node:3015) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
8
8
  (Use `node --trace-warnings ...` to show where the warning was created)
9
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (5.645 s)
9
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (5.778 s)
10
10
  mustSatisfyPeerDependencies
11
11
  ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
12
- ✓ Flags conflicting peer dependencies (3 ms)
13
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (3 ms)
12
+ ✓ Flags conflicting peer dependencies (4 ms)
13
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
14
14
  ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
15
15
  ✓ Flags unsatisfied peer dependencies (test package has peer dep) (3 ms)
16
16
  ✓ Honors dependencyWhitelist (3 ms)
17
- ✓ Honors dependencyBlacklist (2 ms)
17
+ ✓ Honors dependencyBlacklist (3 ms)
18
18
  regex tests
19
- ✓ Properly matches any version range regex (16 ms)
20
- ✓ Properly matches greator or equal version range regex (11 ms)
21
- ✓ Properly matches major version range regex (6 ms)
22
- ✓ Properly matches allowed range regex (11 ms)
19
+ ✓ Properly matches any version range regex (18 ms)
20
+ ✓ Properly matches greator or equal version range regex (14 ms)
21
+ ✓ Properly matches major version range regex (8 ms)
22
+ ✓ Properly matches allowed range regex (13 ms)
23
23
  Determines dependencies satisfaction correctly
24
- ✓ version is version (1 ms)
24
+ ✓ version is version (2 ms)
25
25
  ✓ version satisfies a range (3 ms)
26
26
  ✓ higher version satisfies a range (2 ms)
27
27
  ✓ version satisfies a greator or equal version range (1 ms)
@@ -29,30 +29,30 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
29
29
  ✓ version satisfies 'any' range (1 ms)
30
30
  ✓ greator or equal version range satisfies 'any' range (2 ms)
31
31
  ✓ range satisfies 'any' range (1 ms)
32
- ✓ union range satisfies 'any' range (1 ms)
32
+ ✓ union range satisfies 'any' range
33
33
  ✓ version found in union start (1 ms)
34
34
  ✓ version found in union end (1 ms)
35
35
  ✓ version satisfies a range in union start (1 ms)
36
- ✓ version satisfies a range in union end
37
- ✓ higher version satisfies a range in union start
38
- ✓ higher version satisfies a range in union end
36
+ ✓ version satisfies a range in union end (1 ms)
37
+ ✓ higher version satisfies a range in union start (1 ms)
38
+ ✓ higher version satisfies a range in union end (1 ms)
39
39
  ✓ range found in union start (1 ms)
40
40
  ✓ range found in union end (1 ms)
41
41
  ✓ union satisfies greator or equal version range (1 ms)
42
42
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
43
- ✓ equivalent greator or equal version ranges satisfy each other
44
- ✓ higher range satisfies a range in union start
43
+ ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
44
+ ✓ higher range satisfies a range in union start (1 ms)
45
45
  ✓ higher range satisfies a range in union end (1 ms)
46
46
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
47
47
  ✓ equivalent major ranges satisfy each other (3 ms)
48
48
  ✓ version missing in union
49
- ✓ range missing in union
49
+ ✓ range missing in union (1 ms)
50
50
  Determines dependencies intersections correctly
51
51
  ✓ equivalence (1 ms)
52
52
  ✓ exact vs any (1 ms)
53
- ✓ major vs any
54
- ✓ greater or equal vs any (1 ms)
55
- ✓ any vs any (1 ms)
53
+ ✓ major vs any (1 ms)
54
+ ✓ greater or equal vs any
55
+ ✓ any vs any
56
56
  ✓ exact vs greater or equal (1 ms)
57
57
  ✓ major vs greater or equal (1 ms)
58
58
  ✓ greater or equal vs greater or equal (1 ms)
@@ -60,23 +60,23 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
60
60
  ✓ major vs major (1 ms)
61
61
  ✓ exact vs union (2 ms)
62
62
  ✓ major vs union (2 ms)
63
- ✓ union vs union (2 ms)
63
+ ✓ union vs union (1 ms)
64
64
 
65
65
   PASS  src/__tests__/consistentVersions.spec.ts
66
66
  consistentVersions
67
67
  standard tests
68
- ✓ Does nothing when arguments are empty (5 ms)
68
+ ✓ Does nothing when arguments are empty (6 ms)
69
69
  ✓ Fixes packages that have an incorrect dependency version (3 ms)
70
70
  ✓ Ignores packages that have a correct dependency version (1 ms)
71
71
  ✓ Fixes packages that have an incorrect devDependency version (2 ms)
72
- ✓ Ignores packages that have a correct devDependency version (2 ms)
73
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (2 ms)
72
+ ✓ Ignores packages that have a correct devDependency version (1 ms)
73
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
74
74
  Multiple accepted versions tests
75
75
  ✓ Accepts a match when multiple versions are configured (2 ms)
76
76
  ✓ Errors when version does not match (2 ms)
77
77
 
78
78
  console.log
79
- package-without-scripts (/tmp/tmp-2976-E1qad23BQFON)
79
+ package-without-scripts (/tmp/tmp-3015-ntsFCv8hLtre)
80
80
  
81
81
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
82
82
 
@@ -99,7 +99,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
99
99
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
100
100
 
101
101
  console.log
102
- package-without-scripts (/tmp/tmp-2976-ELCGccxnoI5w)
102
+ package-without-scripts (/tmp/tmp-3015-SAxEoAbOnB3A)
103
103
  
104
104
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
105
105
 
@@ -109,7 +109,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
109
109
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
110
110
 
111
111
  console.log
112
- package-with-scripts (/tmp/tmp-2976-vN4K5IRz1vdi)
112
+ package-with-scripts (/tmp/tmp-3015-n5gF9HzqDHkk)
113
113
  
114
114
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
115
115
 
@@ -119,7 +119,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
119
119
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
120
120
 
121
121
  console.log
122
- package-with-scripts (/tmp/tmp-2976-PjZ8KfG9idqN)
122
+ package-with-scripts (/tmp/tmp-3015-7pG5wz142zVQ)
123
123
  
124
124
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
125
125
 
@@ -142,7 +142,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
142
142
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
143
143
 
144
144
  console.log
145
- package-with-scripts (/tmp/tmp-2976-MqW8uIRDRecH)
145
+ package-with-scripts (/tmp/tmp-3015-hfllTTVXiuFI)
146
146
  
147
147
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
148
148
 
@@ -152,7 +152,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
152
152
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
153
153
 
154
154
  console.log
155
- package-with-scripts (/tmp/tmp-2976-ZVhzJb73eDQL)
155
+ package-with-scripts (/tmp/tmp-3015-QLZ1bunEYYu8)
156
156
  
157
157
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
158
158
 
@@ -162,7 +162,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
162
162
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
163
163
 
164
164
  console.log
165
- package-with-scripts (/tmp/tmp-2976-eAVYqRuYU4Fz)
165
+ package-with-scripts (/tmp/tmp-3015-tEvovcZe9eCH)
166
166
  
167
167
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
168
168
 
@@ -172,7 +172,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
172
172
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
173
173
 
174
174
  console.log
175
- package-without-scripts (/tmp/tmp-2976-7xHDaNLggISE)
175
+ package-without-scripts (/tmp/tmp-3015-NZF38ZFKqW3w)
176
176
  
177
177
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
178
178
 
@@ -195,7 +195,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
195
195
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
196
196
 
197
197
  console.log
198
- package-without-scripts (/tmp/tmp-2976-l2CKsPpAfF17)
198
+ package-without-scripts (/tmp/tmp-3015-okEJ4EE1sfsY)
199
199
  
200
200
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
201
201
 
@@ -205,7 +205,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
205
205
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
206
206
 
207
207
  console.log
208
- package-with-scripts (/tmp/tmp-2976-7Z4Lr7bgPO1h)
208
+ package-with-scripts (/tmp/tmp-3015-PZBjno3SAvUF)
209
209
  
210
210
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
211
211
 
@@ -215,7 +215,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
215
215
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
216
216
 
217
217
  console.log
218
- package-with-scripts (/tmp/tmp-2976-ecnxQaSyNyaE)
218
+ package-with-scripts (/tmp/tmp-3015-PDlhYOtOcSmO)
219
219
  
220
220
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
221
221
 
@@ -238,7 +238,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
238
238
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
239
239
 
240
240
  console.log
241
- package-with-scripts (/tmp/tmp-2976-1vOhkcWoU1AI)
241
+ package-with-scripts (/tmp/tmp-3015-reJ8yXzFYEN2)
242
242
  
243
243
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
244
244
 
@@ -248,7 +248,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
248
248
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
249
249
 
250
250
  console.log
251
- package-with-scripts (/tmp/tmp-2976-X08T9AKnKShP)
251
+ package-with-scripts (/tmp/tmp-3015-850BCoLLeKEl)
252
252
  
253
253
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
254
254
 
@@ -258,7 +258,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
258
258
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
259
259
 
260
260
  console.log
261
- package-with-scripts (/tmp/tmp-2976-LXndMHhoem6M)
261
+ package-with-scripts (/tmp/tmp-3015-frX2pNgIraoj)
262
262
  
263
263
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
264
264
 
@@ -270,37 +270,37 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
270
270
   PASS  src/__tests__/packageScript.spec.ts
271
271
  expectPackageScript (SimpleHost)
272
272
  fix: false
273
- ✓ handles an empty script section (45 ms)
273
+ ✓ handles an empty script section (52 ms)
274
274
  fix: true
275
- ✓ fixes an empty script section (6 ms)
276
- ✓ adds a script (5 ms)
277
- ✓ does nothing if the value exists (1 ms)
278
- ✓ errors if long form is used and no value matches and there is no fixValue (13 ms)
275
+ ✓ fixes an empty script section (4 ms)
276
+ ✓ adds a script (8 ms)
277
+ ✓ does nothing if the value exists (2 ms)
278
+ ✓ errors if long form is used and no value matches and there is no fixValue (15 ms)
279
279
  ✓ uses the fixValue for fixing if provided (4 ms)
280
280
  ✓ can fix to empty (3 ms)
281
- ✓ can allow only empty (4 ms)
281
+ ✓ can allow only empty (7 ms)
282
282
  expectPackageScript (CachingHost)
283
283
  fix: false
284
- ✓ handles an empty script section (8 ms)
284
+ ✓ handles an empty script section (9 ms)
285
285
  fix: true
286
- ✓ fixes an empty script section (3 ms)
287
- ✓ adds a script (5 ms)
286
+ ✓ fixes an empty script section (4 ms)
287
+ ✓ adds a script (8 ms)
288
288
  ✓ does nothing if the value exists (1 ms)
289
- ✓ errors if long form is used and no value matches and there is no fixValue (12 ms)
290
- ✓ uses the fixValue for fixing if provided (3 ms)
291
- ✓ can fix to empty (3 ms)
292
- ✓ can allow only empty (4 ms)
289
+ ✓ errors if long form is used and no value matches and there is no fixValue (7 ms)
290
+ ✓ uses the fixValue for fixing if provided (11 ms)
291
+ ✓ can fix to empty (4 ms)
292
+ ✓ can allow only empty (13 ms)
293
293
 
294
294
   PASS  src/__tests__/bannedDependencies.spec.ts
295
295
  bannedDependencies
296
296
  ✓ Flags banned dependencies correctly (8 ms)
297
- ✓ Flags banned dependencies correctly w legacy globs (2 ms)
297
+ ✓ Flags banned dependencies correctly w legacy globs (3 ms)
298
298
  ✓ Flags banned dependencies correctly w new globs (1 ms)
299
299
  ✓ Flags banned dependencies correctly w exact (2 ms)
300
- ✓ Flags banned transitives correctly (5 ms)
300
+ ✓ Flags banned transitives correctly (6 ms)
301
301
 
302
302
  console.log
303
- package (/tmp/tmp-2976-VBDsBVDd1wgj)
303
+ package (/tmp/tmp-3015-pLd3Y2GEeOR9)
304
304
  
305
305
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
306
306
 
@@ -310,7 +310,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
310
310
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
311
311
 
312
312
  console.log
313
- package (/tmp/tmp-2976-FIXVSHjUPdu7)
313
+ package (/tmp/tmp-3015-PiOQrZVuH5et)
314
314
  
315
315
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
316
316
 
@@ -320,7 +320,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
320
320
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
321
321
 
322
322
  console.log
323
- package (/tmp/tmp-2976-FWQEA1WMqPX6)
323
+ package (/tmp/tmp-3015-pwI2mxm6cfER)
324
324
  
325
325
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
326
326
 
@@ -343,7 +343,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
343
343
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
344
344
 
345
345
  console.log
346
- package (/tmp/tmp-2976-HAs0QuiAt06a)
346
+ package (/tmp/tmp-3015-mW0uPdas3ZGy)
347
347
  
348
348
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
349
349
 
@@ -371,7 +371,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
371
371
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
372
372
 
373
373
  console.log
374
- package (/tmp/tmp-2976-PZbaXFePn2jb)
374
+ package (/tmp/tmp-3015-cZu6RzLdOX1p)
375
375
  
376
376
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
377
377
 
@@ -381,7 +381,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
381
381
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
382
382
 
383
383
  console.log
384
- package (/tmp/tmp-2976-unDiPztSkoPY)
384
+ package (/tmp/tmp-3015-3Ij6gWE3D0Uc)
385
385
  
386
386
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
387
387
 
@@ -391,7 +391,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
391
391
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
392
392
 
393
393
  console.log
394
- package (/tmp/tmp-2976-J4N6gMy4pTZQ)
394
+ package (/tmp/tmp-3015-MP18AaVILNiP)
395
395
  
396
396
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
397
397
 
@@ -414,7 +414,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
414
414
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
415
415
 
416
416
  console.log
417
- package (/tmp/tmp-2976-sqmDSh7l6wuB)
417
+ package (/tmp/tmp-3015-qAVfbLiK2sLL)
418
418
  
419
419
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
420
420
 
@@ -445,34 +445,34 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
445
445
  expectPackageEntries (SimpleHost)
446
446
  fix: true
447
447
  ✓ fixes missing entries (11 ms)
448
- ✓ fixes missing nested entries (4 ms)
448
+ ✓ fixes missing nested entries (3 ms)
449
449
  ✓ doesn't error for nested entries that are defined (1 ms)
450
450
  ✓ errors for keys that are missing (7 ms)
451
- ✓ handles both entries and entriesExist (18 ms)
451
+ ✓ handles both entries and entriesExist (8 ms)
452
452
  expectPackageEntries (CachingHost)
453
453
  fix: true
454
- ✓ fixes missing entries (6 ms)
455
- ✓ fixes missing nested entries (3 ms)
454
+ ✓ fixes missing entries (22 ms)
455
+ ✓ fixes missing nested entries (5 ms)
456
456
  ✓ doesn't error for nested entries that are defined (1 ms)
457
- ✓ errors for keys that are missing (7 ms)
458
- ✓ handles both entries and entriesExist (13 ms)
457
+ ✓ errors for keys that are missing (10 ms)
458
+ ✓ handles both entries and entriesExist (25 ms)
459
459
 
460
460
   PASS  src/__tests__/nestedWorkspaces.spec.ts
461
461
  nestedWorkspaces
462
- ✓ checks correctly when no packages (11 ms)
462
+ ✓ checks correctly when no packages (12 ms)
463
463
  ✓ checks correctly when one level packages (5 ms)
464
464
  ✓ checks fail when one level packages with no workspaces field (4 ms)
465
465
  ✓ checks correctly when two level packages with two level workspaces field (5 ms)
466
466
  ✓ checks fail when two level packages with one level workspaces field (4 ms)
467
- ✓ checks correctly when three level packages with three level workspaces field (4 ms)
467
+ ✓ checks correctly when three level packages with three level workspaces field (5 ms)
468
468
 
469
469
   PASS  src/__tests__/requireDependency.spec.ts
470
470
  requireDependency
471
471
  ✓ checks correctly (10 ms)
472
- ✓ fixes correctly (13 ms)
472
+ ✓ fixes correctly (5 ms)
473
473
 
474
474
  console.log
475
- package (/tmp/tmp-2976-MvagtEG5A8Mu)
475
+ package (/tmp/tmp-3015-DtCY7djUTCKt)
476
476
  
477
477
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
478
478
 
@@ -482,7 +482,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
482
482
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
483
483
 
484
484
  console.log
485
- package-unknown-keys (/tmp/tmp-2976-Vge61QNK7r8o)
485
+ package-unknown-keys (/tmp/tmp-3015-hedVBabdqf1K)
486
486
  
487
487
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
488
488
 
@@ -492,7 +492,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
492
492
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
493
493
 
494
494
  console.log
495
- package (/tmp/tmp-2976-XrBjA5HEJUPD)
495
+ package (/tmp/tmp-3015-diDsbMb8RG2I)
496
496
  
497
497
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
498
498
 
@@ -502,7 +502,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
502
502
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
503
503
 
504
504
  console.log
505
- package (/tmp/tmp-2976-q2usCSUDsuTp)
505
+ package (/tmp/tmp-3015-i8vsw1yqxWMj)
506
506
  
507
507
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
508
508
 
@@ -512,7 +512,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
512
512
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
513
513
 
514
514
  console.log
515
- package-unknown-keys (/tmp/tmp-2976-T5m7ZleRtZkD)
515
+ package-unknown-keys (/tmp/tmp-3015-shWRAEtCt6kt)
516
516
  
517
517
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
518
518
 
@@ -522,7 +522,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
522
522
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
523
523
 
524
524
  console.log
525
- package (/tmp/tmp-2976-gNn1Gl4feJ5k)
525
+ package (/tmp/tmp-3015-5wh24zOPC7Er)
526
526
  
527
527
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
528
528
 
@@ -535,14 +535,14 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
535
535
  expectPackageOrder (SimpleHost)
536
536
  fix: true
537
537
  ✓ fixes order for expected keys (12 ms)
538
- ✓ fixes order for unexpected keys (12 ms)
538
+ ✓ fixes order for unexpected keys (14 ms)
539
539
  ✓ fixes order using function (4 ms)
540
- ✓ does nothing if already order (1 ms)
540
+ ✓ does nothing if already order (2 ms)
541
541
  expectPackageOrder (CachingHost)
542
542
  fix: true
543
- ✓ fixes order for expected keys (5 ms)
543
+ ✓ fixes order for expected keys (15 ms)
544
544
  ✓ fixes order for unexpected keys (4 ms)
545
- ✓ fixes order using function (11 ms)
545
+ ✓ fixes order using function (4 ms)
546
546
  ✓ does nothing if already order (2 ms)
547
547
 
548
548
   PASS  src/__tests__/consistentDependencies.spec.ts
@@ -552,7 +552,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
552
552
  ✓ ignores ignored dependencies (2 ms)
553
553
 
554
554
  console.log
555
- rootProject (/tmp/tmp-2976-I61ERqqaEShk)
555
+ rootProject (/tmp/tmp-3015-SglKHkHpaWex)
556
556
  
557
557
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
558
558
 
@@ -562,7 +562,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
562
562
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
563
563
 
564
564
  console.log
565
- rootProject (/tmp/tmp-2976-55snlAN5is4i)
565
+ rootProject (/tmp/tmp-3015-PU7yU7XkkER0)
566
+ 
567
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
568
+
569
+ console.log
570
+ Fixed! foo.txt: Expect file contents to match
571
+ 
572
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
573
+
574
+ console.log
575
+ rootProject (/tmp/tmp-3015-d6VJS5TM4Dre)
566
576
  
567
577
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
568
578
 
@@ -572,7 +582,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
572
582
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
573
583
 
574
584
  console.log
575
- rootProject (/tmp/tmp-2976-sNH5g94pvfKL)
585
+ rootProject (/tmp/tmp-3015-NPWTfkvyroOs)
586
+ 
587
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
588
+
589
+ console.log
590
+ Fixed! foo.txt: Expect file contents to match
591
+ 
592
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
593
+
594
+ console.log
595
+ rootProject (/tmp/tmp-3015-Io4N3Ou7tIrX)
576
596
  
577
597
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
578
598
 
@@ -582,7 +602,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
582
602
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
583
603
 
584
604
  console.log
585
- rootProject (/tmp/tmp-2976-zKOZu5O4UNGB)
605
+ rootProject (/tmp/tmp-3015-5e3fA0VtiBrG)
586
606
  
587
607
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
588
608
 
@@ -594,15 +614,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
594
614
   PASS  src/__tests__/fileContents.spec.ts
595
615
  fileContents (SimpleHost)
596
616
  fix: true
597
- ✓ fixes missing file (9 ms)
598
- ✓ fixes missing nested file (3 ms)
617
+ ✓ works with async generator (9 ms)
618
+ ✓ fixes missing file (5 ms)
619
+ ✓ fixes missing nested file (4 ms)
599
620
  fileContents (CachingHost)
600
621
  fix: true
601
- ✓ fixes missing file (5 ms)
622
+ ✓ works with async generator (18 ms)
623
+ ✓ fixes missing file (3 ms)
602
624
  ✓ fixes missing nested file (3 ms)
603
625
 
604
626
  console.log
605
- foo-lib (/tmp/tmp-2976-dw7A1A2SqE1Z)
627
+ foo-lib (/tmp/tmp-3015-5tlHPmUL3fVk)
606
628
  
607
629
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
608
630
 
@@ -612,7 +634,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
612
634
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
613
635
 
614
636
  console.log
615
- foo-lib (/tmp/tmp-2976-DNuNV98nJFPF)
637
+ foo-lib (/tmp/tmp-3015-O1T3jqFPPuki)
616
638
  
617
639
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
618
640
 
@@ -629,10 +651,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
629
651
  alphabeticalScripts (CachingHost)
630
652
  fix: true
631
653
  ✓ fixes unsorted scripts (5 ms)
632
- ✓ does nothing if already sorted (7 ms)
654
+ ✓ does nothing if already sorted (1 ms)
633
655
 
634
656
  Test Suites: 11 passed, 11 total
635
- Tests: 116 passed, 116 total
657
+ Tests: 118 passed, 118 total
636
658
  Snapshots: 0 total
637
- Time: 11.597 s
659
+ Time: 12.394 s
638
660
  Ran all test suites.
@@ -9,10 +9,10 @@
9
9
  CLI Target: node16
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM build/js/index.js 49.84 KB
13
- ESM build/js/chunk-GMT7IGKM.js 429.00 B
14
12
  ESM build/js/public/util.js 106.00 B
15
- ESM build/js/index.js.map 99.17 KB
16
- ESM build/js/chunk-GMT7IGKM.js.map 1.16 KB
13
+ ESM build/js/index.js 49.88 KB
14
+ ESM build/js/chunk-GMT7IGKM.js 429.00 B
17
15
  ESM build/js/public/util.js.map 71.00 B
18
- ESM ⚡️ Build success in 47ms
16
+ ESM build/js/index.js.map 99.26 KB
17
+ ESM build/js/chunk-GMT7IGKM.js.map 1.16 KB
18
+ ESM ⚡️ Build success in 85ms
package/build/js/index.js CHANGED
@@ -408,7 +408,7 @@ import * as r6 from "runtypes";
408
408
  var Options6 = r6.Union(
409
409
  r6.Record({
410
410
  file: r6.String,
411
- generator: r6.Function,
411
+ generator: r6.Function.withGuard((x) => x != void 0),
412
412
  template: r6.Undefined.optional(),
413
413
  templateFile: r6.Undefined.optional()
414
414
  }),
@@ -427,9 +427,9 @@ var Options6 = r6.Union(
427
427
  );
428
428
  var fileContents = makeRule({
429
429
  name: "fileContents",
430
- check: (context, opts) => {
430
+ check: async (context, opts) => {
431
431
  const fullPath = path3.join(context.packageDir, opts.file);
432
- const expectedContent = getExpectedContents(context, opts);
432
+ const expectedContent = await getExpectedContents(context, opts);
433
433
  const pathExists = context.host.exists(fullPath);
434
434
  const actualContent = pathExists ? context.host.readFile(fullPath, { encoding: "utf-8" }) : void 0;
435
435
  if (actualContent !== expectedContent) {
@@ -452,7 +452,7 @@ var fileContents = makeRule({
452
452
  optionsRuntype: Options6
453
453
  });
454
454
  var optionsCache = /* @__PURE__ */ new Map();
455
- function getExpectedContents(context, opts) {
455
+ async function getExpectedContents(context, opts) {
456
456
  if (optionsCache.has(opts)) {
457
457
  const cachedEntry = optionsCache.get(opts);
458
458
  if (cachedEntry && typeof cachedEntry === "function") {