@monorepolint/rules 0.5.0-alpha.135 → 0.5.0-alpha.137

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.
@@ -8,22 +8,22 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
8
8
  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 `'.'`
9
9
  (node:3123) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
10
  (Use `node --trace-warnings ...` to show where the warning was created)
11
-  PASS  src/__tests__/consistentVersions.spec.ts (6.911 s)
11
+  PASS  src/__tests__/consistentVersions.spec.ts (6.674 s)
12
12
  consistentVersions
13
13
  standard tests
14
- ✓ Does nothing when arguments are empty (35 ms)
14
+ ✓ Does nothing when arguments are empty (11 ms)
15
15
  ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
16
  ✓ Ignores packages that have a correct dependency version (2 ms)
17
17
  ✓ Fixes packages that have an incorrect devDependency version (3 ms)
18
- ✓ Ignores packages that have a correct devDependency version (14 ms)
19
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (15 ms)
18
+ ✓ Ignores packages that have a correct devDependency version (2 ms)
19
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
20
20
  Multiple accepted versions tests
21
- ✓ Accepts a match when multiple versions are configured (4 ms)
21
+ ✓ Accepts a match when multiple versions are configured (2 ms)
22
22
  ✓ Errors when version does not match (2 ms)
23
23
 
24
24
  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 `'.'`
25
25
  console.log
26
- package-without-scripts (/tmp/tmp-3129-6PZ9GKvUCHKe)
26
+ package-without-scripts (/tmp/tmp-3124-270M9pIfujF5)
27
27
  
28
28
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
29
29
 
@@ -46,7 +46,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
46
46
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
47
47
 
48
48
  console.log
49
- package-without-scripts (/tmp/tmp-3129-mlW0CEL9U2ys)
49
+ package-without-scripts (/tmp/tmp-3124-thGXVAIcCAG9)
50
50
  
51
51
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
52
52
 
@@ -56,7 +56,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
56
56
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
57
57
 
58
58
  console.log
59
- package-with-scripts (/tmp/tmp-3129-Ie5NdznSaaNg)
59
+ package-with-scripts (/tmp/tmp-3124-rmVIc5AdRP3d)
60
60
  
61
61
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
62
62
 
@@ -66,7 +66,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
66
66
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
67
67
 
68
68
  console.log
69
- package-with-scripts (/tmp/tmp-3129-DPP2Kb5alhqT)
69
+ package-with-scripts (/tmp/tmp-3124-YQh3GMrhXz7L)
70
70
  
71
71
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
72
72
 
@@ -89,7 +89,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
89
89
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
90
90
 
91
91
  console.log
92
- package-with-scripts (/tmp/tmp-3129-XsgIo2CTAdMT)
92
+ package-with-scripts (/tmp/tmp-3124-3Hn3rwLlOFK5)
93
93
  
94
94
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
95
95
 
@@ -99,7 +99,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
99
99
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
100
100
 
101
101
  console.log
102
- package-with-scripts (/tmp/tmp-3129-dkCmVjn1ztkj)
102
+ package-with-scripts (/tmp/tmp-3124-2pUFvt35j6hV)
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-3129-tVbjyD0MQAbA)
112
+ package-with-scripts (/tmp/tmp-3124-aKMdgMKatE3m)
113
113
  
114
114
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
115
115
 
@@ -118,10 +118,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
118
118
  
119
119
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
120
120
 
121
- (node:3129) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
121
+ (node:3124) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
122
  (Use `node --trace-warnings ...` to show where the warning was created)
123
123
  console.log
124
- package-without-scripts (/tmp/tmp-3129-HHkub6VSOmN5)
124
+ package-without-scripts (/tmp/tmp-3124-w26Wgpeq6wu3)
125
125
  
126
126
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
127
127
 
@@ -144,7 +144,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
144
144
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
145
145
 
146
146
  console.log
147
- package-without-scripts (/tmp/tmp-3129-rlq43ykNj1yq)
147
+ package-without-scripts (/tmp/tmp-3124-75n1qpA2Q2RG)
148
148
  
