@monorepolint/rules 0.5.0-alpha.131 → 0.5.0-alpha.133

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.
@@ -7,24 +7,24 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
7
7
  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 `'.'`
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
  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 `'.'`
10
- (node:3360) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
+ (node:3171) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
11
11
  (Use `node --trace-warnings ...` to show where the warning was created)
12
-  PASS  src/__tests__/consistentVersions.spec.ts (6.447 s)
12
+  PASS  src/__tests__/consistentVersions.spec.ts (6.717 s)
13
13
  consistentVersions
14
14
  standard tests
15
- ✓ Does nothing when arguments are empty (19 ms)
16
- ✓ Fixes packages that have an incorrect dependency version (17 ms)
17
- ✓ Ignores packages that have a correct dependency version (2 ms)
18
- ✓ Fixes packages that have an incorrect devDependency version (2 ms)
15
+ ✓ Does nothing when arguments are empty (23 ms)
16
+ ✓ Fixes packages that have an incorrect dependency version (8 ms)
17
+ ✓ Ignores packages that have a correct dependency version (9 ms)
18
+ ✓ Fixes packages that have an incorrect devDependency version (17 ms)
19
19
  ✓ Ignores packages that have a correct devDependency version (2 ms)
20
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
20
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (4 ms)
21
21
  Multiple accepted versions tests
22
22
  ✓ Accepts a match when multiple versions are configured (3 ms)
23
23
  ✓ Errors when version does not match (2 ms)
24
24
 
25
25
  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
26
  console.log
27
- package-without-scripts (/tmp/tmp-3362-gnE6oAYDUGV4)
27
+ package-without-scripts (/tmp/tmp-3177-FNgkt2tmNuBr)
28
28
  
29
29
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
30
30
 
@@ -47,7 +47,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
47
47
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
48
48
 
49
49
  console.log
50
- package-without-scripts (/tmp/tmp-3362-VNbc4o622Z7S)
50
+ package-without-scripts (/tmp/tmp-3177-1exoJAj9gyGq)
51
51
  
52
52
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
53
53
 
@@ -57,7 +57,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
57
57
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
58
58
 
59
59
  console.log
60
- package-with-scripts (/tmp/tmp-3362-TldkO8GD2w5v)
60
+ package-with-scripts (/tmp/tmp-3177-sUubRlHuCWuo)
61
61
  
62
62
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
63
63
 
@@ -67,7 +67,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
67
67
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
68
68
 
69
69
  console.log
70
- package-with-scripts (/tmp/tmp-3362-1UAjI81oqBmU)
70
+ package-with-scripts (/tmp/tmp-3177-2xk4CJOeJDpK)
71
71
  
72
72
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
73
73
 
@@ -90,7 +90,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
90
90
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
91
91
 
92
92
  console.log
93
- package-with-scripts (/tmp/tmp-3362-b2JRzD6kjzMF)
93
+ package-with-scripts (/tmp/tmp-3177-8ABhg3V7agmE)
94
94
  
95
95
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
96
96
 
@@ -100,7 +100,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
100
100
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
101
101
 
102
102
  console.log
103
- package-with-scripts (/tmp/tmp-3362-y70Q3HsutCaf)
103
+ package-with-scripts (/tmp/tmp-3177-79AHr9x2V5Tk)
104
104
  
105
105
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
106
106
 
@@ -110,7 +110,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
110
110
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
111
111
 
112
112
  console.log
113
- package-with-scripts (/tmp/tmp-3362-luG3ZWUhhXfp)
113
+ package-with-scripts (/tmp/tmp-3177-WKSk4bI2D42v)
114
114
  
115
115
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
116
116
 
@@ -119,10 +119,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
119
119
  
120
120
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
121
121
 
122
- (node:3362) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3177) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
123
123
  (Use `node --trace-warnings ...` to show where the warning was created)
124
124
  console.log
