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

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,23 +6,25 @@ 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
- (node:3286) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
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
10
11
  (Use `node --trace-warnings ...` to show where the warning was created)
11
-  PASS  src/__tests__/consistentVersions.spec.ts (6.71 s)
12
+  PASS  src/__tests__/consistentVersions.spec.ts (6.591 s)
12
13
  consistentVersions
13
14
  standard tests
14
- ✓ Does nothing when arguments are empty (13 ms)
15
- ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
- ✓ Ignores packages that have a correct dependency version (1 ms)
17
- ✓ Fixes packages that have an incorrect devDependency version (2 ms)
15
+ ✓ Does nothing when arguments are empty (12 ms)
16
+ ✓ Fixes packages that have an incorrect dependency version (5 ms)
17
+ ✓ Ignores packages that have a correct dependency version (2 ms)
18
+ ✓ Fixes packages that have an incorrect devDependency version (3 ms)
18
19
  ✓ Ignores packages that have a correct devDependency version (2 ms)
19
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
20
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (9 ms)
20
21
  Multiple accepted versions tests
21
22
  ✓ Accepts a match when multiple versions are configured (3 ms)
22
- ✓ Errors when version does not match (3 ms)
23
+ ✓ Errors when version does not match (9 ms)
23
24
 
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 `'.'`
24
26
  console.log
25
- package-without-scripts (/tmp/tmp-3292-Vp52GdfQOn9m)
27
+ package-without-scripts (/tmp/tmp-3241-zmOY2VRByjmV)
26
28
  
27
29
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
28
30
 
@@ -45,7 +47,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
45
47
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
46
48
 
47
49
  console.log
48
- package-without-scripts (/tmp/tmp-3292-KBQGIFsmF4Tk)
50
+ package-without-scripts (/tmp/tmp-3241-u1CI4kmD2UJf)
49
51
  
50
52
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
51
53
 
@@ -55,7 +57,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
55
57
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
56
58
 
57
59
  console.log
58
- package-with-scripts (/tmp/tmp-3292-VtbC3A0WO4va)
60
+ package-with-scripts (/tmp/tmp-3241-Bc5mnFPlTXnR)
59
61
  
60
62
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
61
63
 
@@ -65,7 +67,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
65
67
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
66
68
 
67
69
  console.log
68
- package-with-scripts (/tmp/tmp-3292-DIf65alDXcgc)
70
+ package-with-scripts (/tmp/tmp-3241-Rvk3tBw1hyEN)
69
71
  
70
72
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
71
73
 
@@ -88,7 +90,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
88
90
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
89
91
 
90
92
  console.log
91
- package-with-scripts (/tmp/tmp-3292-PpK7Y4vUo0cJ)
93
+ package-with-scripts (/tmp/tmp-3241-PUWUZ0KtYu7v)
92
94
  
93
95
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
94
96
 
@@ -98,7 +100,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
98
100
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
99
101
 
100
102
  console.log
101
- package-with-scripts (/tmp/tmp-3292-cFLCiyYyaByK)
103
+ package-with-scripts (/tmp/tmp-3241-kJ3yfLiu7oZJ)
102
104
  
103
105
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
104
106
 
@@ -108,7 +110,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
108
110
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
109
111
 
110
112
  console.log
111
- package-with-scripts (/tmp/tmp-3292-wUJpnAVxfdH7)
113
+ package-with-scripts (/tmp/tmp-3241-2GBVRR3MbYJw)
112
114
  
113
115
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
114
116
 
@@ -117,14 +119,13 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
117
119
  
118
120
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
119
121
 
120
- (node:3292) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3241) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
121
123
  (Use `node --trace-warnings ...` to show where the warning was created)
122
124
  console.log
123
- package-without-scripts (/tmp/tmp-3292-XAfY1cFnXwgy)
125
+ package-without-scripts (/tmp/tmp-3241-56FTjfOAo0gs)
124
126
  
125
127
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
126
128
 
127
- 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 `'.'`
128
129
  console.error
129
130
   Error! package.json: No scripts block in package.json
130
131
  
@@ -144,7 +145,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
144
145
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
145
146
 
146
147
  console.log