149
149
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
150
150
 
@@ -154,7 +154,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
154
154
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
155
155
 
156
156
  console.log
157
- package-with-scripts (/tmp/tmp-3129-PJ2gUK4oXslt)
157
+ package-with-scripts (/tmp/tmp-3124-qV7EOhiDAB7c)
158
158
  
159
159
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
160
160
 
@@ -164,7 +164,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
164
164
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
165
165
 
166
166
  console.log
167
- package-with-scripts (/tmp/tmp-3129-g39Rp8LfL4k3)
167
+ package-with-scripts (/tmp/tmp-3124-Uek6kaEl0NFn)
168
168
  
169
169
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
170
170
 
@@ -187,7 +187,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
187
187
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
188
188
 
189
189
  console.log
190
- package-with-scripts (/tmp/tmp-3129-hcf651eG30Zd)
190
+ package-with-scripts (/tmp/tmp-3124-qiWdyeDzyPwe)
191
191
  
192
192
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
193
193
 
@@ -197,7 +197,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
197
197
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
198
198
 
199
199
  console.log
200
- package-with-scripts (/tmp/tmp-3129-zgt7lYs6k23N)
200
+ package-with-scripts (/tmp/tmp-3124-our5AY526A71)
201
201
  
202
202
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
203
203
 
@@ -207,7 +207,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
207
207
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
208
208
 
209
209
  console.log
210
- package-with-scripts (/tmp/tmp-3129-QaXg4lqbxR7D)
210
+ package-with-scripts (/tmp/tmp-3124-vCT7xPQd1Xcx)
211
211
  
212
212
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
213
213
 
@@ -216,53 +216,55 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
216
216
  
217
217
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
218
218
 
219
-  PASS  src/__tests__/packageScript.spec.ts (7.123 s)
219
+  PASS  src/__tests__/packageScript.spec.ts (6.887 s)
220
220
  expectPackageScript (SimpleHost)
221
221
  fix: false
222
- ✓ handles an empty script section (68 ms)
222
+ ✓ handles an empty script section (84 ms)
223
223
  fix: true
224
- ✓ fixes an empty script section (7 ms)
225
- ✓ adds a script (11 ms)
224
+ ✓ fixes an empty script section (17 ms)
225
+ ✓ adds a script (7 ms)
226
226
  ✓ does nothing if the value exists (2 ms)
227
- ✓ errors if long form is used and no value matches and there is no fixValue (24 ms)
228
- ✓ uses the fixValue for fixing if provided (5 ms)
227
+ ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
228
+ ✓ uses the fixValue for fixing if provided (6 ms)
229
229
  ✓ can fix to empty (5 ms)
230
230
  ✓ can allow only empty (5 ms)
231
231
  expectPackageScript (CachingHost)
232
232
  fix: false
233
- ✓ handles an empty script section (22 ms)
233
+ ✓ handles an empty script section (13 ms)
234
234
  fix: true
235
235
  ✓ fixes an empty script section (4 ms)
236
- ✓ adds a script (7 ms)
237
- ✓ does nothing if the value exists (2 ms)
238
- ✓ errors if long form is used and no value matches and there is no fixValue (21 ms)
236
+ ✓ adds a script (10 ms)
237
+ ✓ does nothing if the value exists (1 ms)
238
+ ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
239
239
  ✓ uses the fixValue for fixing if provided (5 ms)
240
- ✓ can fix to empty (15 ms)
241
- ✓ can allow only empty (18 ms)
240
+ ✓ can fix to empty (10 ms)
241
+ ✓ can allow only empty (4 ms)
242
242
 
243
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.507 s)
243
+ (node:3122) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (Use `node --trace-warnings ...` to show where the warning was created)
245
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.191 s)
244
246
  mustSatisfyPeerDependencies
245
247
  ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
246
- ✓ Flags conflicting peer dependencies (4 ms)
247
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
248
- ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
248
+ ✓ Flags conflicting peer dependencies (15 ms)
249
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (7 ms)
250
+ ✓ Flags missing peer dependencies (NO regular dependency present) (15 ms)
249
251
  ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
