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

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/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 `'.'`
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
- (node:3389) 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:3360) 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.524 s)
12
+  PASS  src/__tests__/consistentVersions.spec.ts (6.447 s)
12
13
  consistentVersions
13
14
  standard tests
14
- ✓ Does nothing when arguments are empty (10 ms)
15
- ✓ Fixes packages that have an incorrect dependency version (3 ms)
16
- ✓ Ignores packages that have a correct dependency version (1 ms)
17
- ✓ Fixes packages that have an incorrect devDependency version (8 ms)
18
- ✓ Ignores packages that have a correct devDependency version (1 ms)
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)
19
+ ✓ Ignores packages that have a correct devDependency version (2 ms)
19
20
  ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
20
21
  Multiple accepted versions tests
21
22
  ✓ Accepts a match when multiple versions are configured (3 ms)
22
23
  ✓ Errors when version does not match (2 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-3395-AwORp0qjpWQ0)
27
+ package-without-scripts (/tmp/tmp-3362-gnE6oAYDUGV4)
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-3395-us5gZdD54c9m)
50
+ package-without-scripts (/tmp/tmp-3362-VNbc4o622Z7S)
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-3395-qiLfFLKMyvxR)
60
+ package-with-scripts (/tmp/tmp-3362-TldkO8GD2w5v)
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-3395-sOTQKt9GTEgO)
70
+ package-with-scripts (/tmp/tmp-3362-1UAjI81oqBmU)
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-3395-0tx0JPlnyYoq)
93
+ package-with-scripts (/tmp/tmp-3362-b2JRzD6kjzMF)
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-3395-Ep4YIyKV8UM1)
103
+ package-with-scripts (/tmp/tmp-3362-y70Q3HsutCaf)
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-3395-qAeSQM2KPbuN)
113
+ package-with-scripts (/tmp/tmp-3362-luG3ZWUhhXfp)
112
114
  
113
115
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
114
116
 
@@ -117,10 +119,10 @@ 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:3395) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3362) 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-3395-WWzaeOZ97Blw)
125
+ package-without-scripts (/tmp/tmp-3362-GIsW8WGwRqns)
124
126
  
125
127
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
126
128
 
@@ -143,7 +145,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
143
145
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
144
146
 
145
147
  console.log
146
- package-without-scripts (/tmp/tmp-3395-fDfqTbey9vwN)
148
+ package-without-scripts (/tmp/tmp-3362-R8ol0YQ5On30)
147
149
  
148
150
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
149
151
 
@@ -153,7 +155,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
153
155
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
154
156
 
155
157
  console.log
156
- package-with-scripts (/tmp/tmp-3395-70ZSOMCxUWSX)
158
+ package-with-scripts (/tmp/tmp-3362-HEowCU5C8c4n)
157
159
  
158
160
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
159
161
 
@@ -163,7 +165,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
163
165
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
164
166
 
165
167
  console.log
166
- package-with-scripts (/tmp/tmp-3395-OX3oKUBcKXlA)
168
+ package-with-scripts (/tmp/tmp-3362-LwsWqymyjtF2)
167
169
  
168
170
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
169
171
 
@@ -186,7 +188,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
186
188
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
187
189
 
188
190
  console.log
189
- package-with-scripts (/tmp/tmp-3395-I4RjnsSoOkZq)
191
+ package-with-scripts (/tmp/tmp-3362-IXSWFwDwMXsq)
190
192
  
191
193
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
192
194
 
@@ -196,7 +198,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
196
198
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
197
199
 
198
200
  console.log
199
- package-with-scripts (/tmp/tmp-3395-23sx0LfQ173L)
201
+ package-with-scripts (/tmp/tmp-3362-NO7keKLpWQ9Z)
200
202
  
201
203
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
202
204
 
@@ -206,7 +208,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
206
208
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
207
209
 
208
210
  console.log
209
- package-with-scripts (/tmp/tmp-3395-KUOm2V1GJiLm)
211
+ package-with-scripts (/tmp/tmp-3362-G2NmbovdHwDZ)
210
212
  
211
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
212
214
 
@@ -215,107 +217,98 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
215
217
  
216
218
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
217
219
 