147
- package-without-scripts (/tmp/tmp-3292-ck9P4E4ZRPaC)
148
+ package-without-scripts (/tmp/tmp-3241-50V85csHsgkz)
148
149
  
149
150
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
150
151
 
@@ -154,7 +155,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
154
155
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
155
156
 
156
157
  console.log
157
- package-with-scripts (/tmp/tmp-3292-mbtxkmpmXVsx)
158
+ package-with-scripts (/tmp/tmp-3241-8S0qxqBGfRFe)
158
159
  
159
160
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
160
161
 
@@ -164,7 +165,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
164
165
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
165
166
 
166
167
  console.log
167
- package-with-scripts (/tmp/tmp-3292-qvDgAg63PlXh)
168
+ package-with-scripts (/tmp/tmp-3241-dZjMVLwtZn4V)
168
169
  
169
170
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
170
171
 
@@ -187,7 +188,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
187
188
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
188
189
 
189
190
  console.log
190
- package-with-scripts (/tmp/tmp-3292-pBj99xzsyqFg)
191
+ package-with-scripts (/tmp/tmp-3241-ICWRQGvwA9lS)
191
192
  
192
193
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
193
194
 
@@ -197,7 +198,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
197
198
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
198
199
 
199
200
  console.log
200
- package-with-scripts (/tmp/tmp-3292-5pvHLvpTqqJ1)
201
+ package-with-scripts (/tmp/tmp-3241-8NbZ4OheSVaR)
201
202
  
202
203
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
203
204
 
@@ -207,7 +208,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
207
208
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
208
209
 
209
210
  console.log
210
- package-with-scripts (/tmp/tmp-3292-tqR7UZYN06GA)
211
+ package-with-scripts (/tmp/tmp-3241-NAQnsMqY9NtC)
211
212
  
212
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
213
214
 
@@ -216,90 +217,98 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
216
217
  
217
218
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
218
219
 
219
-  PASS  src/__tests__/packageScript.spec.ts (6.906 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (7.143 s)
220
221
  expectPackageScript (SimpleHost)
221
222
  fix: false
222
- ✓ handles an empty script section (148 ms)
223
+ ✓ handles an empty script section (98 ms)
223
224
  fix: true
224
- ✓ fixes an empty script section (29 ms)
225
- ✓ adds a script (14 ms)
226
- ✓ does nothing if the value exists (3 ms)
227
- ✓ errors if long form is used and no value matches and there is no fixValue (17 ms)
228
- ✓ uses the fixValue for fixing if provided (10 ms)
229
- ✓ can fix to empty (8 ms)
230
- ✓ can allow only empty (10 ms)
225
+ ✓ fixes an empty script section (6 ms)
226
+ ✓ adds a script (6 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)
229
+ ✓ uses the fixValue for fixing if provided (4 ms)
230
+ ✓ can fix to empty (4 ms)
231
+ ✓ can allow only empty (4 ms)
231
232
  expectPackageScript (CachingHost)
232
233
  fix: false
233
- ✓ handles an empty script section (37 ms)
234
+ ✓ handles an empty script section (22 ms)
234
235
  fix: true
235
- ✓ fixes an empty script section (14 ms)
236
- ✓ adds a script (7 ms)
237
- ✓ does nothing if the value exists (2 ms)
238
- ✓ errors if long form is used and no value matches and there is no fixValue (12 ms)
239
- ✓ uses the fixValue for fixing if provided (13 ms)
240
- ✓ can fix to empty (4 ms)
241
- ✓ can allow only empty (3 ms)
236
+ ✓ fixes an empty script section (5 ms)
237
+ ✓ adds a script (23 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 (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)
242
243
 
243
- (node:3285) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (node:3239) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
245
  (Use `node --trace-warnings ...` to show where the warning was created)
245
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.618 s)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.442 s)
246
247
  mustSatisfyPeerDependencies
247
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (8 ms)
248
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
248
249
  ✓ Flags conflicting peer dependencies (4 ms)
249
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (3 ms)
250
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (7 ms)
250
251
  ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
251
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
252
- ✓ Honors dependencyWhitelist (5 ms)
253
- ✓ Honors dependencyBlacklist (5 ms)
252
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (5 ms)
253
+ ✓ Honors dependencyWhitelist (4 ms)
254
+ ✓ Honors dependencyBlacklist (12 ms)
254
255
  regex tests
