@monorepolint/rules 0.5.0-alpha.136 → 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.
@@ -6,25 +6,24 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
6
6
  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 `'.'`
7
7
  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 `'.'`
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
- 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 `'.'`
10
- 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 `'.'`
11
- (node:3048) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
9
+ (node:3123) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
12
10
  (Use `node --trace-warnings ...` to show where the warning was created)
13
-  PASS  src/__tests__/consistentVersions.spec.ts (7.02 s)
11
+  PASS  src/__tests__/consistentVersions.spec.ts (6.674 s)
14
12
  consistentVersions
15
13
  standard tests
16
- ✓ Does nothing when arguments are empty (12 ms)
14
+ ✓ Does nothing when arguments are empty (11 ms)
17
15
  ✓ Fixes packages that have an incorrect dependency version (4 ms)
18
16
  ✓ Ignores packages that have a correct dependency version (2 ms)
19
- ✓ Fixes packages that have an incorrect devDependency version (2 ms)
17
+ ✓ Fixes packages that have an incorrect devDependency version (3 ms)
20
18
  ✓ Ignores packages that have a correct devDependency version (2 ms)
21
19
  ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
22
20
  Multiple accepted versions tests
23
- ✓ Accepts a match when multiple versions are configured (6 ms)
21
+ ✓ Accepts a match when multiple versions are configured (2 ms)
24
22
  ✓ Errors when version does not match (2 ms)
25
23
 
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 `'.'`
26
25
  console.log
27
- package-without-scripts (/tmp/tmp-3054-W3NiajlBw0lY)
26
+ package-without-scripts (/tmp/tmp-3124-270M9pIfujF5)
28
27
  
29
28
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
30
29
 
@@ -47,7 +46,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
47
46
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
48
47
 
49
48
  console.log
50
- package-without-scripts (/tmp/tmp-3054-SMT5ON78S8Is)
49
+ package-without-scripts (/tmp/tmp-3124-thGXVAIcCAG9)
51
50
  
52
51
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
53
52
 
@@ -57,7 +56,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
57
56
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
58
57
 
59
58
  console.log
60
- package-with-scripts (/tmp/tmp-3054-4HVbhdQ2x3WZ)
59
+ package-with-scripts (/tmp/tmp-3124-rmVIc5AdRP3d)
61
60
  
62
61
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
63
62
 
@@ -67,7 +66,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
67
66
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
68
67
 
69
68
  console.log
70
- package-with-scripts (/tmp/tmp-3054-4sbVdZufauA1)
69
+ package-with-scripts (/tmp/tmp-3124-YQh3GMrhXz7L)
71
70
  
72
71
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
73
72
 
@@ -90,7 +89,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
90
89
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
91
90
 
92
91
  console.log
93
- package-with-scripts (/tmp/tmp-3054-09zUHnUGzxwT)
92
+ package-with-scripts (/tmp/tmp-3124-3Hn3rwLlOFK5)
94
93
  
95
94
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
96
95
 
@@ -100,7 +99,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
100
99
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
101
100
 
102
101
  console.log
103
- package-with-scripts (/tmp/tmp-3054-jDbHZUO7PUgb)
102
+ package-with-scripts (/tmp/tmp-3124-2pUFvt35j6hV)
104
103
  
105
104
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
106
105
 
@@ -110,7 +109,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
110
109
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
111
110
 
112
111
  console.log
113
- package-with-scripts (/tmp/tmp-3054-MEx2wntCj6ly)
112
+ package-with-scripts (/tmp/tmp-3124-aKMdgMKatE3m)
114
113
  
115
114
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
116
115
 
@@ -119,10 +118,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
119
118
  
120
119
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
121
120
 
122
- (node:3054) 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
123
122
  (Use `node --trace-warnings ...` to show where the warning was created)
124
123
  console.log
125
- package-without-scripts (/tmp/tmp-3054-ENGaOpWXNdFN)
124
+ package-without-scripts (/tmp/tmp-3124-w26Wgpeq6wu3)
126
125
  
127
126
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
128
127
 
@@ -145,7 +144,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
145
144
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
146
145
 
147
146
  console.log