218
-  PASS  src/__tests__/packageScript.spec.ts (6.832 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (6.947 s)
219
221
  expectPackageScript (SimpleHost)
220
222
  fix: false
221
- ✓ handles an empty script section (101 ms)
223
+ ✓ handles an empty script section (98 ms)
222
224
  fix: true
223
- ✓ fixes an empty script section (6 ms)
224
- ✓ adds a script (18 ms)
225
+ ✓ fixes an empty script section (8 ms)
226
+ ✓ adds a script (7 ms)
225
227
  ✓ does nothing if the value exists (2 ms)
226
228
  ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
227
229
  ✓ uses the fixValue for fixing if provided (5 ms)
228
- ✓ can fix to empty (6 ms)
229
- ✓ can allow only empty (4 ms)
230
+ ✓ can fix to empty (4 ms)
231
+ ✓ can allow only empty (3 ms)
230
232
  expectPackageScript (CachingHost)
231
233
  fix: false
232
- ✓ handles an empty script section (14 ms)
234
+ ✓ handles an empty script section (9 ms)
233
235
  fix: true
234
- ✓ fixes an empty script section (5 ms)
235
- ✓ adds a script (5 ms)
236
- ✓ does nothing if the value exists (2 ms)
236
+ ✓ fixes an empty script section (18 ms)
237
+ ✓ adds a script (8 ms)
238
+ ✓ does nothing if the value exists (5 ms)
237
239
  ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
238
- ✓ uses the fixValue for fixing if provided (7 ms)
240
+ ✓ uses the fixValue for fixing if provided (6 ms)
239
241
  ✓ can fix to empty (4 ms)
240
- ✓ can allow only empty (23 ms)
242
+ ✓ can allow only empty (4 ms)
241
243
 
242
- (node:3388) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (node:3359) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
243
245
  (Use `node --trace-warnings ...` to show where the warning was created)
244
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (6.925 s)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.456 s)
245
247
  mustSatisfyPeerDependencies
246
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
247
- ✓ Flags conflicting peer dependencies (4 ms)
248
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (6 ms)
249
- ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (5 ms)
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)
252
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (7 ms)
251
253
  ✓ Honors dependencyWhitelist (4 ms)
252
- ✓ Honors dependencyBlacklist (12 ms)
254
+ ✓ Honors dependencyBlacklist (5 ms)
253
255
  regex tests
254
- ✓ Properly matches any version range regex (34 ms)
255
- ✓ Properly matches greator or equal version range regex (11 ms)
256
- ✓ Properly matches major version range regex (15 ms)
257
- ✓ Properly matches allowed range regex (15 ms)
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)
258
260
  Determines dependencies satisfaction correctly
259
261
  ✓ version is version (1 ms)
260
- ✓ version satisfies a range (3 ms)
261
- ✓ higher version satisfies a range (3 ms)
262
+ ✓ version satisfies a range (4 ms)
263
+ ✓ higher version satisfies a range (2 ms)
262
264
  ✓ version satisfies a greator or equal version range (1 ms)
263
265
  ✓ higher version satisfies a greator or equal version range (1 ms)
264
- ✓ version satisfies 'any' range (1 ms)
266
+ ✓ version satisfies 'any' range (2 ms)
265
267
  ✓ greator or equal version range satisfies 'any' range (1 ms)
266
268
  ✓ range satisfies 'any' range (1 ms)
267
- ✓ union range satisfies 'any' range (2 ms)
268
- ✓ version found in union start (1 ms)
269
- ✓ version found in union end (1 ms)
270
- ✓ version satisfies a range in union start (1 ms)
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)
271
273
  ✓ version satisfies a range in union end (1 ms)
272
274
  ✓ higher version satisfies a range in union start (1 ms)
273
275
  ✓ higher version satisfies a range in union end (1 ms)
274
276
  ✓ range found in union start (1 ms)
275
- ✓ range found in union end (1 ms)
277
+ ✓ range found in union end
276
278
  ✓ union satisfies greator or equal version range (1 ms)
277
- ✓ 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
278
280
  ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
279
281
  ✓ higher range satisfies a range in union start (1 ms)
280
282
  ✓ higher range satisfies a range in union end (1 ms)
281
- ✓ equivalent 'any' ranges satisfy each other
282
- ✓ equivalent major ranges satisfy each other (6 ms)
283
- ✓ version missing in union
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
286
  ✓ range missing in union (1 ms)
285
287
  Determines dependencies intersections correctly
286
288
  ✓ equivalence (2 ms)
287
289
  ✓ exact vs any (1 ms)
288
290
  ✓ major vs any (1 ms)
289
- ✓ greater or equal vs any
290
- ✓ any vs any (1 ms)
291
- ✓ exact vs greater or equal (1 ms)
291
+ ✓ greater or equal vs any (1 ms)
292
+ ✓ any vs any
293
+ ✓ exact vs greater or equal (2 ms)
292
294
  ✓ major vs greater or equal (2 ms)
293
295
  ✓ greater or equal vs greater or equal (4 ms)