255
256
  ✓ Properly matches any version range regex (34 ms)
256
- ✓ Properly matches greator or equal version range regex (36 ms)
257
+ ✓ Properly matches greator or equal version range regex (48 ms)
257
258
  ✓ Properly matches major version range regex (10 ms)
258
- ✓ Properly matches allowed range regex (36 ms)
259
+ ✓ Properly matches allowed range regex (28 ms)
259
260
  Determines dependencies satisfaction correctly
260
- ✓ version is version (1 ms)
261
- ✓ version satisfies a range (5 ms)
262
- ✓ higher version satisfies a range (2 ms)
263
- ✓ version satisfies a greator or equal version range (2 ms)
261
+ ✓ version is version (11 ms)
262
+ ✓ version satisfies a range (4 ms)
263
+ ✓ higher version satisfies a range (3 ms)
264
+ ✓ version satisfies a greator or equal version range (1 ms)
264
265
  ✓ higher version satisfies a greator or equal version range (1 ms)
265
266
  ✓ version satisfies 'any' range (1 ms)
266
- ✓ greator or equal version range satisfies 'any' range (7 ms)
267
- ✓ range satisfies 'any' range (2 ms)
268
- ✓ union range satisfies 'any' range (1 ms)
269
- ✓ version found in union start (12 ms)
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)
270
+ ✓ version found in union start (1 ms)
270
271
  ✓ version found in union end (1 ms)
271
272
  ✓ version satisfies a range in union start (1 ms)
272
- ✓ version satisfies a range in union end (1 ms)
273
+ ✓ version satisfies a range in union end (2 ms)
273
274
  ✓ higher version satisfies a range in union start (1 ms)
274
275
  ✓ higher version satisfies a range in union end (1 ms)
275
276
  ✓ range found in union start (1 ms)
276
277
  ✓ range found in union end (1 ms)
277
278
  ✓ union satisfies greator or equal version range (1 ms)
278
279
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
279
- ✓ equivalent greator or equal version ranges satisfy each other (2 ms)
280
+ ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
280
281
  ✓ higher range satisfies a range in union start (1 ms)
281
- ✓ higher range satisfies a range in union end (1 ms)
282
- ✓ equivalent 'any' ranges satisfy each other
283
- ✓ equivalent major ranges satisfy each other (5 ms)
284
- ✓ version missing in union (1 ms)
282
+ ✓ higher range satisfies a range in union end
283
+ ✓ equivalent 'any' ranges satisfy each other (1 ms)
284
+ ✓ equivalent major ranges satisfy each other (3 ms)
285
+ ✓ version missing in union
285
286
  ✓ range missing in union (1 ms)
286
287
  Determines dependencies intersections correctly
287
- ✓ equivalence (1 ms)
288
+ ✓ equivalence (2 ms)
288
289
  ✓ exact vs any
289
290
  ✓ major vs any (1 ms)
290
291
  ✓ greater or equal vs any (1 ms)
291
292
  ✓ any vs any (1 ms)
292
293
  ✓ exact vs greater or equal (1 ms)
293
294
  ✓ major vs greater or equal (2 ms)
294
- ✓ greater or equal vs greater or equal (14 ms)
295
- ✓ exact vs major (2 ms)
295
+ ✓ greater or equal vs greater or equal (1 ms)
296
+ ✓ exact vs major (1 ms)
296
297
  ✓ major vs major (1 ms)
297
- ✓ exact vs union (1 ms)
298
+ ✓ exact vs union (2 ms)
298
299
  ✓ major vs union (1 ms)
299
- ✓ union vs union (3 ms)
300
+ ✓ union vs union (2 ms)
301
+
302
+  PASS  src/__tests__/bannedDependencies.spec.ts
303
+ bannedDependencies
304
+ ✓ Flags banned dependencies correctly (11 ms)
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)
300
309
 
301
310
  console.log
302
- package (/tmp/tmp-3292-YM3b8eOraLMA)
311
+ package (/tmp/tmp-3241-6QjYL5l3mWJr)
303
312
  