148
- package-without-scripts (/tmp/tmp-3054-9ert4x2bZQQC)
147
+ package-without-scripts (/tmp/tmp-3124-75n1qpA2Q2RG)
149
148
  
150
149
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
151
150
 
@@ -155,7 +154,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
155
154
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
156
155
 
157
156
  console.log
158
- package-with-scripts (/tmp/tmp-3054-OFT57oLW5lye)
157
+ package-with-scripts (/tmp/tmp-3124-qV7EOhiDAB7c)
159
158
  
160
159
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
161
160
 
@@ -165,7 +164,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
165
164
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
166
165
 
167
166
  console.log
168
- package-with-scripts (/tmp/tmp-3054-HrevnLgo1LG0)
167
+ package-with-scripts (/tmp/tmp-3124-Uek6kaEl0NFn)
169
168
  
170
169
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
171
170
 
@@ -188,7 +187,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
188
187
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
189
188
 
190
189
  console.log
191
- package-with-scripts (/tmp/tmp-3054-vumlcGX4MzED)
190
+ package-with-scripts (/tmp/tmp-3124-qiWdyeDzyPwe)
192
191
  
193
192
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
194
193
 
@@ -198,7 +197,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
198
197
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
199
198
 
200
199
  console.log
201
- package-with-scripts (/tmp/tmp-3054-bHRYESe9U0tR)
200
+ package-with-scripts (/tmp/tmp-3124-our5AY526A71)
202
201
  
203
202
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
204
203
 
@@ -208,7 +207,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
208
207
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
209
208
 
210
209
  console.log
211
- package-with-scripts (/tmp/tmp-3054-m6EmeRbESFBN)
210
+ package-with-scripts (/tmp/tmp-3124-vCT7xPQd1Xcx)
212
211
  
213
212
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
214
213
 
@@ -217,52 +216,52 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
217
216
  
218
217
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
219
218
 
220
-  PASS  src/__tests__/packageScript.spec.ts (7.28 s)
219
+  PASS  src/__tests__/packageScript.spec.ts (6.887 s)
221
220
  expectPackageScript (SimpleHost)
222
221
  fix: false
223
- ✓ handles an empty script section (102 ms)
222
+ ✓ handles an empty script section (84 ms)
224
223
  fix: true
225
- ✓ fixes an empty script section (13 ms)
224
+ ✓ fixes an empty script section (17 ms)
226
225
  ✓ adds a script (7 ms)
227
- ✓ does nothing if the value exists (1 ms)
228
- ✓ errors if long form is used and no value matches and there is no fixValue (9 ms)
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 (10 ms)
229
228
  ✓ uses the fixValue for fixing if provided (6 ms)
230
- ✓ can fix to empty (4 ms)
231
- ✓ can allow only empty (17 ms)
229
+ ✓ can fix to empty (5 ms)
230
+ ✓ can allow only empty (5 ms)
232
231
  expectPackageScript (CachingHost)
233
232
  fix: false
234
- ✓ handles an empty script section (11 ms)
233
+ ✓ handles an empty script section (13 ms)
235
234
  fix: true
236
- ✓ fixes an empty script section (9 ms)
237
- ✓ adds a script (9 ms)
238
- ✓ does nothing if the value exists (2 ms)
239
- ✓ errors if long form is used and no value matches and there is no fixValue (7 ms)
235
+ ✓ fixes an empty script section (4 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)
240
239
  ✓ uses the fixValue for fixing if provided (5 ms)
241
- ✓ can fix to empty (9 ms)
242
- ✓ can allow only empty (5 ms)
240
+ ✓ can fix to empty (10 ms)
241
+ ✓ can allow only empty (4 ms)
243
242
 
244
- (node:3047) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
243
+ (node:3122) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
245
244
  (Use `node --trace-warnings ...` to show where the warning was created)
246
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.357 s)
245
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.191 s)
247
246
  mustSatisfyPeerDependencies
248
247
  ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
249
- ✓ Flags conflicting peer dependencies (4 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (3 ms)
251
- ✓ 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)
252
251
  ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