250
252
  ✓ Honors dependencyWhitelist (4 ms)
251
- ✓ Honors dependencyBlacklist (4 ms)
253
+ ✓ Honors dependencyBlacklist (7 ms)
252
254
  regex tests
253
- ✓ Properly matches any version range regex (40 ms)
254
- ✓ Properly matches greator or equal version range regex (13 ms)
255
- ✓ Properly matches major version range regex (10 ms)
256
- ✓ Properly matches allowed range regex (17 ms)
255
+ ✓ Properly matches any version range regex (20 ms)
256
+ ✓ Properly matches greator or equal version range regex (18 ms)
257
+ ✓ Properly matches major version range regex (23 ms)
258
+ ✓ Properly matches allowed range regex (14 ms)
257
259
  Determines dependencies satisfaction correctly
258
260
  ✓ version is version (1 ms)
259
- ✓ version satisfies a range (4 ms)
260
- ✓ higher version satisfies a range (2 ms)
261
- ✓ version satisfies a greator or equal version range (2 ms)
261
+ ✓ version satisfies a range (3 ms)
262
+ ✓ higher version satisfies a range (6 ms)
263
+ ✓ version satisfies a greator or equal version range (1 ms)
262
264
  ✓ higher version satisfies a greator or equal version range (1 ms)
263
- ✓ version satisfies 'any' range (2 ms)
265
+ ✓ version satisfies 'any' range (1 ms)
264
266
  ✓ greator or equal version range satisfies 'any' range (1 ms)
265
- ✓ range satisfies 'any' range (3 ms)
267
+ ✓ range satisfies 'any' range (1 ms)
266
268
  ✓ union range satisfies 'any' range (1 ms)
267
269
  ✓ version found in union start (1 ms)
268
270
  ✓ version found in union end (1 ms)
@@ -274,7 +276,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
274
276
  ✓ range found in union end (1 ms)
275
277
  ✓ union satisfies greator or equal version range (1 ms)
276
278
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
277
- ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
279
+ ✓ equivalent greator or equal version ranges satisfy each other (6 ms)
278
280
  ✓ higher range satisfies a range in union start (1 ms)
279
281
  ✓ higher range satisfies a range in union end (1 ms)
280
282
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
@@ -282,32 +284,22 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
282
284
  ✓ version missing in union (1 ms)
283
285
  ✓ range missing in union (1 ms)
284
286
  Determines dependencies intersections correctly
285
- ✓ equivalence (2 ms)
287
+ ✓ equivalence (7 ms)
286
288
  ✓ exact vs any (1 ms)
287
- ✓ major vs any
289
+ ✓ major vs any (1 ms)
288
290
  ✓ greater or equal vs any (1 ms)
289
- ✓ any vs any (1 ms)
290
- ✓ exact vs greater or equal (1 ms)
291
- ✓ major vs greater or equal (2 ms)
292
- ✓ greater or equal vs greater or equal (5 ms)
293
- ✓ exact vs major (1 ms)
294
- ✓ major vs major (1 ms)
291
+ ✓ any vs any
292
+ ✓ exact vs greater or equal (2 ms)
293
+ ✓ major vs greater or equal (1 ms)
294
+ ✓ greater or equal vs greater or equal (1 ms)
295
+ ✓ exact vs major (4 ms)
296
+ ✓ major vs major (3 ms)
295
297
  ✓ exact vs union (2 ms)
296
298
  ✓ major vs union (1 ms)
297
- ✓ union vs union (4 ms)
298
-
299
- (node:3122) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
300
- (Use `node --trace-warnings ...` to show where the warning was created)
301
-  PASS  src/__tests__/bannedDependencies.spec.ts
302
- bannedDependencies
303
- ✓ Flags banned dependencies correctly (9 ms)
304
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
305
- ✓ Flags banned dependencies correctly w new globs (2 ms)
306
- ✓ Flags banned dependencies correctly w exact (1 ms)
307
- ✓ Flags banned transitives correctly (6 ms)
299
+ ✓ union vs union (12 ms)
308
300
 