304
313
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
305
314
 
@@ -309,7 +318,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
309
318
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
310
319
 
311
320
  console.log
312
- package (/tmp/tmp-3292-eVXBl7x78G3k)
321
+ package (/tmp/tmp-3241-2c5qaKH8j4tP)
313
322
  
314
323
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
315
324
 
@@ -319,7 +328,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
319
328
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
320
329
 
321
330
  console.log
322
- package (/tmp/tmp-3292-hh6VKijkIQDb)
331
+ package (/tmp/tmp-3241-sDHDYQAsUc9r)
323
332
  
324
333
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
325
334
 
@@ -342,7 +351,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
342
351
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
343
352
 
344
353
  console.log
345
- package (/tmp/tmp-3292-yeH8i0OBrAUa)
354
+ package (/tmp/tmp-3241-iua8wEYdpMdo)
346
355
  
347
356
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
348
357
 
@@ -370,7 +379,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
370
379
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
371
380
 
372
381
  console.log
373
- package (/tmp/tmp-3292-4vK1izCdVyua)
382
+ package (/tmp/tmp-3241-PVMjYmQ52Sza)
374
383
  
375
384
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
376
385
 
@@ -380,7 +389,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
380
389
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
381
390
 
382
391
  console.log
383
- package (/tmp/tmp-3292-yiu7P99TouKG)
392
+ package (/tmp/tmp-3241-hHneJK0VHcPQ)
384
393
  
385
394
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
386
395
 
@@ -390,7 +399,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
390
399
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
391
400
 
392
401
  console.log
393
- package (/tmp/tmp-3292-sZbKvfbYJNk0)
402
+ package (/tmp/tmp-3241-s3775ujAes5M)
394
403
  
395
404
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
396
405
 
@@ -413,7 +422,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
413
422
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
414
423
 
415
424
  console.log
416
- package (/tmp/tmp-3292-cHJ2fHIb9r2S)
425
+ package (/tmp/tmp-3241-Lux3Im8hLY7i)
417
426
  
418
427
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
419
428
 
@@ -443,43 +452,35 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
443
452
   PASS  src/__tests__/packageEntry.spec.ts
444
453
  expectPackageEntries (SimpleHost)
445
454
  fix: true
446
- ✓ fixes missing entries (25 ms)
455
+ ✓ fixes missing entries (15 ms)
447
456
  ✓ fixes missing nested entries (5 ms)
448
- ✓ doesn't error for nested entries that are defined (2 ms)
449
- ✓ errors for keys that are missing (9 ms)
450
- ✓ handles both entries and entriesExist (12 ms)
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)
451
460
  expectPackageEntries (CachingHost)
452
461
  fix: true
453
- ✓ fixes missing entries (6 ms)
454
- ✓ fixes missing nested entries (7 ms)
455
- ✓ doesn't error for nested entries that are defined (1 ms)
456
- ✓ errors for keys that are missing (6 ms)
457
- ✓ handles both entries and entriesExist (17 ms)
458
-
459
-  PASS  src/__tests__/bannedDependencies.spec.ts
460
- bannedDependencies
461
- ✓ Flags banned dependencies correctly (10 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 (2 ms)
465
- ✓ Flags banned transitives correctly (7 ms)
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)
466
467
 
467
468
   PASS  src/__tests__/nestedWorkspaces.spec.ts
468
469
  nestedWorkspaces
469
- ✓ checks correctly when no packages (12 ms)
470
- ✓ checks correctly when one level packages (7 ms)
471
- ✓ checks fail when one level packages with no workspaces field (23 ms)
472
- ✓ checks correctly when two level packages with two level workspaces field (6 ms)
473
- ✓ checks fail when two level packages with one level workspaces field (11 ms)
474
- ✓ checks correctly when three level packages with three level workspaces field (10 ms)
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)
475
+ ✓ checks correctly when three level packages with three level workspaces field (7 ms)
475
476
 
476
477
   PASS  src/__tests__/requireDependency.spec.ts
477
478
  requireDependency
478
- ✓ checks correctly (35 ms)
479
- ✓ fixes correctly (19 ms)
479
+ ✓ checks correctly (17 ms)
480
+ ✓ fixes correctly (6 ms)
480
481
 