253
- ✓ Honors dependencyWhitelist (3 ms)
254
- ✓ Honors dependencyBlacklist (3 ms)
252
+ ✓ Honors dependencyWhitelist (4 ms)
253
+ ✓ Honors dependencyBlacklist (7 ms)
255
254
  regex tests
256
- ✓ Properly matches any version range regex (17 ms)
257
- ✓ Properly matches greator or equal version range regex (14 ms)
258
- ✓ Properly matches major version range regex (16 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)
259
258
  ✓ Properly matches allowed range regex (14 ms)
260
259
  Determines dependencies satisfaction correctly
261
- ✓ version is version (2 ms)
260
+ ✓ version is version (1 ms)
262
261
  ✓ version satisfies a range (3 ms)
263
- ✓ higher version satisfies a range (3 ms)
262
+ ✓ higher version satisfies a range (6 ms)
264
263
  ✓ version satisfies a greator or equal version range (1 ms)
265
- ✓ higher version satisfies a greator or equal version range (4 ms)
264
+ ✓ higher version satisfies a greator or equal version range (1 ms)
266
265
  ✓ version satisfies 'any' range (1 ms)
267
266
  ✓ greator or equal version range satisfies 'any' range (1 ms)
268
267
  ✓ range satisfies 'any' range (1 ms)
@@ -270,37 +269,37 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
270
269
  ✓ version found in union start (1 ms)
271
270
  ✓ version found in union end (1 ms)
272
271
  ✓ version satisfies a range in union start (1 ms)
273
- ✓ version satisfies a range in union end
272
+ ✓ version satisfies a range in union end (1 ms)
274
273
  ✓ higher version satisfies a range in union start (1 ms)
275
274
  ✓ higher version satisfies a range in union end (1 ms)
276
275
  ✓ range found in union start (1 ms)
277
- ✓ range found in union end
276
+ ✓ range found in union end (1 ms)
278
277
  ✓ union satisfies greator or equal version range (1 ms)
279
278
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
280
- ✓ equivalent greator or equal version ranges satisfy each other (2 ms)
279
+ ✓ equivalent greator or equal version ranges satisfy each other (6 ms)
281
280
  ✓ higher range satisfies a range in union start (1 ms)
282
281
  ✓ higher range satisfies a range in union end (1 ms)
283
282
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
284
- ✓ equivalent major ranges satisfy each other (4 ms)
283
+ ✓ equivalent major ranges satisfy each other (5 ms)
285
284
  ✓ version missing in union (1 ms)
286
285
  ✓ range missing in union (1 ms)
287
286
  Determines dependencies intersections correctly
288
- ✓ equivalence (1 ms)
287
+ ✓ equivalence (7 ms)
289
288
  ✓ exact vs any (1 ms)
290
- ✓ major vs any
289
+ ✓ major vs any (1 ms)
291
290
  ✓ greater or equal vs any (1 ms)
292
291
  ✓ any vs any
293
- ✓ exact vs greater or equal (1 ms)
292
+ ✓ exact vs greater or equal (2 ms)
294
293
  ✓ major vs greater or equal (1 ms)
295
294
  ✓ greater or equal vs greater or equal (1 ms)
296
- ✓ exact vs major (2 ms)
297
- ✓ major vs major (1 ms)
298
- ✓ exact vs union (3 ms)
295
+ ✓ exact vs major (4 ms)
296
+ ✓ major vs major (3 ms)
297
+ ✓ exact vs union (2 ms)
299
298
  ✓ major vs union (1 ms)
300
- ✓ union vs union (2 ms)
299
+ ✓ union vs union (12 ms)
301
300
 
302
301
  console.log
303
- package (/tmp/tmp-3054-sDF8cxQ37b5N)
302
+ package (/tmp/tmp-3124-eaK6gk43O4Rv)
304
303
  
305
304
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
306
305
 
@@ -310,7 +309,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
310
309
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
311
310
 
312
311
  console.log
313
- package (/tmp/tmp-3054-zq8Lm5rmPJXH)
312
+ package (/tmp/tmp-3124-Lypp6dZLy1if)
314
313
  
315
314
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
316
315
 
@@ -320,7 +319,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
320
319
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
321
320
 
322
321
  console.log
