@monorepolint/rules 0.5.0-alpha.137 → 0.5.0-alpha.139

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.
@@ -3,27 +3,84 @@
3
3
  > NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests
4
4
 
5
5
  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 `'.'`
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
- 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
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 `'.'`
9
- (node:3123) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
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
+ (node:3111) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
9
  (Use `node --trace-warnings ...` to show where the warning was created)
11
-  PASS  src/__tests__/consistentVersions.spec.ts (6.674 s)
10
+  PASS  src/__tests__/consistentVersions.spec.ts (7.428 s)
12
11
  consistentVersions
13
12
  standard tests
14
- ✓ Does nothing when arguments are empty (11 ms)
13
+ ✓ Does nothing when arguments are empty (10 ms)
15
14
  ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
15
  ✓ Ignores packages that have a correct dependency version (2 ms)
17
16
  ✓ Fixes packages that have an incorrect devDependency version (3 ms)
18
17
  ✓ Ignores packages that have a correct devDependency version (2 ms)
19
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
18
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (6 ms)
20
19
  Multiple accepted versions tests
21
20
  ✓ Accepts a match when multiple versions are configured (2 ms)
22
- ✓ Errors when version does not match (2 ms)
21
+ ✓ Errors when version does not match (3 ms)
23
22
 
24
23
  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
+ (node:3110) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
25
+ (Use `node --trace-warnings ...` to show where the warning was created)
26
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.619 s)
27
+ mustSatisfyPeerDependencies
28
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
29
+ ✓ Flags conflicting peer dependencies (4 ms)
30
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (5 ms)
31
+ ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
32
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (6 ms)
33
+ ✓ Honors dependencyWhitelist (4 ms)
34
+ ✓ Honors dependencyBlacklist (4 ms)
35
+ regex tests
36
+ ✓ Properly matches any version range regex (32 ms)
37
+ ✓ Properly matches greator or equal version range regex (15 ms)
38
+ ✓ Properly matches major version range regex (8 ms)
39
+ ✓ Properly matches allowed range regex (15 ms)
40
+ Determines dependencies satisfaction correctly
41
+ ✓ version is version (1 ms)
42
+ ✓ version satisfies a range (3 ms)
43
+ ✓ higher version satisfies a range (2 ms)
44
+ ✓ version satisfies a greator or equal version range (1 ms)
45
+ ✓ higher version satisfies a greator or equal version range (1 ms)
46
+ ✓ version satisfies 'any' range (1 ms)
47
+ ✓ greator or equal version range satisfies 'any' range (1 ms)
48
+ ✓ range satisfies 'any' range (1 ms)
49
+ ✓ union range satisfies 'any' range (1 ms)
50
+ ✓ version found in union start (1 ms)
51
+ ✓ version found in union end (1 ms)
52
+ ✓ version satisfies a range in union start (1 ms)
53
+ ✓ version satisfies a range in union end (1 ms)
54
+ ✓ higher version satisfies a range in union start (5 ms)
55
+ ✓ higher version satisfies a range in union end (1 ms)
56
+ ✓ range found in union start (1 ms)
57
+ ✓ range found in union end (1 ms)
58
+ ✓ union satisfies greator or equal version range (2 ms)
59
+ ✓ greator or equal version range satisfies greator or equal version range (1 ms)
60
+ ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
61
+ ✓ higher range satisfies a range in union start (1 ms)
62
+ ✓ higher range satisfies a range in union end (1 ms)
63
+ ✓ equivalent 'any' ranges satisfy each other
64
+ ✓ equivalent major ranges satisfy each other (2 ms)
65
+ ✓ version missing in union (1 ms)
66
+ ✓ range missing in union
67
+ Determines dependencies intersections correctly
68
+ ✓ equivalence (2 ms)
69
+ ✓ exact vs any (1 ms)
70
+ ✓ major vs any
71
+ ✓ greater or equal vs any (1 ms)
72
+ ✓ any vs any
73
+ ✓ exact vs greater or equal
74
+ ✓ major vs greater or equal (1 ms)
75
+ ✓ greater or equal vs greater or equal
76
+ ✓ exact vs major (1 ms)
77
+ ✓ major vs major (1 ms)
78
+ ✓ exact vs union
79
+ ✓ major vs union
80
+ ✓ union vs union (2 ms)
81
+
25
82
  console.log