481
482
  console.log
482
- package (/tmp/tmp-3286-jWfunrCZrf7O)
483
+ package (/tmp/tmp-3241-BXWw55NGHOpu)
483
484
  
484
485
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
485
486
 
@@ -489,7 +490,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
489
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
490
491
 
491
492
  console.log
492
- package-unknown-keys (/tmp/tmp-3286-A4z44FMrkUSn)
493
+ package-unknown-keys (/tmp/tmp-3241-iHP1FwqdHzF4)
493
494
  
494
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
495
496
 
@@ -499,7 +500,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
499
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
500
501
 
501
502
  console.log
502
- package (/tmp/tmp-3286-b463QZlvZe99)
503
+ package (/tmp/tmp-3241-F57pOfRiJ0x7)
503
504
  
504
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
505
506
 
@@ -509,7 +510,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
509
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
510
511
 
511
512
  console.log
512
- package (/tmp/tmp-3286-rHMIDNo0SZkW)
513
+ package (/tmp/tmp-3241-dN37rLf5J0k0)
513
514
  
514
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
515
516
 
@@ -519,7 +520,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
519
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
520
521
 
521
522
  console.log
522
- package-unknown-keys (/tmp/tmp-3286-ysrittMpaelI)
523
+ package-unknown-keys (/tmp/tmp-3241-rNTjOlEi8o2B)
523
524
  
524
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
525
526
 
@@ -529,7 +530,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
529
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
530
531
 
531
532
  console.log
532
- package (/tmp/tmp-3286-J3whUPa3OL99)
533
+ package (/tmp/tmp-3241-N6eMfyGu4Auk)
533
534
  
534
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
535
536
 
@@ -541,55 +542,65 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
541
542
   PASS  src/__tests__/packageOrder.spec.ts
542
543
  expectPackageOrder (SimpleHost)
543
544
  fix: true
544
- ✓ fixes order for expected keys (64 ms)
545
- ✓ fixes order for unexpected keys (46 ms)
546
- ✓ fixes order using function (38 ms)
545
+ ✓ fixes order for expected keys (26 ms)
546
+ ✓ fixes order for unexpected keys (28 ms)
547
+ ✓ fixes order using function (5 ms)
547
548
  ✓ does nothing if already order (2 ms)
548
549
  expectPackageOrder (CachingHost)
549
550
  fix: true
550
- ✓ fixes order for expected keys (30 ms)
551
- ✓ fixes order for unexpected keys (5 ms)
552
- ✓ fixes order using function (5 ms)
553
- ✓ does nothing if already order (2 ms)
551
+ ✓ 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)
554
555
 
555
556
   PASS  src/__tests__/consistentDependencies.spec.ts
556
557
  consistentDependencies
557
- ✓ checks correctly (15 ms)
558
+ ✓ checks correctly (16 ms)
558
559
  ✓ fixes correctly (4 ms)
559
- ✓ ignores ignored dependencies (2 ms)
560
+ ✓ ignores ignored dependencies (3 ms)
560
561
 
561
562
  console.log
562
- rootProject (/tmp/tmp-3292-SAGv2y85yy6e)
563
+ foo-lib (/tmp/tmp-3241-6ICFPUVUeho3)
563
564
  
564
565
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
565
566
 
566
567
  console.log
567
- Fixed! foo.txt: Expect file contents to match
568
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
568
569
  
569
570
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
570
571
 
571
572
  console.log
572
- rootProject (/tmp/tmp-3292-5L8pJlvtTMKz)
573
+ foo-lib (/tmp/tmp-3241-IwN6ndJiG48M)
573
574
  
574
575
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
575
576
 
576
577
  console.log
577
- Fixed! foo.txt: Expect file contents to match
578
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
578
579
  
579
580
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
580
581
 
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
+
581
592
  console.log
582
- rootProject (/tmp/tmp-3292-L9tZJqPOikdM)
593
+ rootProject (/tmp/tmp-3240-4uqUq1OLaAE9)
583
594
  
584
595
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
585
596
 
586
597
  console.log
587
- Fixed! nested/foo.txt: Expect file contents to match
598
+ Fixed! foo.txt: Expect file contents to match
588
599
  