323
- package (/tmp/tmp-3054-OJ54QrxiYRM9)
322
+ package (/tmp/tmp-3124-iu5XpD58D4bk)
324
323
  
325
324
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
326
325
 
@@ -343,7 +342,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
343
342
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
344
343
 
345
344
  console.log
346
- package (/tmp/tmp-3054-55dSrDmkT7QV)
345
+ package (/tmp/tmp-3124-L4rvUe4l8dPL)
347
346
  
348
347
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
349
348
 
@@ -370,16 +369,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
370
369
  
371
370
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
372
371
 
373
-  PASS  src/__tests__/bannedDependencies.spec.ts
374
- bannedDependencies
375
- ✓ Flags banned dependencies correctly (9 ms)
376
- ✓ Flags banned dependencies correctly w legacy globs (2 ms)
377
- ✓ Flags banned dependencies correctly w new globs (2 ms)
378
- ✓ Flags banned dependencies correctly w exact (2 ms)
379
- ✓ Flags banned transitives correctly (8 ms)
380
-
381
372
  console.log
382
- package (/tmp/tmp-3054-jJTwtbkJzDZR)
373
+ package (/tmp/tmp-3124-IGBqW0WZWX1U)
383
374
  
384
375
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
385
376
 
@@ -389,7 +380,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
389
380
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
390
381
 
391
382
  console.log
392
- package (/tmp/tmp-3054-mxero3UqtS4r)
383
+ package (/tmp/tmp-3124-5LwBnVWsBRwL)
393
384
  
394
385
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
395
386
 
@@ -399,7 +390,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
399
390
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
400
391
 
401
392
  console.log
402
- package (/tmp/tmp-3054-9W4I0sU6aAo7)
393
+ package (/tmp/tmp-3124-278BC7u61A4a)
403
394
  
404
395
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
405
396
 
@@ -422,7 +413,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
422
413
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
423
414
 
424
415
  console.log
425
- package (/tmp/tmp-3054-yusqPb2QjmGl)
416
+ package (/tmp/tmp-3124-yDUeaLZifjhw)
426
417
  
427
418
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
428
419
 
@@ -452,35 +443,49 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
452
443
   PASS  src/__tests__/packageEntry.spec.ts
453
444
  expectPackageEntries (SimpleHost)
454
445
  fix: true
455
- ✓ fixes missing entries (16 ms)
456
- ✓ fixes missing nested entries (4 ms)
446
+ ✓ fixes missing entries (13 ms)
447
+ ✓ fixes missing nested entries (40 ms)
457
448
  ✓ doesn't error for nested entries that are defined (2 ms)
458
- ✓ errors for keys that are missing (8 ms)
449
+ ✓ errors for keys that are missing (11 ms)
459
450
  ✓ handles both entries and entriesExist (12 ms)
460
451
  expectPackageEntries (CachingHost)
461
452
  fix: true
462
- ✓ fixes missing entries (11 ms)
453
+ ✓ fixes missing entries (8 ms)
463
454
  ✓ fixes missing nested entries (4 ms)
464
- ✓ doesn't error for nested entries that are defined (2 ms)
465
- ✓ errors for keys that are missing (11 ms)
466
- ✓ handles both entries and entriesExist (9 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)
458
+
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)
467
466
 
468
467
   PASS  src/__tests__/nestedWorkspaces.spec.ts
469
468
  nestedWorkspaces
470
- ✓ checks correctly when no packages (19 ms)
471
- ✓ checks correctly when one level packages (6 ms)
469
+ ✓ checks correctly when no packages (13 ms)
470
+ ✓ checks correctly when one level packages (3 ms)
472
471
  ✓ checks fail when one level packages with no workspaces field (4 ms)
473
- ✓ checks correctly when two level packages with two level workspaces field (14 ms)
474
- ✓ checks fail when two level packages with one level workspaces field (5 ms)
475
- ✓ checks correctly when three level packages with three level workspaces field (7 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)
476
475
 
477
476
   PASS  src/__tests__/requireDependency.spec.ts
478
477
  requireDependency