26
- package-without-scripts (/tmp/tmp-3124-270M9pIfujF5)
83
+ package-without-scripts (/tmp/tmp-3112-NGj7eBHhDPd2)
27
84
  
28
85
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
29
86
 
@@ -46,7 +103,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
46
103
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
47
104
 
48
105
  console.log
49
- package-without-scripts (/tmp/tmp-3124-thGXVAIcCAG9)
106
+ package-without-scripts (/tmp/tmp-3112-pmJdrIG1gMzW)
50
107
  
51
108
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
52
109
 
@@ -56,7 +113,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
56
113
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
57
114
 
58
115
  console.log
59
- package-with-scripts (/tmp/tmp-3124-rmVIc5AdRP3d)
116
+ package-with-scripts (/tmp/tmp-3112-UOGD7vB7EQuu)
60
117
  
61
118
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
62
119
 
@@ -66,7 +123,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
66
123
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
67
124
 
68
125
  console.log
69
- package-with-scripts (/tmp/tmp-3124-YQh3GMrhXz7L)
126
+ package-with-scripts (/tmp/tmp-3112-CW6g2ttBfO5o)
70
127
  
71
128
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
72
129
 
@@ -89,7 +146,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
89
146
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
90
147
 
91
148
  console.log
92
- package-with-scripts (/tmp/tmp-3124-3Hn3rwLlOFK5)
149
+ package-with-scripts (/tmp/tmp-3112-Lj6gSo5cM4on)
93
150
  
94
151
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
95
152
 
@@ -99,7 +156,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
99
156
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
100
157
 
101
158
  console.log
102
- package-with-scripts (/tmp/tmp-3124-2pUFvt35j6hV)
159
+ package-with-scripts (/tmp/tmp-3112-CANy5ltymaQ1)
103
160
  
104
161
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
105
162
 
@@ -109,7 +166,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
109
166
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
110
167
 
111
168
  console.log
112
- package-with-scripts (/tmp/tmp-3124-aKMdgMKatE3m)
169
+ package-with-scripts (/tmp/tmp-3112-65kM5iUk4mhz)
113
170
  
114
171
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
115
172
 
@@ -118,10 +175,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
118
175
  
119
176
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
120
177
 
121
- (node:3124) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
178
+ (node:3112) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
179
  (Use `node --trace-warnings ...` to show where the warning was created)
123
180
  console.log
124
- package-without-scripts (/tmp/tmp-3124-w26Wgpeq6wu3)
181
+ package-without-scripts (/tmp/tmp-3112-RDCj4enFLHlf)
125
182
  
126
183
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
127
184
 
@@ -144,7 +201,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
144
201
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
145
202
 
146
203
  console.log
147
- package-without-scripts (/tmp/tmp-3124-75n1qpA2Q2RG)
204
+ package-without-scripts (/tmp/tmp-3112-aYRiACSBJhZW)
148
205
  
149
206
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
150
207
 
@@ -154,7 +211,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
154
211
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
155
212
 
156
213
  console.log
157
- package-with-scripts (/tmp/tmp-3124-qV7EOhiDAB7c)
214
+ package-with-scripts (/tmp/tmp-3112-SNcNbik1UzDY)
158
215
  
159
216
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
160
217
 
@@ -164,7 +221,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
164
221
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
165
222
 
166
223
  console.log
167
- package-with-scripts (/tmp/tmp-3124-Uek6kaEl0NFn)
224
+ package-with-scripts (/tmp/tmp-3112-qjIXnvQkJUtN)
168
225
  
169
226
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
170
227
 
@@ -187,7 +244,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
187
244
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
188
245
 
189
246
  console.log
190
- package-with-scripts (/tmp/tmp-3124-qiWdyeDzyPwe)
247
+ package-with-scripts (/tmp/tmp-3112-LBPHDWvm2kuF)
191
248
  
192
249
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
193
250
 
@@ -197,7 +254,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
197
254
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
198
255
 
199
256
  console.log
200
- package-with-scripts (/tmp/tmp-3124-our5AY526A71)
257
+ package-with-scripts (/tmp/tmp-3112-QDvKNuW4xt0W)
201
258
  