309
301
  console.log
310
- package (/tmp/tmp-3129-T5Kb6VjghuN1)
302
+ package (/tmp/tmp-3124-eaK6gk43O4Rv)
311
303
  
312
304
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
313
305
 
@@ -317,7 +309,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
317
309
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
318
310
 
319
311
  console.log
320
- package (/tmp/tmp-3129-IvMvc3uqd9P1)
312
+ package (/tmp/tmp-3124-Lypp6dZLy1if)
321
313
  
322
314
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
323
315
 
@@ -327,7 +319,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
327
319
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
328
320
 
329
321
  console.log
330
- package (/tmp/tmp-3129-0h5XPczSDg4h)
322
+ package (/tmp/tmp-3124-iu5XpD58D4bk)
331
323
  
332
324
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
333
325
 
@@ -350,7 +342,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
350
342
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
351
343
 
352
344
  console.log
353
- package (/tmp/tmp-3129-h1YiHS5TxVWb)
345
+ package (/tmp/tmp-3124-L4rvUe4l8dPL)
354
346
  
355
347
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
356
348
 
@@ -378,7 +370,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
378
370
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
379
371
 
380
372
  console.log
381
- package (/tmp/tmp-3129-Y2GT9ISw7Fjw)
373
+ package (/tmp/tmp-3124-IGBqW0WZWX1U)
382
374
  
383
375
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
384
376
 
@@ -388,7 +380,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
388
380
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
389
381
 
390
382
  console.log
391
- package (/tmp/tmp-3129-NmLhv18Xhmnr)
383
+ package (/tmp/tmp-3124-5LwBnVWsBRwL)
392
384
  
393
385
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
394
386
 
@@ -398,7 +390,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
398
390
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
399
391
 
400
392
  console.log
401
- package (/tmp/tmp-3129-Dfq19zpfEpZF)
393
+ package (/tmp/tmp-3124-278BC7u61A4a)
402
394
  
403
395
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
404
396
 
@@ -421,7 +413,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
421
413
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
422
414
 
423
415
  console.log
424
- package (/tmp/tmp-3129-jeSlKG7Omcrq)
416
+ package (/tmp/tmp-3124-yDUeaLZifjhw)
425
417
  
426
418
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
427
419
 
@@ -443,15 +435,6 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
443
435
   at Object.check (src/util/makeRule.ts:20:27)
444
436
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:186:10)
445
437
 
446
-  PASS  src/__tests__/nestedWorkspaces.spec.ts
447
- nestedWorkspaces
448
- ✓ checks correctly when no packages (13 ms)
449
- ✓ checks correctly when one level packages (6 ms)
450
- ✓ checks fail when one level packages with no workspaces field (5 ms)
451
- ✓ checks correctly when two level packages with two level workspaces field (4 ms)
452
- ✓ checks fail when two level packages with one level workspaces field (10 ms)
453
- ✓ checks correctly when three level packages with three level workspaces field (4 ms)
454
-
455
438
  console.log
456
439
  Fixed! package.json: Expected standardized entry for 'repository'
457
440
  
@@ -460,32 +443,49 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
460
443
   PASS  src/__tests__/packageEntry.spec.ts
461
444
  expectPackageEntries (SimpleHost)
462
445
  fix: true
463
- ✓ fixes missing entries (14 ms)
464
- ✓ fixes missing nested entries (5 ms)
465
- ✓ doesn't error for nested entries that are defined (12 ms)
466
- ✓ errors for keys that are missing (8 ms)
467
- ✓ handles both entries and entriesExist (11 ms)
446
+ ✓ fixes missing entries (13 ms)
447
+ ✓ fixes missing nested entries (40 ms)
448
+ ✓ doesn't error for nested entries that are defined (2 ms)
449
+ ✓ errors for keys that are missing (11 ms)
450
+ ✓ handles both entries and entriesExist (12 ms)
468
451
  expectPackageEntries (CachingHost)