479
- ✓ checks correctly (7 ms)
480
- ✓ fixes correctly (3 ms)
478
+ ✓ checks correctly (11 ms)
479
+ ✓ fixes correctly (5 ms)
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)
481
486
 
482
487
  console.log
483
- package (/tmp/tmp-3054-VyAb1MV7asrC)
488
+ package (/tmp/tmp-3123-xeGe28V0vvuF)
484
489
  
485
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
486
491
 
@@ -490,7 +495,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
490
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
496
 
492
497
  console.log
493
- package-unknown-keys (/tmp/tmp-3054-Goqg7fTEOpH5)
498
+ package-unknown-keys (/tmp/tmp-3123-GN1HawLWj4lJ)
494
499
  
495
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
501
 
@@ -500,7 +505,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
500
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
506
 
502
507
  console.log
503
- package (/tmp/tmp-3054-ZToJDiiqzkN2)
508
+ package (/tmp/tmp-3123-lPsLnRQUYn6c)
504
509
  
505
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
511
 
@@ -510,7 +515,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
510
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
516
 
512
517
  console.log
513
- package (/tmp/tmp-3054-oUWnnJcoT5oR)
518
+ package (/tmp/tmp-3123-ZFQu0D0lwKqX)
514
519
  
515
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
521
 
@@ -519,14 +524,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
519
524
  
520
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
526
 
522
-  PASS  src/__tests__/consistentDependencies.spec.ts
523
- consistentDependencies
524
- ✓ checks correctly (12 ms)
525
- ✓ fixes correctly (2 ms)
526
- ✓ ignores ignored dependencies (2 ms)
527
-
528
527
  console.log
529
- package-unknown-keys (/tmp/tmp-3054-QNl0UnY4LoS4)
528
+ package-unknown-keys (/tmp/tmp-3123-6uberBGOtr1W)
530
529
  
531
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
532
531
 
@@ -536,7 +535,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
536
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
537
536
 
538
537
  console.log
539
- package (/tmp/tmp-3054-wKTBFject0fb)
538
+ package (/tmp/tmp-3123-UHULjENruphJ)
540
539
  
541
540
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
542
541
 
@@ -548,59 +547,49 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
548
547
   PASS  src/__tests__/packageOrder.spec.ts
549
548
  expectPackageOrder (SimpleHost)
550
549
  fix: true
551
- ✓ fixes order for expected keys (16 ms)
552
- ✓ fixes order for unexpected keys (40 ms)
550
+ ✓ fixes order for expected keys (81 ms)
551
+ ✓ fixes order for unexpected keys (15 ms)
553
552
  ✓ fixes order using function (5 ms)
554
- ✓ does nothing if already order (2 ms)
553
+ ✓ does nothing if already order (1 ms)
555
554
  expectPackageOrder (CachingHost)
556
555
  fix: true
557
- ✓ fixes order for expected keys (6 ms)
558
- ✓ fixes order for unexpected keys (5 ms)
559
- ✓ fixes order using function (5 ms)
560
- ✓ does nothing if already order (2 ms)
556
+ ✓ fixes order for expected keys (7 ms)
557
+ ✓ fixes order for unexpected keys (16 ms)
558
+ ✓ fixes order using function (4 ms)
559
+ ✓ does nothing if already order (1 ms)
561
560
 
562
561
  console.log
563
- foo-lib (/tmp/tmp-3047-g5kza7kuBsEz)
562
+ rootProject (/tmp/tmp-3124-GW0YF3gQn3rC)
564
563
  
565
564
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
566
565
 
567
566
  console.log
568
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
567
+ Fixed! foo.txt: Expect file contents to match
569
568
  
570
569
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
571
570
 
572
571
  console.log
573
- foo-lib (/tmp/tmp-3047-1bsdR2vaD6TU)
572
+ rootProject (/tmp/tmp-3124-KdoStsjvg85X)
574
573
  
575
574
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
576
575
 
577
576
  console.log
578
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
577
+ Fixed! foo.txt: Expect file contents to match
579
578
  
580
579
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
581
580
 