294
- ✓ exact vs major (1 ms)
296
+ ✓ exact vs major (2 ms)
295
297
  ✓ major vs major (1 ms)
296
- ✓ exact vs union (2 ms)
297
- ✓ major vs union (1 ms)
298
+ ✓ exact vs union (1 ms)
299
+ ✓ major vs union (2 ms)
298
300
  ✓ union vs union (2 ms)
299
301
 
300
-  PASS  src/__tests__/nestedWorkspaces.spec.ts
301
- nestedWorkspaces
302
- ✓ checks correctly when no packages (15 ms)
303
- ✓ checks correctly when one level packages (7 ms)
304
- ✓ checks fail when one level packages with no workspaces field (5 ms)
305
- ✓ checks correctly when two level packages with two level workspaces field (7 ms)
306
- ✓ checks fail when two level packages with one level workspaces field (5 ms)
307
- ✓ checks correctly when three level packages with three level workspaces field (7 ms)
308
-
309
302
   PASS  src/__tests__/bannedDependencies.spec.ts
310
303
  bannedDependencies
311
- ✓ Flags banned dependencies correctly (11 ms)
304
+ ✓ Flags banned dependencies correctly (15 ms)
312
305
  ✓ Flags banned dependencies correctly w legacy globs (3 ms)
313
306
  ✓ Flags banned dependencies correctly w new globs (2 ms)
314
307
  ✓ Flags banned dependencies correctly w exact (2 ms)
315
- ✓ Flags banned transitives correctly (8 ms)
308
+ ✓ Flags banned transitives correctly (16 ms)
316
309
 
317
310
  console.log
318
- package (/tmp/tmp-3395-05LT1vZNS1wl)
311
+ package (/tmp/tmp-3362-SL1kDRgf658i)
319
312
  
320
313
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
321
314
 
@@ -325,7 +318,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
325
318
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
326
319
 
327
320
  console.log
328
- package (/tmp/tmp-3395-DLbHuG4uMxTm)
321
+ package (/tmp/tmp-3362-vQkHddjqGxf0)
329
322
  
330
323
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
331
324
 
@@ -335,7 +328,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
335
328
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
336
329
 
337
330
  console.log
338
- package (/tmp/tmp-3395-z32d1Wiho0FI)
331
+ package (/tmp/tmp-3362-rH5wJ6mlvct5)
339
332
  
340
333
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
341
334
 
@@ -358,7 +351,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
358
351
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
359
352
 
360
353
  console.log
361
- package (/tmp/tmp-3395-PbxdfyG1i4GZ)
354
+ package (/tmp/tmp-3362-lTFXsbLt3Nvv)
362
355
  
363
356
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
364
357
 
@@ -386,7 +379,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
386
379
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
387
380
 
388
381
  console.log
389
- package (/tmp/tmp-3395-wxClJ4j40tut)
382
+ package (/tmp/tmp-3362-2aR70TGUSMQw)
390
383
  
391
384
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
392
385
 
@@ -396,7 +389,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
396
389
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
397
390
 
398
391
  console.log
399
- package (/tmp/tmp-3395-77mQ2lKF0hhq)
392
+ package (/tmp/tmp-3362-IlZ3GWPPxT9T)
400
393
  
401
394
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
402
395
 
@@ -406,7 +399,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
406
399
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
407
400
 
408
401
  console.log
409
- package (/tmp/tmp-3395-QqWzUFu3t7j2)
402
+ package (/tmp/tmp-3362-zRRZmf41aeyu)
410
403
  
411
404
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
412
405
 
@@ -429,7 +422,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
429
422
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
430
423
 
431
424
  console.log
432
- package (/tmp/tmp-3395-Dfy8Tm9BlAiw)
425
+ package (/tmp/tmp-3362-W4h3PP85YEHB)
433
426
  
434
427
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
435
428
 
@@ -459,26 +452,35 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
459
452
   PASS  src/__tests__/packageEntry.spec.ts
460
453
  expectPackageEntries (SimpleHost)
461
454
  fix: true
462
- ✓ fixes missing entries (17 ms)
463
- ✓ fixes missing nested entries (21 ms)
464
- ✓ doesn't error for nested entries that are defined (2 ms)
455
+ ✓ fixes missing entries (13 ms)
456
+ ✓ fixes missing nested entries (5 ms)
457
+ ✓ doesn't error for nested entries that are defined (1 ms)
465
458
  ✓ errors for keys that are missing (9 ms)
466
- ✓ handles both entries and entriesExist (14 ms)
459
+ ✓ handles both entries and entriesExist (9 ms)
467
460
  expectPackageEntries (CachingHost)