469
452
  fix: true
470
- ✓ fixes missing entries (6 ms)
453
+ ✓ fixes missing entries (8 ms)
471
454
  ✓ fixes missing nested entries (4 ms)
472
- ✓ doesn't error for nested entries that are defined (1 ms)
473
- ✓ errors for keys that are missing (8 ms)
474
- ✓ handles both entries and entriesExist (16 ms)
455
+ ✓ doesn't error for nested entries that are defined (4 ms)
456
+ ✓ errors for keys that are missing (21 ms)
457
+ ✓ handles both entries and entriesExist (24 ms)
475
458
 
476
-  PASS  src/__tests__/consistentDependencies.spec.ts
477
- consistentDependencies
478
- ✓ checks correctly (13 ms)
479
- ✓ fixes correctly (4 ms)
480
- ✓ ignores ignored dependencies (2 ms)
459
+  PASS  src/__tests__/bannedDependencies.spec.ts
460
+ bannedDependencies
461
+ ✓ Flags banned dependencies correctly (8 ms)
462
+ ✓ Flags banned dependencies correctly w legacy globs (3 ms)
463
+ ✓ Flags banned dependencies correctly w new globs (2 ms)
464
+ ✓ Flags banned dependencies correctly w exact (4 ms)
465
+ ✓ Flags banned transitives correctly (5 ms)
466
+
467
+  PASS  src/__tests__/nestedWorkspaces.spec.ts
468
+ nestedWorkspaces
469
+ ✓ checks correctly when no packages (13 ms)
470
+ ✓ checks correctly when one level packages (3 ms)
471
+ ✓ checks fail when one level packages with no workspaces field (4 ms)
472
+ ✓ checks correctly when two level packages with two level workspaces field (4 ms)
473
+ ✓ checks fail when two level packages with one level workspaces field (3 ms)
474
+ ✓ checks correctly when three level packages with three level workspaces field (4 ms)
481
475
 
482
476
   PASS  src/__tests__/requireDependency.spec.ts
483
477
  requireDependency
484
- ✓ checks correctly (27 ms)
478
+ ✓ checks correctly (11 ms)
485
479
  ✓ fixes correctly (5 ms)
486
480
 
481
+  PASS  src/__tests__/consistentDependencies.spec.ts
482
+ consistentDependencies
483
+ ✓ checks correctly (16 ms)
484
+ ✓ fixes correctly (4 ms)
485
+ ✓ ignores ignored dependencies (2 ms)
486
+
487
487
  console.log
488
- package (/tmp/tmp-3122-DPAHqKiQXptG)
488
+ package (/tmp/tmp-3123-xeGe28V0vvuF)
489
489
  
490
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
491
 
@@ -495,7 +495,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
495
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
496
 
497
497
  console.log
498
- package-unknown-keys (/tmp/tmp-3122-MWLNGzuUNpdO)
498
+ package-unknown-keys (/tmp/tmp-3123-GN1HawLWj4lJ)
499
499
  
500
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
501
 
@@ -505,7 +505,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
505
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
506
 
507
507
  console.log
508
- package (/tmp/tmp-3122-12mlKCdAoUQ3)
508
+ package (/tmp/tmp-3123-lPsLnRQUYn6c)
509
509
  
510
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
511
 
@@ -515,7 +515,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
515
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
516
 
517
517
  console.log
518
- package (/tmp/tmp-3122-t0N204zpaX0b)
518
+ package (/tmp/tmp-3123-ZFQu0D0lwKqX)
519
519
  
520
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
521
 
@@ -525,7 +525,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
525
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
526
 
527
527
  console.log
528
- package-unknown-keys (/tmp/tmp-3122-fR0cK4RSORhZ)
528
+ package-unknown-keys (/tmp/tmp-3123-6uberBGOtr1W)
529
529
  
530
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
531
 
@@ -535,7 +535,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
535
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
536
 
537
537
  console.log