202
259
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
203
260
 
@@ -207,8 +264,13 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
207
264
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
208
265
 
209
266
  console.log
210
- package-with-scripts (/tmp/tmp-3124-vCT7xPQd1Xcx)
267
+ package-with-scripts (/tmp/tmp-3112-247ke2OtQv9F)
268
+  PASS  src/__tests__/packageScript.spec.ts (8.147 s)
211
269
  
270
+ expectPackageScript (SimpleHost)
271
+ fix: false
272
+ ✓ handles an empty script section (122 ms)
273
+ fix: true
212
274
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
213
275
 
214
276
  console.log
@@ -216,90 +278,27 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
216
278
  
217
279
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
218
280
 
219
-  PASS  src/__tests__/packageScript.spec.ts (6.887 s)
220
- expectPackageScript (SimpleHost)
221
- fix: false
222
- ✓ handles an empty script section (84 ms)
223
- fix: true
224
281
  ✓ fixes an empty script section (17 ms)
225
282
  ✓ adds a script (7 ms)
226
- ✓ does nothing if the value exists (2 ms)
227
- ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
228
- ✓ uses the fixValue for fixing if provided (6 ms)
229
- ✓ can fix to empty (5 ms)
230
- ✓ can allow only empty (5 ms)
283
+ ✓ does nothing if the value exists (1 ms)
284
+ ✓ errors if long form is used and no value matches and there is no fixValue (43 ms)
285
+ ✓ uses the fixValue for fixing if provided (27 ms)
286
+ ✓ can fix to empty (17 ms)
287
+ ✓ can allow only empty (3 ms)
231
288
  expectPackageScript (CachingHost)
232
289
  fix: false
233
- ✓ handles an empty script section (13 ms)
290
+ ✓ handles an empty script section (17 ms)
234
291
  fix: true
235
- ✓ fixes an empty script section (4 ms)
236
- ✓ adds a script (10 ms)
292
+ ✓ fixes an empty script section (7 ms)
293
+ ✓ adds a script (7 ms)
237
294
  ✓ does nothing if the value exists (1 ms)
238
295
  ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
239
- ✓ uses the fixValue for fixing if provided (5 ms)
240
- ✓ can fix to empty (10 ms)
241
- ✓ can allow only empty (4 ms)
242
-
243
- (node:3122) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
- (Use `node --trace-warnings ...` to show where the warning was created)
245
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.191 s)
246
- mustSatisfyPeerDependencies
247
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
248
- ✓ Flags conflicting peer dependencies (15 ms)
249
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (7 ms)
250
- ✓ Flags missing peer dependencies (NO regular dependency present) (15 ms)
251
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
252
- ✓ Honors dependencyWhitelist (4 ms)
253
- ✓ Honors dependencyBlacklist (7 ms)
254
- regex tests
255
- ✓ Properly matches any version range regex (20 ms)
256
- ✓ Properly matches greator or equal version range regex (18 ms)
257
- ✓ Properly matches major version range regex (23 ms)
258
- ✓ Properly matches allowed range regex (14 ms)
259
- Determines dependencies satisfaction correctly
260
- ✓ version is version (1 ms)
261
- ✓ version satisfies a range (3 ms)
262
- ✓ higher version satisfies a range (6 ms)
263
- ✓ version satisfies a greator or equal version range (1 ms)
264
- ✓ higher version satisfies a greator or equal version range (1 ms)
265
- ✓ version satisfies 'any' range (1 ms)
266
- ✓ greator or equal version range satisfies 'any' range (1 ms)
267
- ✓ range satisfies 'any' range (1 ms)
268
- ✓ union range satisfies 'any' range (1 ms)
269
- ✓ version found in union start (1 ms)
270
- ✓ version found in union end (1 ms)
271
- ✓ version satisfies a range in union start (1 ms)
272
- ✓ version satisfies a range in union end (1 ms)
273
- ✓ higher version satisfies a range in union start (1 ms)
274
- ✓ higher version satisfies a range in union end (1 ms)
275
- ✓ range found in union start (1 ms)
276
- ✓ range found in union end (1 ms)
277
- ✓ union satisfies greator or equal version range (1 ms)
278
- ✓ greator or equal version range satisfies greator or equal version range (1 ms)
279
- ✓ equivalent greator or equal version ranges satisfy each other (6 ms)
280
- ✓ 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 (1 ms)
283
- ✓ equivalent major ranges satisfy each other (5 ms)
284
- ✓ version missing in union (1 ms)
285
- ✓ range missing in union (1 ms)
286
- Determines dependencies intersections correctly
287
- ✓ equivalence (7 ms)
288
- ✓ exact vs any (1 ms)
289
- ✓ major vs any (1 ms)
290
- ✓ greater or equal vs any (1 ms)
291
- ✓ any vs any
292
- ✓ exact vs greater or equal (2 ms)
293
- ✓ major vs greater or equal (1 ms)
294
- ✓ greater or equal vs greater or equal (1 ms)
295
- ✓ exact vs major (4 ms)
296
- ✓ major vs major (3 ms)
297
- ✓ exact vs union (2 ms)
298
- ✓ major vs union (1 ms)
299
- ✓ union vs union (12 ms)
296
+ ✓ uses the fixValue for fixing if provided (8 ms)
297
+ ✓ can fix to empty (14 ms)
298
+ ✓ can allow only empty (12 ms)
300
299
 