468
461
  fix: true
469
- ✓ fixes missing entries (6 ms)
470
- ✓ fixes missing nested entries (4 ms)
471
- ✓ doesn't error for nested entries that are defined (1 ms)
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)
472
465
  ✓ errors for keys that are missing (9 ms)
473
- ✓ handles both entries and entriesExist (9 ms)
466
+ ✓ handles both entries and entriesExist (15 ms)
467
+
468
+  PASS  src/__tests__/nestedWorkspaces.spec.ts
469
+ nestedWorkspaces
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)
474
476
 
475
477
   PASS  src/__tests__/requireDependency.spec.ts
476
478
  requireDependency
477
- ✓ checks correctly (14 ms)
478
- ✓ fixes correctly (16 ms)
479
+ ✓ checks correctly (13 ms)
480
+ ✓ fixes correctly (9 ms)
479
481
 
480
482
  console.log
481
- package (/tmp/tmp-3389-rN4zjgOTF8OS)
483
+ package (/tmp/tmp-3362-vpMcHAoMknHy)
482
484
  
483
485
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
484
486
 
@@ -487,14 +489,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
487
489
  
488
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
489
491
 
490
-  PASS  src/__tests__/consistentDependencies.spec.ts
491
- consistentDependencies
492
- ✓ checks correctly (15 ms)
493
- ✓ fixes correctly (3 ms)
494
- ✓ ignores ignored dependencies (4 ms)
495
-
496
492
  console.log
497
- package-unknown-keys (/tmp/tmp-3389-8n08p72BWo6K)
493
+ package-unknown-keys (/tmp/tmp-3362-DxNgX65mbgCZ)
498
494
  
499
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
500
496
 
@@ -504,7 +500,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
504
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
505
501
 
506
502
  console.log
507
- package (/tmp/tmp-3389-eBF7S7JXKoXe)
503
+ package (/tmp/tmp-3362-j9V1LhXdqjmj)
508
504
  
509
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
510
506
 
@@ -514,7 +510,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
514
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
515
511
 
516
512
  console.log
517
- package (/tmp/tmp-3389-VTMc1fjx7VJU)
513
+ package (/tmp/tmp-3362-y4ytdk0G7VSr)
518
514
  
519
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
520
516
 
@@ -524,7 +520,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
524
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
525
521
 
526
522
  console.log
527
- package-unknown-keys (/tmp/tmp-3389-iLpi31kXough)
523
+ package-unknown-keys (/tmp/tmp-3362-bc2rqJbxD8XO)
528
524
  
529
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
530
526
 
@@ -534,7 +530,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
534
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
535
531
 
536
532
  console.log
537
- package (/tmp/tmp-3389-TTKrDBYX43aA)
533
+ package (/tmp/tmp-3362-fuggZgxpnChg)
538
534
  
539
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
540
536
 
@@ -546,19 +542,25 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
546
542
   PASS  src/__tests__/packageOrder.spec.ts
547
543
  expectPackageOrder (SimpleHost)
548
544
  fix: true
549
- ✓ fixes order for expected keys (68 ms)
550
- ✓ fixes order for unexpected keys (18 ms)
551
- ✓ fixes order using function (7 ms)
545
+ ✓ fixes order for expected keys (15 ms)
546
+ ✓ fixes order for unexpected keys (22 ms)
547
+ ✓ fixes order using function (3 ms)
552
548
  ✓ does nothing if already order (1 ms)
553
549
  expectPackageOrder (CachingHost)
554
550
  fix: true
555
- ✓ fixes order for expected keys (8 ms)
556
- ✓ fixes order for unexpected keys (6 ms)
557
- ✓ fixes order using function (15 ms)
558
- ✓ does nothing if already order (1 ms)
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)
555
+
556
+  PASS  src/__tests__/consistentDependencies.spec.ts
557
+ consistentDependencies
558
+ ✓ checks correctly (24 ms)
559
+ ✓ fixes correctly (4 ms)
560
+ ✓ ignores ignored dependencies (2 ms)
559
561
 
560
562
  console.log
561
- foo-lib (/tmp/tmp-3395-3M4HP9OAz2Mx)
563
+ foo-lib (/tmp/tmp-3362-8PWNEyGg77mI)
562
564
  
563
565
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
564
566
 
@@ -568,7 +570,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
568
570
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
569
571
 
570
572
  console.log