125
- package-without-scripts (/tmp/tmp-3362-GIsW8WGwRqns)
125
+ package-without-scripts (/tmp/tmp-3177-zDmo6vwvmzdo)
126
126
  
127
127
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
128
128
 
@@ -145,7 +145,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
145
145
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
146
146
 
147
147
  console.log
148
- package-without-scripts (/tmp/tmp-3362-R8ol0YQ5On30)
148
+ package-without-scripts (/tmp/tmp-3177-CdH3I9yXD37u)
149
149
  
150
150
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
151
151
 
@@ -155,7 +155,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
155
155
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
156
156
 
157
157
  console.log
158
- package-with-scripts (/tmp/tmp-3362-HEowCU5C8c4n)
158
+ package-with-scripts (/tmp/tmp-3177-7RcrsPKSm2RH)
159
159
  
160
160
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
161
161
 
@@ -165,7 +165,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
165
165
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
166
166
 
167
167
  console.log
168
- package-with-scripts (/tmp/tmp-3362-LwsWqymyjtF2)
168
+ package-with-scripts (/tmp/tmp-3177-v3G1YFAl8g5N)
169
169
  
170
170
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
171
171
 
@@ -188,7 +188,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
188
188
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
189
189
 
190
190
  console.log
191
- package-with-scripts (/tmp/tmp-3362-IXSWFwDwMXsq)
191
+ package-with-scripts (/tmp/tmp-3177-5mkPZ6hLpB7N)
192
192
  
193
193
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
194
194
 
@@ -198,7 +198,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
198
198
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
199
199
 
200
200
  console.log
201
- package-with-scripts (/tmp/tmp-3362-NO7keKLpWQ9Z)
201
+ package-with-scripts (/tmp/tmp-3177-xEhJ6TtlHAEV)
202
202
  
203
203
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
204
204
 
@@ -208,7 +208,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
208
208
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
209
209
 
210
210
  console.log
211
- package-with-scripts (/tmp/tmp-3362-G2NmbovdHwDZ)
211
+ package-with-scripts (/tmp/tmp-3177-YQ1ZKNHHR12I)
212
212
  
213
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
214
214
 
@@ -217,98 +217,90 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
217
217
  
218
218
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
219
219
 
220
-  PASS  src/__tests__/packageScript.spec.ts (6.947 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (7.067 s)
221
221
  expectPackageScript (SimpleHost)
222
222
  fix: false
223
- ✓ handles an empty script section (98 ms)
223
+ ✓ handles an empty script section (70 ms)
224
224
  fix: true
225
- ✓ fixes an empty script section (8 ms)
226
- ✓ adds a script (7 ms)
225
+ ✓ fixes an empty script section (13 ms)
226
+ ✓ adds a script (4 ms)
227
227
  ✓ does nothing if the value exists (2 ms)
228
- ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
228
+ ✓ errors if long form is used and no value matches and there is no fixValue (9 ms)
229
229
  ✓ uses the fixValue for fixing if provided (5 ms)
230
- ✓ can fix to empty (4 ms)
231
- ✓ can allow only empty (3 ms)
230
+ ✓ can fix to empty (8 ms)
231
+ ✓ can allow only empty (5 ms)
232
232
  expectPackageScript (CachingHost)
233
233
  fix: false
234
- ✓ handles an empty script section (9 ms)
234
+ ✓ handles an empty script section (16 ms)
235
235
  fix: true
236
- ✓ fixes an empty script section (18 ms)
237
- ✓ adds a script (8 ms)
238
- ✓ does nothing if the value exists (5 ms)
239
- ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
240
- ✓ uses the fixValue for fixing if provided (6 ms)
241
- ✓ can fix to empty (4 ms)
242
- ✓ can allow only empty (4 ms)
243
-
244
- (node:3359) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
236
+ ✓ fixes an empty script section (5 ms)
237
+ ✓ adds a script (5 ms)
238
+ ✓ does nothing if the value exists (1 ms)
239
+ ✓ errors if long form is used and no value matches and there is no fixValue (9 ms)
240
+ ✓ uses the fixValue for fixing if provided (10 ms)
241
+ ✓ can fix to empty (8 ms)
242
+ ✓ can allow only empty (20 ms)
243
+
244
+ (node:3170) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
245
245
  (Use `node --trace-warnings ...` to show where the warning was created)
246
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.456 s)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.374 s)
247
247
  mustSatisfyPeerDependencies