301
300
  console.log
302
- package (/tmp/tmp-3124-eaK6gk43O4Rv)
301
+ package (/tmp/tmp-3110-TqOXhoG4nzjm)
303
302
  
304
303
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
305
304
 
@@ -309,7 +308,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
309
308
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
310
309
 
311
310
  console.log
312
- package (/tmp/tmp-3124-Lypp6dZLy1if)
311
+ package (/tmp/tmp-3110-Wma5byYAcsZY)
313
312
  
314
313
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
315
314
 
@@ -319,7 +318,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
319
318
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
320
319
 
321
320
  console.log
322
- package (/tmp/tmp-3124-iu5XpD58D4bk)
321
+ package (/tmp/tmp-3110-tWzJ5dxPP53o)
323
322
  
324
323
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
325
324
 
@@ -342,7 +341,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
342
341
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
343
342
 
344
343
  console.log
345
- package (/tmp/tmp-3124-L4rvUe4l8dPL)
344
+ package (/tmp/tmp-3110-LMXZVCMOIO2Y)
346
345
  
347
346
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
348
347
 
@@ -370,7 +369,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
370
369
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
371
370
 
372
371
  console.log
373
- package (/tmp/tmp-3124-IGBqW0WZWX1U)
372
+ package (/tmp/tmp-3110-vHGnr7TUaV4t)
374
373
  
375
374
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
376
375
 
@@ -380,7 +379,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
380
379
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
381
380
 
382
381
  console.log
383
- package (/tmp/tmp-3124-5LwBnVWsBRwL)
382
+ package (/tmp/tmp-3110-cdY4i7cDw542)
384
383
  
385
384
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
386
385
 
@@ -390,7 +389,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
390
389
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
391
390
 
392
391
  console.log
393
- package (/tmp/tmp-3124-278BC7u61A4a)
392
+ package (/tmp/tmp-3110-bzTL0m9p2Cbg)
394
393
  
395
394
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
396
395
 
@@ -413,7 +412,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
413
412
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
414
413
 
415
414
  console.log
416
- package (/tmp/tmp-3124-yDUeaLZifjhw)
415
+ package (/tmp/tmp-3110-AGwHZU2w3cnY)
417
416
  
418
417
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
419
418
 
@@ -443,49 +442,43 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
443
442
   PASS  src/__tests__/packageEntry.spec.ts
444
443
  expectPackageEntries (SimpleHost)
445
444
  fix: true
446
- ✓ fixes missing entries (13 ms)
447
- ✓ fixes missing nested entries (40 ms)
448
- ✓ doesn't error for nested entries that are defined (2 ms)
449
- ✓ errors for keys that are missing (11 ms)
450
- ✓ handles both entries and entriesExist (12 ms)
445
+ ✓ fixes missing entries (99 ms)
446
+ ✓ fixes missing nested entries (7 ms)
447
+ ✓ doesn't error for nested entries that are defined (1 ms)
448
+ ✓ errors for keys that are missing (12 ms)
449
+ ✓ handles both entries and entriesExist (21 ms)
451
450
  expectPackageEntries (CachingHost)
