@monorepolint/rules 0.5.0-alpha.127 → 0.5.0-alpha.129

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/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
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:3240) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
11
- (Use `node --trace-warnings ...` to show where the warning was created)
12
-  PASS  src/__tests__/consistentVersions.spec.ts (6.591 s)
10
+  PASS  src/__tests__/consistentVersions.spec.ts (6.806 s)
13
11
  consistentVersions
14
12
  standard tests
15
13
  ✓ Does nothing when arguments are empty (12 ms)
16
- ✓ Fixes packages that have an incorrect dependency version (5 ms)
14
+ ✓ Fixes packages that have an incorrect dependency version (12 ms)
17
15
  ✓ Ignores packages that have a correct dependency version (2 ms)
18
- ✓ Fixes packages that have an incorrect devDependency version (3 ms)
16
+ ✓ Fixes packages that have an incorrect devDependency version (2 ms)
19
17
  ✓ Ignores packages that have a correct devDependency version (2 ms)
20
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (9 ms)
18
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (5 ms)
21
19
  Multiple accepted versions tests
22
- ✓ Accepts a match when multiple versions are configured (3 ms)
23
- ✓ Errors when version does not match (9 ms)
20
+ ✓ Accepts a match when multiple versions are configured (2 ms)
21
+ ✓ Errors when version does not match (5 ms)
24
22
 
23
+ (node:3296) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
24
+ (Use `node --trace-warnings ...` to show where the warning was created)
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-3241-zmOY2VRByjmV)
27
+ package-without-scripts (/tmp/tmp-3302-2zP2KzBwIbGw)
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-3241-u1CI4kmD2UJf)
50
+ package-without-scripts (/tmp/tmp-3302-NErEPryq74oF)
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-3241-Bc5mnFPlTXnR)
60
+ package-with-scripts (/tmp/tmp-3302-rpdyNB4ZeX8b)
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-3241-Rvk3tBw1hyEN)
70
+ package-with-scripts (/tmp/tmp-3302-X1ov3stpUOIe)
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-3241-PUWUZ0KtYu7v)
93
+ package-with-scripts (/tmp/tmp-3302-iylplG0DnYP4)
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-3241-kJ3yfLiu7oZJ)
103
+ package-with-scripts (/tmp/tmp-3302-9erz1v5yXWh8)
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-3241-2GBVRR3MbYJw)
113
+ package-with-scripts (/tmp/tmp-3302-VXHp1yqy2NtY)
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:3241) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3302) 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-3241-56FTjfOAo0gs)
125
+ package-without-scripts (/tmp/tmp-3302-g9VEz6KLVjLH)
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-3241-50V85csHsgkz)
148
+ package-without-scripts (/tmp/tmp-3302-f5mfNgQNiOGQ)
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-3241-8S0qxqBGfRFe)
158
+ package-with-scripts (/tmp/tmp-3302-6pBCFc4e4hGf)
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-3241-dZjMVLwtZn4V)
168
+ package-with-scripts (/tmp/tmp-3302-y0r1NzLKRi3j)
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-3241-ICWRQGvwA9lS)
191
+ package-with-scripts (/tmp/tmp-3302-1EWbHFlQY62p)
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-3241-8NbZ4OheSVaR)
201
+ package-with-scripts (/tmp/tmp-3302-HZNHzXPgunXp)
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-3241-NAQnsMqY9NtC)
211
+ package-with-scripts (/tmp/tmp-3302-D5w2JY21O9Ec)
212
212
  
213
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
214
214
 
@@ -217,98 +217,98 @@ 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 (7.143 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (7.222 s)
221
221
  expectPackageScript (SimpleHost)
222
222
  fix: false
223
- ✓ handles an empty script section (98 ms)
223
+ ✓ handles an empty script section (80 ms)
224
224
  fix: true
225
- ✓ fixes an empty script section (6 ms)
225
+ ✓ fixes an empty script section (5 ms)
226
226
  ✓ adds a script (6 ms)
227
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)
229
- ✓ uses the fixValue for fixing if provided (4 ms)
230
- ✓ can fix to empty (4 ms)
228
+ ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
229
+ ✓ uses the fixValue for fixing if provided (11 ms)
230
+ ✓ can fix to empty (5 ms)
231
231
  ✓ can allow only empty (4 ms)