582
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
583
- alphabeticalScripts (SimpleHost)
584
- fix: true
585
- ✓ fixes unsorted scripts (47 ms)
586
- ✓ does nothing if already sorted (1 ms)
587
- alphabeticalScripts (CachingHost)
588
- fix: true
589
- ✓ fixes unsorted scripts (6 ms)
590
- ✓ does nothing if already sorted (1 ms)
591
-
592
581
  console.log
593
- rootProject (/tmp/tmp-3048-rKVMo1NPSGXs)
582
+ rootProject (/tmp/tmp-3124-SvyjiwZDe7N1)
594
583
  
595
584
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
596
585
 
597
586
  console.log
598
- Fixed! foo.txt: Expect file contents to match
587
+ Fixed! nested/foo.txt: Expect file contents to match
599
588
  
600
589
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
601
590
 
602
591
  console.log
603
- rootProject (/tmp/tmp-3048-cJL5SqTnwz7F)
592
+ rootProject (/tmp/tmp-3124-ypRZHlTps38T)
604
593
  
605
594
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
606
595
 
@@ -610,59 +599,69 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
610
599
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
611
600
 
612
601
  console.log
613
- rootProject (/tmp/tmp-3048-Apse5E71BDZb)
602
+ rootProject (/tmp/tmp-3124-8VQAXqOC2nf5)
614
603
  
615
604
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
616
605
 
617
606
  console.log
618
- Fixed! nested/foo.txt: Expect file contents to match
607
+ Fixed! foo.txt: Expect file contents to match
619
608
  
620
609
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
610
 
622
611
  console.log
623
- rootProject (/tmp/tmp-3048-CQDwTUTJ9UzN)
612
+ rootProject (/tmp/tmp-3124-u2tvg43JzQK4)
624
613
  
625
614
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
626
615
 
627
616
  console.log
628
- Fixed! foo.txt: Expect file contents to match
617
+ Fixed! nested/foo.txt: Expect file contents to match
629
618
  
630
619
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
631
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
+
632
633
  console.log
633
- rootProject (/tmp/tmp-3048-yjdqw0GwH7tL)
634
+ foo-lib (/tmp/tmp-3122-VuV9MB9s3Twv)
634
635
  
635
636
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
636
637
 
637
638
  console.log
638
- Fixed! foo.txt: Expect file contents to match
639
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
639
640
  
640
641
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
641
642
 
642
643
  console.log
643
- rootProject (/tmp/tmp-3048-fO5pVNvhRLK7)
644
+ foo-lib (/tmp/tmp-3122-uSOBd31D4s5K)
644
645
  
645
646
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
646
647
 
647
648
  console.log
648
- Fixed! nested/foo.txt: Expect file contents to match
649
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
649
650
  
650
651
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
651
652
 
652
-  PASS  src/__tests__/fileContents.spec.ts
653
- fileContents (SimpleHost)
653
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
654
+ alphabeticalScripts (SimpleHost)
654
655
  fix: true
655
- ✓ works with async generator (45 ms)
656
- ✓ fixes missing file (3 ms)
657
- ✓ fixes missing nested file (3 ms)
658
- fileContents (CachingHost)
656
+ ✓ fixes unsorted scripts (58 ms)
657
+ ✓ does nothing if already sorted (1 ms)
658
+ alphabeticalScripts (CachingHost)
659
659
  fix: true
660
- ✓ works with async generator (5 ms)
661
- ✓ fixes missing file (3 ms)
662
- ✓ fixes missing nested file (3 ms)
660
+ ✓ fixes unsorted scripts (5 ms)
661
+ ✓ does nothing if already sorted (1 ms)
663
662
 
664
663
  Test Suites: 11 passed, 11 total
665
664
  Tests: 118 passed, 118 total
666
665
  Snapshots: 0 total
667
- Time: 9.84 s
666
+ Time: 9.594 s
668
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 81ms
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.136+3f2b4ce",
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.136+3f2b4ce",
34
- "@monorepolint/core": "^0.5.0-alpha.136+3f2b4ce",
35
- "@monorepolint/utils": "^0.5.0-alpha.136+3f2b4ce",
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": "3f2b4ce7ab50b596f7501974091f91c37ef4f9df"
62
+ "gitHead": "dc4e2639bb362b869039f827a343b94afed4ee44"
63
63
  }