452
451
  fix: true
453
- ✓ fixes missing entries (8 ms)
452
+ ✓ fixes missing entries (12 ms)
454
453
  ✓ fixes missing nested entries (4 ms)
455
- ✓ doesn't error for nested entries that are defined (4 ms)
456
- ✓ errors for keys that are missing (21 ms)
454
+ ✓ doesn't error for nested entries that are defined (2 ms)
455
+ ✓ errors for keys that are missing (8 ms)
457
456
  ✓ handles both entries and entriesExist (24 ms)
458
457
 
459
458
   PASS  src/__tests__/bannedDependencies.spec.ts
460
459
  bannedDependencies
461
- ✓ Flags banned dependencies correctly (8 ms)
462
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
463
- ✓ Flags banned dependencies correctly w new globs (2 ms)
464
- ✓ Flags banned dependencies correctly w exact (4 ms)
465
- ✓ Flags banned transitives correctly (5 ms)
460
+ ✓ Flags banned dependencies correctly (9 ms)
461
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
462
+ ✓ Flags banned dependencies correctly w new globs (9 ms)
463
+ ✓ Flags banned dependencies correctly w exact (2 ms)
464
+ ✓ Flags banned transitives correctly (6 ms)
466
465
 
467
466
   PASS  src/__tests__/nestedWorkspaces.spec.ts
468
467
  nestedWorkspaces
469
468
  ✓ checks correctly when no packages (13 ms)
470
- ✓ checks correctly when one level packages (3 ms)
471
- ✓ checks fail when one level packages with no workspaces field (4 ms)
472
- ✓ checks correctly when two level packages with two level workspaces field (4 ms)
473
- ✓ checks fail when two level packages with one level workspaces field (3 ms)
474
- ✓ checks correctly when three level packages with three level workspaces field (4 ms)
469
+ ✓ checks correctly when one level packages (6 ms)
470
+ ✓ checks fail when one level packages with no workspaces field (5 ms)
471
+ ✓ checks correctly when two level packages with two level workspaces field (6 ms)
472
+ ✓ checks fail when two level packages with one level workspaces field (5 ms)
473
+ ✓ checks correctly when three level packages with three level workspaces field (7 ms)
475
474
 
476
475
   PASS  src/__tests__/requireDependency.spec.ts
477
476
  requireDependency
478
- ✓ checks correctly (11 ms)
479
- ✓ fixes correctly (5 ms)
480
-
481
-  PASS  src/__tests__/consistentDependencies.spec.ts
482
- consistentDependencies
483
- ✓ checks correctly (16 ms)
484
- ✓ fixes correctly (4 ms)
485
- ✓ ignores ignored dependencies (2 ms)
477
+ ✓ checks correctly (10 ms)
478
+ ✓ fixes correctly (8 ms)
486
479
 
487
480
  console.log
488
- package (/tmp/tmp-3123-xeGe28V0vvuF)
481
+ package (/tmp/tmp-3111-kcFyGmjQnB7w)
489
482
  
490
483
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
484
 
@@ -495,7 +488,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
495
488
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
489
 
497
490
  console.log
498
- package-unknown-keys (/tmp/tmp-3123-GN1HawLWj4lJ)
491
+ package-unknown-keys (/tmp/tmp-3111-qaukAB8LBR4R)
499
492
  
500
493
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
494
 
@@ -505,7 +498,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
505
498
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
499
 
507
500
  console.log
508
- package (/tmp/tmp-3123-lPsLnRQUYn6c)
501
+ package (/tmp/tmp-3111-5vlU4NczY63C)
509
502
  
510
503
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
504
 
@@ -515,7 +508,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
515
508
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
509
 
517
510
  console.log
518
- package (/tmp/tmp-3123-ZFQu0D0lwKqX)
511
+ package (/tmp/tmp-3111-QxprucrxltFN)
519
512
  
520
513
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
514
 
@@ -525,7 +518,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
525
518
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
519
 
527
520
  console.log