589
600
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
590
601
 
591
602
  console.log
592
- rootProject (/tmp/tmp-3292-49ut7i0PSCdr)
603
+ rootProject (/tmp/tmp-3240-RjZYz1XkrkAv)
593
604
  
594
605
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
595
606
 
@@ -599,69 +610,59 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
599
610
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
600
611
 
601
612
  console.log
602
- rootProject (/tmp/tmp-3292-4XIxt18P19Tp)
613
+ rootProject (/tmp/tmp-3240-CQNhutqeYM0m)
603
614
  
604
615
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
605
616
 
606
617
  console.log
607
- Fixed! foo.txt: Expect file contents to match
618
+ Fixed! nested/foo.txt: Expect file contents to match
608
619
  
609
620
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
610
621
 
611
622
  console.log
612
- rootProject (/tmp/tmp-3292-XzEy7R2Wr9Vo)
623
+ rootProject (/tmp/tmp-3240-k10822wcJNhz)
613
624
  
614
625
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
615
626
 
616
627
  console.log
617
- Fixed! nested/foo.txt: Expect file contents to match
628
+ Fixed! foo.txt: Expect file contents to match
618
629
  
619
630
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
620
631
 
621
-  PASS  src/__tests__/fileContents.spec.ts
622
- fileContents (SimpleHost)
623
- fix: true
624
- ✓ works with async generator (11 ms)
625
- ✓ fixes missing file (5 ms)
626
- ✓ fixes missing nested file (3 ms)
627
- fileContents (CachingHost)
628
- fix: true
629
- ✓ works with async generator (6 ms)
630
- ✓ fixes missing file (3 ms)
631
- ✓ fixes missing nested file (3 ms)
632
-
633
632
  console.log
634
- foo-lib (/tmp/tmp-3286-N2br5ja4iEnn)
633
+ rootProject (/tmp/tmp-3240-RdUrXZ9cffnc)
635
634
  
636
635
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
637
636
 
638
637
  console.log
639
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
638
+ Fixed! foo.txt: Expect file contents to match
640
639
  
641
640
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
642
641
 
643
642
  console.log
644
- foo-lib (/tmp/tmp-3286-CnqKlB6nA06l)
643
+ rootProject (/tmp/tmp-3240-y5JqxSEn2Jaf)
645
644
  
646
645
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
647
646
 
648
647
  console.log
649
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
648
+ Fixed! nested/foo.txt: Expect file contents to match
650
649
  
651
650
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
652
651
 
653
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
654
- alphabeticalScripts (SimpleHost)
652
+  PASS  src/__tests__/fileContents.spec.ts
653
+ fileContents (SimpleHost)
655
654
  fix: true
656
- ✓ fixes unsorted scripts (10 ms)
657
- ✓ does nothing if already sorted
658
- alphabeticalScripts (CachingHost)
655
+ ✓ works with async generator (41 ms)
656
+ ✓ fixes missing file (2 ms)
657
+ ✓ fixes missing nested file (4 ms)
658
+ fileContents (CachingHost)
659
659
  fix: true
660
- ✓ fixes unsorted scripts (4 ms)
661
- ✓ does nothing if already sorted (1 ms)
660
+ ✓ works with async generator (4 ms)
661
+ ✓ fixes missing file (3 ms)
662
+ ✓ fixes missing nested file (3 ms)
662
663
 
663
664
  Test Suites: 11 passed, 11 total
664
665
  Tests: 118 passed, 118 total
665
666
  Snapshots: 0 total
666
- Time: 9.715 s
667
+ Time: 9.693 s
667
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 81ms
18
+ ESM ⚡️ Build success in 65ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.126+1634d19",
3
+ "version": "0.5.0-alpha.127+5a961e3",
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.126+1634d19",
34
- "@monorepolint/core": "^0.5.0-alpha.126+1634d19",
35
- "@monorepolint/utils": "^0.5.0-alpha.126+1634d19",
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",
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": "1634d1967642613f1036cd803fb8769accce7fc4"
62
+ "gitHead": "5a961e3df8f16aabf8cfa952ac4e3ba4c9b81db9"
63
63
  }