571
- foo-lib (/tmp/tmp-3395-itYmUfoUsPC4)
573
+ rootProject (/tmp/tmp-3360-WJSiOA5iPynF)
574
+ 
575
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
576
+
577
+ console.log
578
+ Fixed! foo.txt: Expect file contents to match
579
+ 
580
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
581
+
582
+ console.log
583
+ foo-lib (/tmp/tmp-3362-MJ3Xr3G2SpOy)
572
584
  
573
585
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
574
586
 
@@ -580,25 +592,15 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
580
592
   PASS  src/__tests__/alphabeticalScripts.spec.ts
581
593
  alphabeticalScripts (SimpleHost)
582
594
  fix: true
583
- ✓ fixes unsorted scripts (24 ms)
595
+ ✓ fixes unsorted scripts (12 ms)
584
596
  ✓ does nothing if already sorted (1 ms)
585
597
  alphabeticalScripts (CachingHost)
586
598
  fix: true
587
- ✓ fixes unsorted scripts (13 ms)
599
+ ✓ fixes unsorted scripts (12 ms)
588
600
  ✓ does nothing if already sorted (1 ms)
589
601
 
590
602
  console.log
591
- rootProject (/tmp/tmp-3388-1Dg6xkQdOlWI)
592
- 
593
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
594
-
595
- console.log
596
- Fixed! foo.txt: Expect file contents to match
597
- 
598
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
599
-
600
- console.log
601
- rootProject (/tmp/tmp-3388-AA8cMwIGVSxm)
603
+ rootProject (/tmp/tmp-3360-h8B6Orl79FdL)
602
604
  
603
605
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
604
606
 
@@ -608,7 +610,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
608
610
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
609
611
 
610
612
  console.log
611
- rootProject (/tmp/tmp-3388-0k2RMgrQ30ml)
613
+ rootProject (/tmp/tmp-3360-3CJqQYcjnka3)
612
614
  
613
615
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
614
616
 
@@ -618,7 +620,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
618
620
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
619
621
 
620
622
  console.log
621
- rootProject (/tmp/tmp-3388-cfijuH7VSW0j)
623
+ rootProject (/tmp/tmp-3360-YkmTIi2z7oFs)
622
624
  
623
625
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
624
626
 
@@ -628,7 +630,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
628
630
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
629
631
 
630
632
  console.log
631
- rootProject (/tmp/tmp-3388-dIfDCsf4dh5T)
633
+ rootProject (/tmp/tmp-3360-vcz6KNraM1lm)
632
634
  
633
635
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
634
636
 
@@ -638,7 +640,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
638
640
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
639
641
 
640
642
  console.log
641
- rootProject (/tmp/tmp-3388-D9gLSUt5a4zk)
643
+ rootProject (/tmp/tmp-3360-srJd5aRzNzlj)
642
644
  
643
645
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
644
646
 
@@ -650,17 +652,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
650
652
   PASS  src/__tests__/fileContents.spec.ts
651
653
  fileContents (SimpleHost)
652
654
  fix: true
653
- ✓ works with async generator (45 ms)
655
+ ✓ works with async generator (42 ms)
654
656
  ✓ fixes missing file (3 ms)
655
657
  ✓ fixes missing nested file (3 ms)
656
658
  fileContents (CachingHost)
657
659
  fix: true
658
- ✓ works with async generator (4 ms)
659
- ✓ fixes missing file (2 ms)
660
+ ✓ works with async generator (11 ms)
661
+ ✓ fixes missing file (3 ms)
660
662
  ✓ fixes missing nested file (3 ms)
661
663
 
662
664
  Test Suites: 11 passed, 11 total
663
665
  Tests: 118 passed, 118 total
664
666
  Snapshots: 0 total
665
- Time: 9.428 s
667
+ Time: 9.613 s
666
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
13
12
  ESM build/js/index.js 50.11 KB
14
13
  ESM build/js/chunk-A2MUUSNE.js 512.00 B
15
- ESM build/js/public/util.js.map 71.00 B
14
+ ESM build/js/public/util.js 106.00 B
16
15
  ESM build/js/index.js.map 100.21 KB
17
16
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
18
- ESM ⚡️ Build success in 70ms
17
+ ESM build/js/public/util.js.map 71.00 B
18
+ ESM ⚡️ Build success in 62ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.130+3bdd7af",
3
+ "version": "0.5.0-alpha.131+4a2b5f4",
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.130+3bdd7af",
34
- "@monorepolint/core": "^0.5.0-alpha.130+3bdd7af",
35
- "@monorepolint/utils": "^0.5.0-alpha.130+3bdd7af",
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",
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": "3bdd7afce438a7ec1827563b877c15f8f4e8af25"
62
+ "gitHead": "4a2b5f492e34f088227384b494c018d8fe04d216"
63
63
  }