528
- package-unknown-keys (/tmp/tmp-3123-6uberBGOtr1W)
521
+ package-unknown-keys (/tmp/tmp-3111-YE5jZI0uoBEp)
529
522
  
530
523
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
524
 
@@ -535,7 +528,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
535
528
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
529
 
537
530
  console.log
538
- package (/tmp/tmp-3123-UHULjENruphJ)
531
+ package (/tmp/tmp-3111-tzceeIjmls9n)
539
532
  
540
533
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
541
534
 
@@ -547,49 +540,65 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
547
540
   PASS  src/__tests__/packageOrder.spec.ts
548
541
  expectPackageOrder (SimpleHost)
549
542
  fix: true
550
- ✓ fixes order for expected keys (81 ms)
551
- ✓ fixes order for unexpected keys (15 ms)
552
- ✓ fixes order using function (5 ms)
543
+ ✓ fixes order for expected keys (78 ms)
544
+ ✓ fixes order for unexpected keys (19 ms)
545
+ ✓ fixes order using function (6 ms)
553
546
  ✓ does nothing if already order (1 ms)
554
547
  expectPackageOrder (CachingHost)
555
548
  fix: true
556
- ✓ fixes order for expected keys (7 ms)
557
- ✓ fixes order for unexpected keys (16 ms)
558
- ✓ fixes order using function (4 ms)
559
- ✓ does nothing if already order (1 ms)
549
+ ✓ fixes order for expected keys (14 ms)
550
+ ✓ fixes order for unexpected keys (7 ms)
551
+ ✓ fixes order using function (17 ms)
552
+ ✓ does nothing if already order (2 ms)
553
+
554
+  PASS  src/__tests__/consistentDependencies.spec.ts
555
+ consistentDependencies
556
+ ✓ checks correctly (12 ms)
557
+ ✓ fixes correctly (4 ms)
558
+ ✓ ignores ignored dependencies (2 ms)
560
559
 
561
560
  console.log
562
- rootProject (/tmp/tmp-3124-GW0YF3gQn3rC)
561
+ foo-lib (/tmp/tmp-3111-crvrfDFv5Pum)
563
562
  
564
563
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
565
564
 
566
565
  console.log
567
- Fixed! foo.txt: Expect file contents to match
566
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
568
567
  
569
568
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
570
569
 
571
570
  console.log
572
- rootProject (/tmp/tmp-3124-KdoStsjvg85X)
571
+ foo-lib (/tmp/tmp-3111-v03lY26GDa78)
573
572
  
574
573
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
575
574
 
576
575
  console.log
577
- Fixed! foo.txt: Expect file contents to match
576
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
578
577
  
579
578
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
580
579
 
580
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
581
+ alphabeticalScripts (SimpleHost)
582
+ fix: true
583
+ ✓ fixes unsorted scripts (10 ms)
584
+ ✓ does nothing if already sorted (1 ms)
585
+ alphabeticalScripts (CachingHost)
586
+ fix: true
587
+ ✓ fixes unsorted scripts (5 ms)
588
+ ✓ does nothing if already sorted (1 ms)
589
+
581
590
  console.log
582
- rootProject (/tmp/tmp-3124-SvyjiwZDe7N1)
591
+ rootProject (/tmp/tmp-3110-C4v5VtP7nDxO)
583
592
  
584
593
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
585
594
 
586
595
  console.log
587
- Fixed! nested/foo.txt: Expect file contents to match
596
+ Fixed! foo.txt: Expect file contents to match
588
597
  
589
598
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
590
599
 
591
600
  console.log
592
- rootProject (/tmp/tmp-3124-ypRZHlTps38T)
601
+ rootProject (/tmp/tmp-3110-6LYyZ5DTQ3bi)
593
602
  
594
603
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
595
604
 
@@ -599,69 +608,59 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
599
608
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
600
609
 
601
610
  console.log
602
- rootProject (/tmp/tmp-3124-8VQAXqOC2nf5)
611
+ rootProject (/tmp/tmp-3110-kXhOdOsdJmUh)
603
612
  
604
613
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
605
614
 
606
615
  console.log
607
- Fixed! foo.txt: Expect file contents to match
616
+ Fixed! nested/foo.txt: Expect file contents to match
608
617
  
609
618
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
610
619
 
611
620
  console.log