248
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (21 ms)
249
- ✓ Flags conflicting peer dependencies (6 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (9 ms)
251
- ✓ Flags missing peer dependencies (NO regular dependency present) (6 ms)
248
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
249
+ ✓ Flags conflicting peer dependencies (5 ms)
250
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (10 ms)
251
+ ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
252
252
  ✓ Flags unsatisfied peer dependencies (test package has peer dep) (7 ms)
253
- ✓ Honors dependencyWhitelist (4 ms)
254
- ✓ Honors dependencyBlacklist (5 ms)
253
+ ✓ Honors dependencyWhitelist (5 ms)
254
+ ✓ Honors dependencyBlacklist (9 ms)
255
255
  regex tests
256
- ✓ Properly matches any version range regex (21 ms)
257
- ✓ Properly matches greator or equal version range regex (17 ms)
258
- ✓ Properly matches major version range regex (12 ms)
259
- ✓ Properly matches allowed range regex (34 ms)
256
+ ✓ Properly matches any version range regex (30 ms)
257
+ ✓ Properly matches greator or equal version range regex (18 ms)
258
+ ✓ Properly matches major version range regex (16 ms)
259
+ ✓ Properly matches allowed range regex (25 ms)
260
260
  Determines dependencies satisfaction correctly
261
261
  ✓ version is version (1 ms)
262
262
  ✓ version satisfies a range (4 ms)
263
- ✓ higher version satisfies a range (2 ms)
263
+ ✓ higher version satisfies a range (1 ms)
264
264
  ✓ version satisfies a greator or equal version range (1 ms)
265
265
  ✓ higher version satisfies a greator or equal version range (1 ms)
266
- ✓ version satisfies 'any' range (2 ms)
266
+ ✓ version satisfies 'any' range (8 ms)
267
267
  ✓ greator or equal version range satisfies 'any' range (1 ms)
268
268
  ✓ range satisfies 'any' range (1 ms)
269
269
  ✓ union range satisfies 'any' range (1 ms)
270
- ✓ version found in union start (4 ms)
271
- ✓ version found in union end (3 ms)
272
- ✓ version satisfies a range in union start (12 ms)
273
- ✓ version satisfies a range in union end (1 ms)
274
- ✓ higher version satisfies a range in union start (1 ms)
270
+ ✓ version found in union start (1 ms)
271
+ ✓ version found in union end (1 ms)
272
+ ✓ version satisfies a range in union start (1 ms)
273
+ ✓ version satisfies a range in union end (3 ms)
274
+ ✓ higher version satisfies a range in union start (3 ms)
275
275
  ✓ higher version satisfies a range in union end (1 ms)
276
- ✓ range found in union start (1 ms)
276
+ ✓ range found in union start
277
277
  ✓ range found in union end
278
278
  ✓ union satisfies greator or equal version range (1 ms)
279
- ✓ greator or equal version range satisfies greator or equal version range
279
+ ✓ greator or equal version range satisfies greator or equal version range (1 ms)
280
280
  ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
281
281
  ✓ higher range satisfies a range in union start (1 ms)
282
282
  ✓ higher range satisfies a range in union end (1 ms)
283
283
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
284
- ✓ equivalent major ranges satisfy each other (4 ms)
285
- ✓ version missing in union (1 ms)
284
+ ✓ equivalent major ranges satisfy each other (11 ms)
285
+ ✓ version missing in union
286
286
  ✓ range missing in union (1 ms)
287
287
  Determines dependencies intersections correctly
288
- ✓ equivalence (2 ms)
288
+ ✓ equivalence (1 ms)
289
289
  ✓ exact vs any (1 ms)
290
290
  ✓ major vs any (1 ms)
291
291
  ✓ greater or equal vs any (1 ms)
292
292
  ✓ any vs any
293
- ✓ exact vs greater or equal (2 ms)
294
- ✓ major vs greater or equal (2 ms)
295
- ✓ greater or equal vs greater or equal (4 ms)
296
- ✓ exact vs major (2 ms)
297
- ✓ major vs major (1 ms)
293
+ ✓ exact vs greater or equal (7 ms)
294
+ ✓ major vs greater or equal (6 ms)
295
+ ✓ greater or equal vs greater or equal (1 ms)
296
+ ✓ exact vs major (1 ms)
297
+ ✓ major vs major (2 ms)
298
298
  ✓ exact vs union (1 ms)
299
299
  ✓ major vs union (2 ms)
300
300
  ✓ union vs union (2 ms)
301
301
 
302
-  PASS  src/__tests__/bannedDependencies.spec.ts
303
- bannedDependencies
304
- ✓ Flags banned dependencies correctly (15 ms)
305
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
306
- ✓ Flags banned dependencies correctly w new globs (2 ms)
307
- ✓ Flags banned dependencies correctly w exact (2 ms)
308
- ✓ Flags banned transitives correctly (16 ms)
309
-
310
302
  console.log
311
- package (/tmp/tmp-3362-SL1kDRgf658i)
303
+ package (/tmp/tmp-3177-2bUFUyaHNEi6)
312
304
  
313
305
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
314
306
 
@@ -318,7 +310,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
318
310
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
319
311
 
320
312
  console.log
321
- package (/tmp/tmp-3362-vQkHddjqGxf0)
313
+ package (/tmp/tmp-3177-Fl02Zb1AjGQa)
322
314
  
323
315
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
324
316
 
@@ -328,7 +320,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
328
320
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
329
321
 
330
322
  console.log
331
- package (/tmp/tmp-3362-rH5wJ6mlvct5)
323
+ package (/tmp/tmp-3177-Z5pbF0WnC2Vm)
332
324
  
333
325
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
334
326
 
@@ -351,7 +343,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
351
343
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
352
344
 
353
345
  console.log
354
- package (/tmp/tmp-3362-lTFXsbLt3Nvv)
346
+ package (/tmp/tmp-3177-92d7UskussI0)
355
347
  
356
348
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
357
349
 
@@ -379,7 +371,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
379
371
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
380
372
 
381
373
  console.log
382
- package (/tmp/tmp-3362-2aR70TGUSMQw)
374
+ package (/tmp/tmp-3177-rx022IB4Vh1y)
383
375
  
384
376
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
385
377
 
@@ -389,7 +381,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
389
381
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
390
382
 
391
383
  console.log
392
- package (/tmp/tmp-3362-IlZ3GWPPxT9T)
384
+ package (/tmp/tmp-3177-wC66wzdDPt3x)
393
385
  
394
386
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
395
387
 
@@ -399,7 +391,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
399
391
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
400
392
 
401
393
  console.log
402
- package (/tmp/tmp-3362-zRRZmf41aeyu)
394
+ package (/tmp/tmp-3177-dnM5rHCnT4w7)
403
395
  
404
396
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
405
397
 
@@ -422,7 +414,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
422
414
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
423
415
 
424
416
  console.log
425
- package (/tmp/tmp-3362-W4h3PP85YEHB)
417
+ package (/tmp/tmp-3177-Tk0nWJUKsHVX)
426
418
  
427
419
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
428
420
 
@@ -452,35 +444,43 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
452
444
   PASS  src/__tests__/packageEntry.spec.ts
453
445
  expectPackageEntries (SimpleHost)
454
446
  fix: true
455
- ✓ fixes missing entries (13 ms)
447
+ ✓ fixes missing entries (25 ms)
456
448
  ✓ fixes missing nested entries (5 ms)
457
449
  ✓ doesn't error for nested entries that are defined (1 ms)
458
450
  ✓ errors for keys that are missing (9 ms)
459
451
  ✓ handles both entries and entriesExist (9 ms)
460
452
  expectPackageEntries (CachingHost)
461
453
  fix: true
462
- ✓ fixes missing entries (14 ms)
463
- ✓ fixes missing nested entries (11 ms)
464
- ✓ doesn't error for nested entries that are defined (2 ms)
465
- ✓ errors for keys that are missing (9 ms)
454
+ ✓ fixes missing entries (13 ms)
455
+ ✓ fixes missing nested entries (2 ms)
456
+ ✓ doesn't error for nested entries that are defined (1 ms)
457
+ ✓ errors for keys that are missing (4 ms)
466
458
  ✓ handles both entries and entriesExist (15 ms)
467
459
 
460
+  PASS  src/__tests__/bannedDependencies.spec.ts
461
+ bannedDependencies
462
+ ✓ Flags banned dependencies correctly (7 ms)
463
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
464
+ ✓ Flags banned dependencies correctly w new globs (3 ms)
465
+ ✓ Flags banned dependencies correctly w exact (2 ms)
466
+ ✓ Flags banned transitives correctly (8 ms)
467
+
468
468
   PASS  src/__tests__/nestedWorkspaces.spec.ts
469
469
  nestedWorkspaces
470
470
  ✓ checks correctly when no packages (17 ms)
471
- ✓ checks correctly when one level packages (21 ms)
472
- ✓ checks fail when one level packages with no workspaces field (5 ms)
473
- ✓ checks correctly when two level packages with two level workspaces field (7 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 (10 ms)
471
+ ✓ checks correctly when one level packages (5 ms)
472
+ ✓ checks fail when one level packages with no workspaces field (3 ms)
473
+ ✓ checks correctly when two level packages with two level workspaces field (5 ms)
474
+ ✓ checks fail when two level packages with one level workspaces field (4 ms)
475
+ ✓ checks correctly when three level packages with three level workspaces field (4 ms)
476
476
 
477
477
   PASS  src/__tests__/requireDependency.spec.ts
478
478
  requireDependency
479
- ✓ checks correctly (13 ms)
480
- ✓ fixes correctly (9 ms)
479
+ ✓ checks correctly (12 ms)
480
+ ✓ fixes correctly (20 ms)
481
481
 
482
482
  console.log
483
- package (/tmp/tmp-3362-vpMcHAoMknHy)
483
+ package (/tmp/tmp-3171-76J63cOtgtIn)
484
484
  
485
485
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
486
486
 
@@ -490,7 +490,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
490
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
491
 
492
492
  console.log
493
- package-unknown-keys (/tmp/tmp-3362-DxNgX65mbgCZ)
493
+ package-unknown-keys (/tmp/tmp-3171-NOVUHkV79ws6)
494
494
  
495
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
496
 
@@ -500,7 +500,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
500
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
501
 
502
502
  console.log
503
- package (/tmp/tmp-3362-j9V1LhXdqjmj)
503
+ package (/tmp/tmp-3171-WFAVgu7sifu3)
504
504
  
505
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
506
 
@@ -510,7 +510,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
510
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
511
 
512
512
  console.log
513
- package (/tmp/tmp-3362-y4ytdk0G7VSr)
513
+ package (/tmp/tmp-3171-LIgYeKr3fA7C)
514
514
  
515
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
516
 
@@ -520,7 +520,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
520
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
521
 
522
522
  console.log
523
- package-unknown-keys (/tmp/tmp-3362-bc2rqJbxD8XO)
523
+ package-unknown-keys (/tmp/tmp-3171-zbdm6HGAkkyf)
524
524
  
525
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
526
 
@@ -530,7 +530,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
530
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
531
 
532
532
  console.log
533
- package (/tmp/tmp-3362-fuggZgxpnChg)
533
+ package (/tmp/tmp-3171-Lte37aRt1pnk)
534
534
  
535
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
536
 
@@ -542,25 +542,25 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
542
542
   PASS  src/__tests__/packageOrder.spec.ts
543
543
  expectPackageOrder (SimpleHost)
544
544
  fix: true
545
- ✓ fixes order for expected keys (15 ms)
546
- ✓ fixes order for unexpected keys (22 ms)
547
- ✓ fixes order using function (3 ms)
545
+ ✓ fixes order for expected keys (80 ms)
546
+ ✓ fixes order for unexpected keys (16 ms)
547
+ ✓ fixes order using function (5 ms)
548
548
  ✓ does nothing if already order (1 ms)
549
549
  expectPackageOrder (CachingHost)
550
550
  fix: true
551
- ✓ fixes order for expected keys (6 ms)
552
- ✓ fixes order for unexpected keys (15 ms)
553
- ✓ fixes order using function (33 ms)
554
- ✓ does nothing if already order (7 ms)
551
+ ✓ fixes order for expected keys (15 ms)
552
+ ✓ fixes order for unexpected keys (5 ms)
553
+ ✓ fixes order using function (3 ms)
554
+ ✓ does nothing if already order (1 ms)
555
555
 
556
556
   PASS  src/__tests__/consistentDependencies.spec.ts
557
557
  consistentDependencies
558
- ✓ checks correctly (24 ms)
558
+ ✓ checks correctly (15 ms)
559
559
  ✓ fixes correctly (4 ms)
560
- ✓ ignores ignored dependencies (2 ms)
560
+ ✓ ignores ignored dependencies (3 ms)
561
561
 
562
562
  console.log
563
- foo-lib (/tmp/tmp-3362-8PWNEyGg77mI)
563
+ foo-lib (/tmp/tmp-3171-oz7LUw3mFV3O)
564
564
  
565
565
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
566
566
 
@@ -570,7 +570,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
570
570
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
571
571
 
572
572
  console.log
573
- rootProject (/tmp/tmp-3360-WJSiOA5iPynF)
573
+ rootProject (/tmp/tmp-3177-wpywmQCQSQuQ)
574
574
  
575
575
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
576
576
 
@@ -580,47 +580,37 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
580
580
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
581
581
 
582
582
  console.log
583
- foo-lib (/tmp/tmp-3362-MJ3Xr3G2SpOy)
583
+ rootProject (/tmp/tmp-3177-JGcbAtVFxZbY)
584
584
  
585
585
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
586
586
 
587
587
  console.log
588
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
588
+ Fixed! foo.txt: Expect file contents to match
589
589
  
590
590
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
591
591
 
592
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
593
- alphabeticalScripts (SimpleHost)
594
- fix: true
595
- ✓ fixes unsorted scripts (12 ms)
596
- ✓ does nothing if already sorted (1 ms)
597
- alphabeticalScripts (CachingHost)
598
- fix: true
599
- ✓ fixes unsorted scripts (12 ms)
600
- ✓ does nothing if already sorted (1 ms)
601
-
602
592
  console.log
603
- rootProject (/tmp/tmp-3360-h8B6Orl79FdL)
593
+ rootProject (/tmp/tmp-3177-2SbO8813oO5A)
604
594
  
605
595
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
606
596
 
607
597
  console.log
608
- Fixed! foo.txt: Expect file contents to match
598
+ Fixed! nested/foo.txt: Expect file contents to match
609
599
  
610
600
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
611
601
 
612
602
  console.log
613
- rootProject (/tmp/tmp-3360-3CJqQYcjnka3)
603
+ foo-lib (/tmp/tmp-3171-abCDVBDQGdH7)
614
604
  
615
605
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
616
606
 
617
607
  console.log
618
- Fixed! nested/foo.txt: Expect file contents to match
608
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
619
609
  
620
610
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
611
 
622
612
  console.log
623
- rootProject (/tmp/tmp-3360-YkmTIi2z7oFs)
613
+ rootProject (/tmp/tmp-3177-rNyNV53B69NA)
624
614
  
625
615
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
626
616
 
@@ -629,8 +619,18 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
629
619
  
630
620
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
631
621
 
622
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
623
+ alphabeticalScripts (SimpleHost)
624
+ fix: true
625
+ ✓ fixes unsorted scripts (14 ms)
626
+ ✓ does nothing if already sorted (1 ms)
627
+ alphabeticalScripts (CachingHost)
628
+ fix: true
629
+ ✓ fixes unsorted scripts (14 ms)
630
+ ✓ does nothing if already sorted (2 ms)
631
+
632
632
  console.log
633
- rootProject (/tmp/tmp-3360-vcz6KNraM1lm)
633
+ rootProject (/tmp/tmp-3177-V48O5AQg01nT)
634
634
  
635
635
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
636
636
 
@@ -640,7 +640,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
640
640
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
641
641
 
642
642
  console.log
643
- rootProject (/tmp/tmp-3360-srJd5aRzNzlj)
643
+ rootProject (/tmp/tmp-3177-0uykn4UJpAEH)
644
644
  
645
645
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
646
646
 
@@ -652,17 +652,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
652
652
   PASS  src/__tests__/fileContents.spec.ts
653
653
  fileContents (SimpleHost)
654
654
  fix: true
655
- ✓ works with async generator (42 ms)
655
+ ✓ works with async generator (8 ms)
656
656
  ✓ fixes missing file (3 ms)
657
- ✓ fixes missing nested file (3 ms)
657
+ ✓ fixes missing nested file (5 ms)
658
658
  fileContents (CachingHost)
659
659
  fix: true
660
- ✓ works with async generator (11 ms)
661
- ✓ fixes missing file (3 ms)
662
- ✓ fixes missing nested file (3 ms)
660
+ ✓ works with async generator (6 ms)
661
+ ✓ fixes missing file (4 ms)
662
+ ✓ fixes missing nested file (5 ms)
663
663
 
664
664
  Test Suites: 11 passed, 11 total
665
665
  Tests: 118 passed, 118 total
666
666
  Snapshots: 0 total
667
- Time: 9.613 s
667
+ Time: 9.728 s
668
668
  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/public/util.js 106.00 B
12
13
  ESM build/js/index.js 50.11 KB
13
14
  ESM build/js/chunk-A2MUUSNE.js 512.00 B
14
- ESM build/js/public/util.js 106.00 B
15
+ ESM build/js/public/util.js.map 71.00 B
15
16
  ESM build/js/index.js.map 100.21 KB
16
17
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
17
- ESM build/js/public/util.js.map 71.00 B
18
- ESM ⚡️ Build success in 62ms
18
+ ESM ⚡️ Build success in 50ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.131+4a2b5f4",
3
+ "version": "0.5.0-alpha.133+a6e1e78",
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.131+4a2b5f4",
34
- "@monorepolint/core": "^0.5.0-alpha.131+4a2b5f4",
35
- "@monorepolint/utils": "^0.5.0-alpha.131+4a2b5f4",
33
+ "@monorepolint/config": "^0.5.0-alpha.133+a6e1e78",
34
+ "@monorepolint/core": "^0.5.0-alpha.133+a6e1e78",
35
+ "@monorepolint/utils": "^0.5.0-alpha.133+a6e1e78",
36
36
  "globby": "^14.0.0",
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": "4a2b5f492e34f088227384b494c018d8fe04d216"
62
+ "gitHead": "a6e1e78e27ca6a622665275f0a16181b06ab59ca"
63
63
  }