232
232
  expectPackageScript (CachingHost)
233
233
  fix: false
234
- ✓ handles an empty script section (22 ms)
234
+ ✓ handles an empty script section (31 ms)
235
235
  fix: true
236
- ✓ fixes an empty script section (5 ms)
237
- ✓ adds a script (23 ms)
236
+ ✓ fixes an empty script section (4 ms)
237
+ ✓ adds a script (4 ms)
238
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 (21 ms)
240
- ✓ uses the fixValue for fixing if provided (6 ms)
241
- ✓ can fix to empty (8 ms)
242
- ✓ can allow only empty (5 ms)
239
+ ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
240
+ ✓ uses the fixValue for fixing if provided (5 ms)
241
+ ✓ can fix to empty (4 ms)
242
+ ✓ can allow only empty (4 ms)
243
243
 
244
- (node:3239) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (node:3295) 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.442 s)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.509 s)
247
247
  mustSatisfyPeerDependencies
248
248
  ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
249
249
  ✓ Flags conflicting peer dependencies (4 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (7 ms)
251
- ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
252
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (5 ms)
253
- ✓ Honors dependencyWhitelist (4 ms)
254
- ✓ Honors dependencyBlacklist (12 ms)
250
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
251
+ ✓ Flags missing peer dependencies (NO regular dependency present) (3 ms)
252
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (7 ms)
253
+ ✓ Honors dependencyWhitelist (5 ms)
254
+ ✓ Honors dependencyBlacklist (13 ms)
255
255
  regex tests
256
- ✓ Properly matches any version range regex (34 ms)
257
- ✓ Properly matches greator or equal version range regex (48 ms)
258
- ✓ Properly matches major version range regex (10 ms)
259
- ✓ Properly matches allowed range regex (28 ms)
256
+ ✓ Properly matches any version range regex (28 ms)
257
+ ✓ Properly matches greator or equal version range regex (18 ms)
258
+ ✓ Properly matches major version range regex (25 ms)
259
+ ✓ Properly matches allowed range regex (25 ms)
260
260
  Determines dependencies satisfaction correctly
261
- ✓ version is version (11 ms)
261
+ ✓ version is version (1 ms)
262
262
  ✓ version satisfies a range (4 ms)
263
263
  ✓ higher version satisfies a range (3 ms)
264
264
  ✓ version satisfies a greator or equal version range (1 ms)
265
- ✓ higher version satisfies a greator or equal version range (1 ms)
266
- ✓ version satisfies 'any' range (1 ms)
265
+ ✓ higher version satisfies a greator or equal version range (10 ms)
266
+ ✓ version satisfies 'any' range (8 ms)
267
267
  ✓ greator or equal version range satisfies 'any' range (1 ms)
268
- ✓ range satisfies 'any' range (1 ms)
269
- ✓ union range satisfies 'any' range (2 ms)
268
+ ✓ range satisfies 'any' range (2 ms)
269
+ ✓ union range satisfies 'any' range (1 ms)
270
270
  ✓ version found in union start (1 ms)
271
271
  ✓ version found in union end (1 ms)
272
272
  ✓ version satisfies a range in union start (1 ms)
273
- ✓ version satisfies a range in union end (2 ms)
273
+ ✓ version satisfies a range in union end (1 ms)
274
274
  ✓ higher version satisfies a range in union start (1 ms)
275
275
  ✓ higher version satisfies a range in union end (1 ms)
276
276
  ✓ range found in union start (1 ms)
277
277
  ✓ range found in union end (1 ms)
278
278
  ✓ union satisfies greator or equal version range (1 ms)
279
- ✓ greator or equal version range satisfies greator or equal version range (1 ms)
279
+ ✓ greator or equal version range satisfies greator or equal version range
280
280
  ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
281
- ✓ higher range satisfies a range in union start (1 ms)
282
- ✓ higher range satisfies a range in union end
281
+ ✓ higher range satisfies a range in union start
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 (3 ms)
285
- ✓ version missing in union
284
+ ✓ equivalent major ranges satisfy each other (5 ms)
285
+ ✓ version missing in union (1 ms)
286
286
  ✓ range missing in union (1 ms)
287
287
  Determines dependencies intersections correctly
288
- ✓ equivalence (2 ms)
289
- ✓ exact vs any
288
+ ✓ equivalence (3 ms)
289
+ ✓ exact vs any (1 ms)
290
290
  ✓ major vs any (1 ms)
291
291
  ✓ greater or equal vs any (1 ms)
292
- ✓ any vs any (1 ms)
293
- ✓ exact vs greater or equal (1 ms)
294
- ✓ major vs greater or equal (2 ms)
295
- ✓ greater or equal vs greater or equal (1 ms)
296
- ✓ exact vs major (1 ms)
297
- ✓ major vs major (1 ms)
298
- ✓ exact vs union (2 ms)
292
+ ✓ any vs any
293
+ ✓ exact vs greater or equal (2 ms)
294
+ ✓ major vs greater or equal (1 ms)
295
+ ✓ greater or equal vs greater or equal (4 ms)
296
+ ✓ exact vs major (2 ms)
297
+ ✓ major vs major (4 ms)
298
+ ✓ exact vs union (1 ms)
299
299
  ✓ major vs union (1 ms)
300
- ✓ union vs union (2 ms)
300
+ ✓ union vs union (1 ms)
301
301
 
302
302
   PASS  src/__tests__/bannedDependencies.spec.ts
303
303
  bannedDependencies
304
304
  ✓ Flags banned dependencies correctly (11 ms)
305
305
  ✓ Flags banned dependencies correctly w legacy globs (2 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 (7 ms)
306
+ ✓ Flags banned dependencies correctly w new globs (1 ms)
307
+ ✓ Flags banned dependencies correctly w exact (1 ms)
308
+ ✓ Flags banned transitives correctly (8 ms)
309
309
 
310
310
  console.log
311
- package (/tmp/tmp-3241-6QjYL5l3mWJr)
311
+ package (/tmp/tmp-3302-MmbVdvWCYT8A)
312
312
  
313
313
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
314
314
 
@@ -318,7 +318,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
318
318
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
319
319
 
320
320
  console.log
321
- package (/tmp/tmp-3241-2c5qaKH8j4tP)
321
+ package (/tmp/tmp-3302-SaIwCABYAxzz)
322
322
  
323
323
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
324
324
 
@@ -328,7 +328,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
328
328
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
329
329
 
330
330
  console.log
331
- package (/tmp/tmp-3241-sDHDYQAsUc9r)
331
+ package (/tmp/tmp-3302-qL2hQTwO6VpC)
332
332
  
333
333
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
334
334
 
@@ -351,7 +351,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
351
351
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
352
352
 
353
353
  console.log
354
- package (/tmp/tmp-3241-iua8wEYdpMdo)
354
+ package (/tmp/tmp-3302-UvGW6nYhtkBd)
355
355
  
356
356
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
357
357
 
@@ -379,7 +379,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
379
379
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
380
380
 
381
381
  console.log
382
- package (/tmp/tmp-3241-PVMjYmQ52Sza)
382
+ package (/tmp/tmp-3302-lxyDdo3uUmnw)
383
383
  
384
384
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
385
385
 
@@ -389,7 +389,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
389
389
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
390
390
 
391
391
  console.log
392
- package (/tmp/tmp-3241-hHneJK0VHcPQ)
392
+ package (/tmp/tmp-3302-AmlYSFoL7vzC)
393
393
  
394
394
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
395
395
 
@@ -399,7 +399,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
399
399
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
400
400
 
401
401
  console.log
402
- package (/tmp/tmp-3241-s3775ujAes5M)
402
+ package (/tmp/tmp-3302-nARTA2aOTfxE)
403
403
  
404
404
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
405
405
 
@@ -422,7 +422,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
422
422
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
423
423
 
424
424
  console.log
425
- package (/tmp/tmp-3241-Lux3Im8hLY7i)
425
+ package (/tmp/tmp-3302-YyPetPt2lt0p)
426
426
  
427
427
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
428
428
 
@@ -452,35 +452,41 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
452
452
   PASS  src/__tests__/packageEntry.spec.ts
453
453
  expectPackageEntries (SimpleHost)
454
454
  fix: true
455
- ✓ fixes missing entries (15 ms)
456
- ✓ fixes missing nested entries (5 ms)
455
+ ✓ fixes missing entries (34 ms)
456
+ ✓ fixes missing nested entries (8 ms)
457
457
  ✓ doesn't error for nested entries that are defined (1 ms)
458
- ✓ errors for keys that are missing (26 ms)
459
- ✓ handles both entries and entriesExist (32 ms)
458
+ ✓ errors for keys that are missing (9 ms)
459
+ ✓ handles both entries and entriesExist (24 ms)
460
460
  expectPackageEntries (CachingHost)
461
461
  fix: true
462
- ✓ fixes missing entries (48 ms)
463
- ✓ fixes missing nested entries (18 ms)
464
- ✓ doesn't error for nested entries that are defined (6 ms)
465
- ✓ errors for keys that are missing (14 ms)
466
- ✓ handles both entries and entriesExist (11 ms)
462
+ ✓ fixes missing entries (14 ms)
463
+ ✓ fixes missing nested entries (5 ms)
464
+ ✓ doesn't error for nested entries that are defined (1 ms)
465
+ ✓ errors for keys that are missing (7 ms)
466
+ ✓ handles both entries and entriesExist (13 ms)
467
467
 
468
468
   PASS  src/__tests__/nestedWorkspaces.spec.ts
469
469
  nestedWorkspaces
470
- ✓ checks correctly when no packages (18 ms)
471
- ✓ checks correctly when one level packages (6 ms)
472
- ✓ checks fail when one level packages with no workspaces field (6 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 (13 ms)
470
+ ✓ checks correctly when no packages (15 ms)
471
+ ✓ checks correctly when one level packages (7 ms)
472
+ ✓ checks fail when one level packages with no workspaces field (4 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 (6 ms)
475
475
  ✓ checks correctly when three level packages with three level workspaces field (7 ms)
476
476
 
477
477
   PASS  src/__tests__/requireDependency.spec.ts
478
478
  requireDependency
479
- ✓ checks correctly (17 ms)
480
- ✓ fixes correctly (6 ms)
479
+ ✓ checks correctly (20 ms)
480
+ ✓ fixes correctly (8 ms)
481
+
482
+  PASS  src/__tests__/consistentDependencies.spec.ts
483
+ consistentDependencies
484
+ ✓ checks correctly (11 ms)
485
+ ✓ fixes correctly (3 ms)
486
+ ✓ ignores ignored dependencies (3 ms)
481
487
 
482
488
  console.log
483
- package (/tmp/tmp-3241-BXWw55NGHOpu)
489
+ package (/tmp/tmp-3302-rZlJsEL56XfG)
484
490
  
485
491
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
486
492
 
@@ -490,7 +496,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
490
496
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
497
 
492
498
  console.log
493
- package-unknown-keys (/tmp/tmp-3241-iHP1FwqdHzF4)
499
+ package-unknown-keys (/tmp/tmp-3302-ViT3M6VdDqyq)
494
500
  
495
501
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
502
 
@@ -500,7 +506,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
500
506
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
507
 
502
508
  console.log
503
- package (/tmp/tmp-3241-F57pOfRiJ0x7)
509
+ package (/tmp/tmp-3302-krqG0YeTKlc2)
504
510
  
505
511
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
512
 
@@ -510,7 +516,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
510
516
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
517
 
512
518
  console.log
513
- package (/tmp/tmp-3241-dN37rLf5J0k0)
519
+ package (/tmp/tmp-3302-QS13VpygAztz)
514
520
  
515
521
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
522
 
@@ -520,7 +526,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
520
526
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
527
 
522
528
  console.log
523
- package-unknown-keys (/tmp/tmp-3241-rNTjOlEi8o2B)
529
+ package-unknown-keys (/tmp/tmp-3302-ThXhMcKVBaTz)
524
530
  
525
531
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
532
 
@@ -530,97 +536,76 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
530
536
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
537
 
532
538
  console.log
533
- package (/tmp/tmp-3241-N6eMfyGu4Auk)
534
- 
535
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
-
537
- console.log
538
- Fixed! package.json: Incorrect order of fields in package.json
539
+ package (/tmp/tmp-3302-K8GWVJG4sF32)
539
540
  
540
541
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
541
542
 
542
543
   PASS  src/__tests__/packageOrder.spec.ts
543
544
  expectPackageOrder (SimpleHost)
544
545
  fix: true
545
- ✓ fixes order for expected keys (26 ms)
546
- ✓ fixes order for unexpected keys (28 ms)
547
- ✓ fixes order using function (5 ms)
546
+ ✓ fixes order for expected keys (18 ms)
547
+ ✓ fixes order for unexpected keys (24 ms)
548
+ ✓ fixes order using function (4 ms)
548
549
  ✓ does nothing if already order (2 ms)
549
550
  expectPackageOrder (CachingHost)
550
551
  fix: true
551
552
  ✓ fixes order for expected keys (6 ms)
552
- ✓ fixes order for unexpected keys (4 ms)
553
- ✓ fixes order using function (8 ms)
554
- ✓ does nothing if already order (1 ms)
555
-
556
-  PASS  src/__tests__/consistentDependencies.spec.ts
557
- consistentDependencies
558
- ✓ checks correctly (16 ms)
559
- ✓ fixes correctly (4 ms)
560
- ✓ ignores ignored dependencies (3 ms)
553
+ ✓ fixes order for unexpected keys (5 ms)
554
+ ✓ fixes order using function (4 ms)
555
+ ✓ does nothing if already order (2 ms)
561
556
 
562
557
  console.log
563
- foo-lib (/tmp/tmp-3241-6ICFPUVUeho3)
558
+ Fixed! package.json: Incorrect order of fields in package.json
564
559
  
565
560
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
566
561
 
567
562
  console.log
568
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
563
+ rootProject (/tmp/tmp-3296-K9ecRRhEhKz3)
569
564
  
570
565
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
571
566
 
572
567
  console.log
573
- foo-lib (/tmp/tmp-3241-IwN6ndJiG48M)
568
+ Fixed! foo.txt: Expect file contents to match
574
569
  
575
570
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
576
571
 
577
572
  console.log
578
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
573
+ rootProject (/tmp/tmp-3296-glLwXlKNV77J)
579
574
  
580
575
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
581
576
 
582
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
583
- alphabeticalScripts (SimpleHost)
584
- fix: true
585
- ✓ fixes unsorted scripts (12 ms)
586
- ✓ does nothing if already sorted (1 ms)
587
- alphabeticalScripts (CachingHost)
588
- fix: true
589
- ✓ fixes unsorted scripts (12 ms)
590
- ✓ does nothing if already sorted (1 ms)
591
-
592
577
  console.log
593
- rootProject (/tmp/tmp-3240-4uqUq1OLaAE9)
578
+ Fixed! foo.txt: Expect file contents to match
594
579
  
595
580
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
596
581
 
597
582
  console.log
598
- Fixed! foo.txt: Expect file contents to match
583
+ foo-lib (/tmp/tmp-3295-o52N0EIbn360)
599
584
  
600
585
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
601
586
 
602
587
  console.log
603
- rootProject (/tmp/tmp-3240-RjZYz1XkrkAv)
588
+ rootProject (/tmp/tmp-3296-1wvFaL3TBUls)
604
589
  
605
590
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
606
591
 
607
592
  console.log
608
- Fixed! foo.txt: Expect file contents to match
593
+ Fixed! nested/foo.txt: Expect file contents to match
609
594
  
610
595
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
611
596
 
612
597
  console.log
613
- rootProject (/tmp/tmp-3240-CQNhutqeYM0m)
598
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
614
599
  
615
600
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
616
601
 
617
602
  console.log
618
- Fixed! nested/foo.txt: Expect file contents to match
603
+ rootProject (/tmp/tmp-3296-O4qyaYxEl44u)
619
604
  
620
605
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
606
 
622
607
  console.log
623
- rootProject (/tmp/tmp-3240-k10822wcJNhz)
608
+ foo-lib (/tmp/tmp-3295-tySZuNKYqd59)
624
609
  
625
610
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
626
611
 
@@ -630,17 +615,32 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
630
615
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
631
616
 
632
617
  console.log
633
- rootProject (/tmp/tmp-3240-RdUrXZ9cffnc)
618
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
619
+ 
620
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
+
622
+ console.log
623
+ rootProject (/tmp/tmp-3296-1cTPWf4duqak)
634
624
  
635
625
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
636
626
 
627
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
628
+ alphabeticalScripts (SimpleHost)
629
+ fix: true
630
+ ✓ fixes unsorted scripts (50 ms)
631
+ ✓ does nothing if already sorted (1 ms)
632
+ alphabeticalScripts (CachingHost)
633
+ fix: true
634
+ ✓ fixes unsorted scripts (13 ms)
635
+ ✓ does nothing if already sorted (1 ms)
636
+
637
637
  console.log
638
638
  Fixed! foo.txt: Expect file contents to match
639
639
  
640
640
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
641
641
 
642
642
  console.log
643
- rootProject (/tmp/tmp-3240-y5JqxSEn2Jaf)
643
+ rootProject (/tmp/tmp-3296-SiwSBNppSyzf)
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 (41 ms)
656
- ✓ fixes missing file (2 ms)
657
- ✓ fixes missing nested file (4 ms)
655
+ ✓ works with async generator (46 ms)
656
+ ✓ fixes missing file (3 ms)
657
+ ✓ fixes missing nested file (3 ms)
658
658
  fileContents (CachingHost)
659
659
  fix: true
660
- ✓ works with async generator (4 ms)
660
+ ✓ works with async generator (14 ms)
661
661
  ✓ fixes missing file (3 ms)
662
662
  ✓ fixes missing nested file (3 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.693 s
667
+ Time: 9.789 s
668
668
  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.21 KB
17
17
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
18
- ESM ⚡️ Build success in 65ms
18
+ ESM ⚡️ Build success in 78ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.127+5a961e3",
3
+ "version": "0.5.0-alpha.129+2867735",
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.127+5a961e3",
34
- "@monorepolint/core": "^0.5.0-alpha.127+5a961e3",
35
- "@monorepolint/utils": "^0.5.0-alpha.127+5a961e3",
33
+ "@monorepolint/config": "^0.5.0-alpha.129+2867735",
34
+ "@monorepolint/core": "^0.5.0-alpha.129+2867735",
35
+ "@monorepolint/utils": "^0.5.0-alpha.129+2867735",
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": "5a961e3df8f16aabf8cfa952ac4e3ba4c9b81db9"
62
+ "gitHead": "286773563d63844ba674f02884633896b75fa5b5"
63
63
  }