538
- package (/tmp/tmp-3122-TstyQ6vS7FmR)
538
+ package (/tmp/tmp-3123-UHULjENruphJ)
539
539
  
540
540
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
541
541
 
@@ -547,59 +547,49 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
547
547
   PASS  src/__tests__/packageOrder.spec.ts
548
548
  expectPackageOrder (SimpleHost)
549
549
  fix: true
550
- ✓ fixes order for expected keys (58 ms)
551
- ✓ fixes order for unexpected keys (10 ms)
552
- ✓ fixes order using function (4 ms)
550
+ ✓ fixes order for expected keys (81 ms)
551
+ ✓ fixes order for unexpected keys (15 ms)
552
+ ✓ fixes order using function (5 ms)
553
553
  ✓ does nothing if already order (1 ms)
554
554
  expectPackageOrder (CachingHost)
555
555
  fix: true
556
556
  ✓ fixes order for expected keys (7 ms)
557
- ✓ fixes order for unexpected keys (5 ms)
558
- ✓ fixes order using function (5 ms)
557
+ ✓ fixes order for unexpected keys (16 ms)
558
+ ✓ fixes order using function (4 ms)
559
559
  ✓ does nothing if already order (1 ms)
560
560
 
561
561
  console.log
562
- foo-lib (/tmp/tmp-3123-i5arU1knGTni)
562
+ rootProject (/tmp/tmp-3124-GW0YF3gQn3rC)
563
563
  
564
564
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
565
565
 
566
566
  console.log
567
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
567
+ Fixed! foo.txt: Expect file contents to match
568
568
  
569
569
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
570
570
 
571
571
  console.log
572
- foo-lib (/tmp/tmp-3123-QLsBS0p2b059)
572
+ rootProject (/tmp/tmp-3124-KdoStsjvg85X)
573
573
  
574
574
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
575
575
 
576
576
  console.log
577
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
577
+ Fixed! foo.txt: Expect file contents to match
578
578
  
579
579
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
580
580
 
581
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
582
- alphabeticalScripts (SimpleHost)
583
- fix: true
584
- ✓ fixes unsorted scripts (72 ms)
585
- ✓ does nothing if already sorted (1 ms)
586
- alphabeticalScripts (CachingHost)
587
- fix: true
588
- ✓ fixes unsorted scripts (12 ms)
589
- ✓ does nothing if already sorted (1 ms)
590
-
591
581
  console.log
592
- rootProject (/tmp/tmp-3129-dJTM4mN6skMw)
582
+ rootProject (/tmp/tmp-3124-SvyjiwZDe7N1)
593
583
  
594
584
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
595
585
 
596
586
  console.log
597
- Fixed! foo.txt: Expect file contents to match
587
+ Fixed! nested/foo.txt: Expect file contents to match
598
588
  
599
589
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
600
590
 
601
591
  console.log
602
- rootProject (/tmp/tmp-3129-4vI9MBLc2j59)
592
+ rootProject (/tmp/tmp-3124-ypRZHlTps38T)
603
593
  
604
594
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
605
595
 
@@ -609,59 +599,69 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
609
599
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
610
600
 
611
601
  console.log
612
- rootProject (/tmp/tmp-3129-18lPNpCP74G6)
602
+ rootProject (/tmp/tmp-3124-8VQAXqOC2nf5)
613
603
  
614
604
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
615
605
 
616
606
  console.log
617
- Fixed! nested/foo.txt: Expect file contents to match
607
+ Fixed! foo.txt: Expect file contents to match
618
608
  
619
609
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
620
610
 
621
611
  console.log
622
- rootProject (/tmp/tmp-3129-B3A19DlXSluA)
612
+ rootProject (/tmp/tmp-3124-u2tvg43JzQK4)
623
613
  
624
614
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
625
615
 
626
616
  console.log
627
- Fixed! foo.txt: Expect file contents to match
617
+ Fixed! nested/foo.txt: Expect file contents to match
628
618
  
629
619
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
630
620
 