612
- rootProject (/tmp/tmp-3124-u2tvg43JzQK4)
621
+ rootProject (/tmp/tmp-3110-xFnW99bJXJ01)
613
622
  
614
623
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
615
624
 
616
625
  console.log
617
- Fixed! nested/foo.txt: Expect file contents to match
626
+ Fixed! foo.txt: Expect file contents to match
618
627
  
619
628
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
620
629
 
621
-  PASS  src/__tests__/fileContents.spec.ts
622
- fileContents (SimpleHost)
623
- fix: true
624
- ✓ works with async generator (15 ms)
625
- ✓ fixes missing file (3 ms)
626
- ✓ fixes missing nested file (6 ms)
627
- fileContents (CachingHost)
628
- fix: true
629
- ✓ works with async generator (4 ms)
630
- ✓ fixes missing file (3 ms)
631
- ✓ fixes missing nested file (2 ms)
632
-
633
630
  console.log
634
- foo-lib (/tmp/tmp-3122-VuV9MB9s3Twv)
631
+ rootProject (/tmp/tmp-3110-0e1Q7yUWZ26w)
635
632
  
636
633
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
637
634
 
638
635
  console.log
639
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
636
+ Fixed! foo.txt: Expect file contents to match
640
637
  
641
638
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
642
639
 
643
640
  console.log
644
- foo-lib (/tmp/tmp-3122-uSOBd31D4s5K)
641
+ rootProject (/tmp/tmp-3110-8pPZbNUp3BPm)
645
642
  
646
643
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
647
644
 
648
645
  console.log
649
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
646
+ Fixed! nested/foo.txt: Expect file contents to match
650
647
  
651
648
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
652
649
 
653
-  PASS  src/__tests__/alphabeticalScripts.spec.ts
654
- alphabeticalScripts (SimpleHost)
650
+  PASS  src/__tests__/fileContents.spec.ts
651
+ fileContents (SimpleHost)
655
652
  fix: true
656
- ✓ fixes unsorted scripts (58 ms)
657
- ✓ does nothing if already sorted (1 ms)
658
- alphabeticalScripts (CachingHost)
653
+ ✓ works with async generator (7 ms)
654
+ ✓ fixes missing file (2 ms)
655
+ ✓ fixes missing nested file (2 ms)
656
+ fileContents (CachingHost)
659
657
  fix: true
660
- ✓ fixes unsorted scripts (5 ms)
661
- ✓ does nothing if already sorted (1 ms)
658
+ ✓ works with async generator (4 ms)
659
+ ✓ fixes missing file (2 ms)
660
+ ✓ fixes missing nested file (3 ms)
662
661
 
663
662
  Test Suites: 11 passed, 11 total
664
663
  Tests: 118 passed, 118 total
665
664
  Snapshots: 0 total
666
- Time: 9.594 s
665
+ Time: 10.531 s
667
666
  Ran all test suites.
@@ -15,4 +15,4 @@
15
15
  ESM build/js/public/util.js.map 71.00 B
16
16
  ESM build/js/index.js.map 100.22 KB
17
17
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
18
- ESM ⚡️ Build success in 109ms
18
+ ESM ⚡️ Build success in 75ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.137+dc4e263",
3
+ "version": "0.5.0-alpha.139+0591f65",
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.137+dc4e263",
34
- "@monorepolint/core": "^0.5.0-alpha.137+dc4e263",
35
- "@monorepolint/utils": "^0.5.0-alpha.137+dc4e263",
33
+ "@monorepolint/config": "^0.5.0-alpha.139+0591f65",
34
+ "@monorepolint/core": "^0.5.0-alpha.139+0591f65",
35
+ "@monorepolint/utils": "^0.5.0-alpha.139+0591f65",
36
36
  "globby": "^14.0.1",
37
37
  "jest-diff": "^29.7.0",
38
38
  "resolve-package-path": "^4.0.3",
@@ -59,5 +59,5 @@
59
59
  "publishConfig": {
60
60
  "access": "public"
61
61
  },
62
- "gitHead": "dc4e2639bb362b869039f827a343b94afed4ee44"
62
+ "gitHead": "0591f65b3cbe41917db10a35dfa0a0d43ed09a38"
63
63
  }