621
+  PASS  src/__tests__/fileContents.spec.ts
622
+ fileContents (SimpleHost)
623
+ fix: true
624
+ ✓ works with async generator (15 ms)
625
+ ✓ fixes missing file (3 ms)
626
+ ✓ fixes missing nested file (6 ms)
627
+ fileContents (CachingHost)
628
+ fix: true
629
+ ✓ works with async generator (4 ms)
630
+ ✓ fixes missing file (3 ms)
631
+ ✓ fixes missing nested file (2 ms)
632
+
631
633
  console.log
632
- rootProject (/tmp/tmp-3129-n3y32xcRcdJN)
634
+ foo-lib (/tmp/tmp-3122-VuV9MB9s3Twv)
633
635
  
634
636
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
635
637
 
636
638
  console.log
637
- Fixed! foo.txt: Expect file contents to match
639
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
638
640
  
639
641
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
640
642
 
641
643
  console.log
642
- rootProject (/tmp/tmp-3129-CQysU7tEtPq0)
644
+ foo-lib (/tmp/tmp-3122-uSOBd31D4s5K)
643
645
  
644
646
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
645
647
 
646
648
  console.log
647
- Fixed! nested/foo.txt: Expect file contents to match
649
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
648
650
  
649
651
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
650
652
 
651
-  PASS  src/__tests__/fileContents.spec.ts
652
- fileContents (SimpleHost)
653
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
654
+ alphabeticalScripts (SimpleHost)
653
655
  fix: true
654
- ✓ works with async generator (7 ms)
655
- ✓ fixes missing file (2 ms)
656
- ✓ fixes missing nested file (3 ms)
657
- fileContents (CachingHost)
656
+ ✓ fixes unsorted scripts (58 ms)
657
+ ✓ does nothing if already sorted (1 ms)
658
+ alphabeticalScripts (CachingHost)
658
659
  fix: true
659
- ✓ works with async generator (4 ms)
660
- ✓ fixes missing file (3 ms)
661
- ✓ fixes missing nested file (3 ms)
660
+ ✓ fixes unsorted scripts (5 ms)
661
+ ✓ does nothing if already sorted (1 ms)
662
662
 
663
663
  Test Suites: 11 passed, 11 total
664
664
  Tests: 118 passed, 118 total
665
665
  Snapshots: 0 total
666
- Time: 9.954 s
666
+ Time: 9.594 s
667
667
  Ran all test suites.
@@ -15,4 +15,4 @@
15
15
  ESM build/js/public/util.js.map 71.00 B
16
16
  ESM build/js/index.js.map 100.22 KB
17
17
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
18
- ESM ⚡️ Build success in 106ms
18
+ ESM ⚡️ Build success in 109ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.135+fe60c33",
3
+ "version": "0.5.0-alpha.137+dc4e263",
4
4
  "author": "Eric L Anderson (https://github.com/ericanderson)",
5
5
  "contributors": [
6
6
  "Mac Lockard (https://github.com/maclockard)"
@@ -30,9 +30,9 @@
30
30
  "transpile-typescript": "tsup --config ../../tsup.config.cjs"
31
31
  },
32
32
  "dependencies": {
33
- "@monorepolint/config": "^0.5.0-alpha.135+fe60c33",
34
- "@monorepolint/core": "^0.5.0-alpha.135+fe60c33",
35
- "@monorepolint/utils": "^0.5.0-alpha.135+fe60c33",
33
+ "@monorepolint/config": "^0.5.0-alpha.137+dc4e263",
34
+ "@monorepolint/core": "^0.5.0-alpha.137+dc4e263",
35
+ "@monorepolint/utils": "^0.5.0-alpha.137+dc4e263",
36
36
  "globby": "^14.0.1",
37
37
  "jest-diff": "^29.7.0",
38
38
  "resolve-package-path": "^4.0.3",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "fe60c33e4b821d47dc95406b31426a138d4658c4"
62
+ "gitHead": "dc4e2639bb362b869039f827a343b94afed4ee44"
63
63
  }