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

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.
@@ -2,31 +2,32 @@
2
2
  > @monorepolint/rules@0.4.0 test /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests
4
4
 
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/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 `'.'`
5
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 `'.'`
6
8
  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
9
  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
10
  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
11
+ console.log
12
+ package-without-scripts (/tmp/tmp-3118-Z7VQzP0JBbNC)
13
+ 
14
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
15
+
16
+ (node:3117) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
17
  (Use `node --trace-warnings ...` to show where the warning was created)
11
-  PASS  src/__tests__/consistentVersions.spec.ts (6.674 s)
18
+  PASS  src/__tests__/consistentVersions.spec.ts (6.782 s)
12
19
  consistentVersions
13
20
  standard tests
14
- ✓ Does nothing when arguments are empty (11 ms)
21
+ ✓ Does nothing when arguments are empty (9 ms)
15
22
  ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
23
  ✓ Ignores packages that have a correct dependency version (2 ms)
17
- ✓ Fixes packages that have an incorrect devDependency version (3 ms)
18
- ✓ Ignores packages that have a correct devDependency version (2 ms)
19
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
24
+ ✓ Fixes packages that have an incorrect devDependency version (2 ms)
25
+ ✓ Ignores packages that have a correct devDependency version (4 ms)
26
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (2 ms)
20
27
  Multiple accepted versions tests
21
28
  ✓ Accepts a match when multiple versions are configured (2 ms)
22
29
  ✓ Errors when version does not match (2 ms)
23
30
 
24
- 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 `'.'`
25
- console.log
26
- package-without-scripts (/tmp/tmp-3124-270M9pIfujF5)
27
- 
28
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
29
-
30
31
  console.error
31
32
   Error! package.json: No scripts block in package.json
32
33
  
@@ -46,7 +47,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
46
47
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
47
48
 
48
49
  console.log
49
- package-without-scripts (/tmp/tmp-3124-thGXVAIcCAG9)
50
+ package-without-scripts (/tmp/tmp-3118-MJQwdB31h6RS)
50
51
  
51
52
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
52
53
 
@@ -56,7 +57,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
56
57
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
57
58
 
58
59
  console.log
59
- package-with-scripts (/tmp/tmp-3124-rmVIc5AdRP3d)
60
+ package-with-scripts (/tmp/tmp-3118-51zyG8h7CkJz)
60
61
  
61
62
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
62
63
 
@@ -66,7 +67,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
66
67
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
67
68
 
68
69
  console.log
69
- package-with-scripts (/tmp/tmp-3124-YQh3GMrhXz7L)
70
+ package-with-scripts (/tmp/tmp-3118-fLS8yuUgqDHZ)
70
71
  
71
72
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
72
73
 
@@ -89,7 +90,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
89
90
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
90
91
 
91
92
  console.log
92
- package-with-scripts (/tmp/tmp-3124-3Hn3rwLlOFK5)
93
+ package-with-scripts (/tmp/tmp-3118-JsUGpvhlVant)
93
94
  
94
95
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
95
96
 
@@ -99,7 +100,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
99
100
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
100
101
 
101
102
  console.log
102
- package-with-scripts (/tmp/tmp-3124-2pUFvt35j6hV)
103
+ package-with-scripts (/tmp/tmp-3118-ndYXqi0LbUwM)
103
104
  
104
105
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
105
106
 
@@ -109,7 +110,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
109
110
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
110
111
 
111
112
  console.log
112
- package-with-scripts (/tmp/tmp-3124-aKMdgMKatE3m)
113
+ package-with-scripts (/tmp/tmp-3118-eMB240UsH7H1)
113
114
  
114
115
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
115
116
 
@@ -118,10 +119,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
118
119
  
119
120
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
120
121
 
121
- (node:3124) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3118) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
123
  (Use `node --trace-warnings ...` to show where the warning was created)
123
124
  console.log
124
- package-without-scripts (/tmp/tmp-3124-w26Wgpeq6wu3)
125
+ package-without-scripts (/tmp/tmp-3118-cZBJSd5eoi4X)
125
126
  
126
127
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
127
128
 
@@ -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-3124-75n1qpA2Q2RG)
148
+ package-without-scripts (/tmp/tmp-3118-UrxDdETGg34Q)
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-3124-qV7EOhiDAB7c)
158
+ package-with-scripts (/tmp/tmp-3118-ABziBsZE0JP5)
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-3124-Uek6kaEl0NFn)
168
+ package-with-scripts (/tmp/tmp-3118-lLpst5Wne2jT)
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-3124-qiWdyeDzyPwe)
191
+ package-with-scripts (/tmp/tmp-3118-Gt7FoJRVEOev)
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-3124-our5AY526A71)
201
+ package-with-scripts (/tmp/tmp-3118-z6qARwj6t1r1)
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-3124-vCT7xPQd1Xcx)
211
+ package-with-scripts (/tmp/tmp-3118-JETmT7eaGVAp)
211
212
  
212
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
213
214
 
@@ -216,56 +217,56 @@ 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.887 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (6.848 s)
220
221
  expectPackageScript (SimpleHost)
221
222
  fix: false
222
- ✓ handles an empty script section (84 ms)
223
+ ✓ handles an empty script section (82 ms)
223
224
  fix: true
224
- ✓ fixes an empty script section (17 ms)
225
- ✓ adds a script (7 ms)
225
+ ✓ fixes an empty script section (11 ms)
226
+ ✓ adds a script (8 ms)
226
227
  ✓ does nothing if the value exists (2 ms)
227
228
  ✓ 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
+ ✓ uses the fixValue for fixing if provided (4 ms)
229
230
  ✓ can fix to empty (5 ms)
230
- ✓ can allow only empty (5 ms)
231
+ ✓ can allow only empty (4 ms)
231
232
  expectPackageScript (CachingHost)
232
233
  fix: false
233
- ✓ handles an empty script section (13 ms)
234
+ ✓ handles an empty script section (8 ms)
234
235
  fix: true
235
- ✓ fixes an empty script section (4 ms)
236
- ✓ adds a script (10 ms)
237
- ✓ does nothing if the value exists (1 ms)
238
- ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
236
+ ✓ fixes an empty script section (3 ms)
237
+ ✓ adds a script (7 ms)
238
+ ✓ does nothing if the value exists (6 ms)
239
+ ✓ errors if long form is used and no value matches and there is no fixValue (7 ms)
239
240
  ✓ uses the fixValue for fixing if provided (5 ms)
240
- ✓ can fix to empty (10 ms)
241
- ✓ can allow only empty (4 ms)
241
+ ✓ can fix to empty (4 ms)
242
+ ✓ can allow only empty (5 ms)
242
243
 
243
- (node:3122) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (node:3116) 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.191 s)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.136 s)
246
247
  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)
248
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
249
+ ✓ Flags conflicting peer dependencies (10 ms)
250
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (5 ms)
251
+ ✓ Flags missing peer dependencies (NO regular dependency present) (3 ms)
252
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (6 ms)
253
+ ✓ Honors dependencyWhitelist (8 ms)
254
+ ✓ Honors dependencyBlacklist (4 ms)
254
255
  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)
256
+ ✓ Properly matches any version range regex (26 ms)
257
+ ✓ Properly matches greator or equal version range regex (24 ms)
258
+ ✓ Properly matches major version range regex (24 ms)
259
+ ✓ Properly matches allowed range regex (22 ms)
259
260
  Determines dependencies satisfaction correctly
260
261
  ✓ version is version (1 ms)
261
- ✓ version satisfies a range (3 ms)
262
- ✓ higher version satisfies a range (6 ms)
262
+ ✓ version satisfies a range (5 ms)
263
+ ✓ higher version satisfies a range (3 ms)
263
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
267
  ✓ greator or equal version range satisfies 'any' range (1 ms)
267
268
  ✓ range satisfies 'any' range (1 ms)
268
- ✓ union range satisfies 'any' range (1 ms)
269
+ ✓ union range satisfies 'any' range (7 ms)
269
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)
@@ -276,30 +277,30 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
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 (6 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
+ ✓ higher range satisfies a range in union end
282
283
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
283
- ✓ equivalent major ranges satisfy each other (5 ms)
284
+ ✓ equivalent major ranges satisfy each other (4 ms)
284
285
  ✓ version missing in union (1 ms)
285
286
  ✓ range missing in union (1 ms)
286
287
  Determines dependencies intersections correctly
287
- ✓ equivalence (7 ms)
288
+ ✓ equivalence (1 ms)
288
289
  ✓ exact vs any (1 ms)
289
290
  ✓ 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)
291
+ ✓ greater or equal vs any
292
+ ✓ any vs any (1 ms)
293
+ ✓ exact vs greater or equal (1 ms)
294
+ ✓ major vs greater or equal (3 ms)
294
295
  ✓ 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)
296
+ ✓ exact vs major (16 ms)
297
+ ✓ major vs major (1 ms)
298
+ ✓ exact vs union (1 ms)
298
299
  ✓ major vs union (1 ms)
299
- ✓ union vs union (12 ms)
300
+ ✓ union vs union (2 ms)
300
301
 
301
302
  console.log
302
- package (/tmp/tmp-3124-eaK6gk43O4Rv)
303
+ package (/tmp/tmp-3118-pNDWlJKt48tF)
303
304
  
304
305
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
305
306
 
@@ -309,7 +310,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
309
310
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
310
311
 
311
312
  console.log
312
- package (/tmp/tmp-3124-Lypp6dZLy1if)
313
+ package (/tmp/tmp-3118-0vMXlJGlHzCo)
313
314
  
314
315
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
315
316
 
@@ -319,7 +320,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
319
320
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
320
321
 
321
322
  console.log
322
- package (/tmp/tmp-3124-iu5XpD58D4bk)
323
+ package (/tmp/tmp-3118-tYdAPAVHKbK9)
323
324
  
324
325
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
325
326
 
@@ -342,7 +343,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
342
343
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
343
344
 
344
345
  console.log
345
- package (/tmp/tmp-3124-L4rvUe4l8dPL)
346
+ package (/tmp/tmp-3118-r5OCtZ1VLL74)
346
347
  
347
348
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
348
349
 
@@ -370,7 +371,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
370
371
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
371
372
 
372
373
  console.log
373
- package (/tmp/tmp-3124-IGBqW0WZWX1U)
374
+ package (/tmp/tmp-3118-cviD9tceA0xC)
374
375
  
375
376
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
376
377
 
@@ -380,7 +381,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
380
381
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
381
382
 
382
383
  console.log
383
- package (/tmp/tmp-3124-5LwBnVWsBRwL)
384
+ package (/tmp/tmp-3118-QiklNihzjkqi)
384
385
  
385
386
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
386
387
 
@@ -390,7 +391,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
390
391
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
391
392
 
392
393
  console.log
393
- package (/tmp/tmp-3124-278BC7u61A4a)
394
+ package (/tmp/tmp-3118-AsHk57mUIBxY)
394
395
  
395
396
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
396
397
 
@@ -413,7 +414,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
413
414
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
414
415
 
415
416
  console.log
416
- package (/tmp/tmp-3124-yDUeaLZifjhw)
417
+ package (/tmp/tmp-3118-gK4SRi4BA3Tp)
417
418
  
418
419
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
419
420
 
@@ -443,49 +444,43 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
443
444
   PASS  src/__tests__/packageEntry.spec.ts
444
445
  expectPackageEntries (SimpleHost)
445
446
  fix: true
446
- ✓ fixes missing entries (13 ms)
447
- ✓ fixes missing nested entries (40 ms)
447
+ ✓ fixes missing entries (16 ms)
448
+ ✓ fixes missing nested entries (4 ms)
448
449
  ✓ 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)
450
+ ✓ errors for keys that are missing (7 ms)
451
+ ✓ handles both entries and entriesExist (9 ms)
451
452
  expectPackageEntries (CachingHost)
452
453
  fix: true
453
- ✓ fixes missing entries (8 ms)
454
- ✓ 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)
457
- ✓ handles both entries and entriesExist (24 ms)
454
+ ✓ fixes missing entries (7 ms)
455
+ ✓ fixes missing nested entries (15 ms)
456
+ ✓ doesn't error for nested entries that are defined (2 ms)
457
+ ✓ errors for keys that are missing (8 ms)
458
+ ✓ handles both entries and entriesExist (16 ms)
458
459
 
459
460
   PASS  src/__tests__/bannedDependencies.spec.ts
460
461
  bannedDependencies
461
462
  ✓ Flags banned dependencies correctly (8 ms)
462
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
463
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
463
464
  ✓ Flags banned dependencies correctly w new globs (2 ms)
464
- ✓ Flags banned dependencies correctly w exact (4 ms)
465
+ ✓ Flags banned dependencies correctly w exact (2 ms)
465
466
  ✓ Flags banned transitives correctly (5 ms)
466
467
 
467
468
   PASS  src/__tests__/nestedWorkspaces.spec.ts
468
469
  nestedWorkspaces
469
- ✓ 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)
470
+ ✓ checks correctly when no packages (14 ms)
471
+ ✓ checks correctly when one level packages (5 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 (6 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 (6 ms)
475
476
 
476
477
   PASS  src/__tests__/requireDependency.spec.ts
477
478
  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)
479
+ ✓ checks correctly (19 ms)
480
+ ✓ fixes correctly (12 ms)
486
481
 
487
482
  console.log
488
- package (/tmp/tmp-3123-xeGe28V0vvuF)
483
+ package (/tmp/tmp-3117-Hv1Q0eV0iSDR)
489
484
  
490
485
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
486
 
@@ -495,7 +490,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
495
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
491
 
497
492
  console.log
498
- package-unknown-keys (/tmp/tmp-3123-GN1HawLWj4lJ)
493
+ package-unknown-keys (/tmp/tmp-3117-GIEuRVQ0iDyc)
499
494
  
500
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
496
 
@@ -505,7 +500,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
505
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
501
 
507
502
  console.log
508
- package (/tmp/tmp-3123-lPsLnRQUYn6c)
503
+ package (/tmp/tmp-3117-3nTGHE08P0Hb)
509
504
  
510
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
506
 
@@ -515,7 +510,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
515
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
511
 
517
512
  console.log
518
- package (/tmp/tmp-3123-ZFQu0D0lwKqX)
513
+ package (/tmp/tmp-3117-TN9pJgGGaOOd)
519
514
  
520
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
516
 
@@ -525,7 +520,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
525
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
526
521
 
527
522
  console.log
528
- package-unknown-keys (/tmp/tmp-3123-6uberBGOtr1W)
523
+ package-unknown-keys (/tmp/tmp-3117-7UQ2HZyQJwJI)
529
524
  
530
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
531
526
 
@@ -535,7 +530,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
535
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
536
531
 
537
532
  console.log
538
- package (/tmp/tmp-3123-UHULjENruphJ)
533
+ package (/tmp/tmp-3117-iAygr5j1OIWU)
539
534
  
540
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
541
536
 
@@ -547,49 +542,65 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
547
542
   PASS  src/__tests__/packageOrder.spec.ts
548
543
  expectPackageOrder (SimpleHost)
549
544
  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)
553
- ✓ does nothing if already order (1 ms)
545
+ ✓ fixes order for expected keys (90 ms)
546
+ ✓ fixes order for unexpected keys (32 ms)
547
+ ✓ fixes order using function (10 ms)
548
+ ✓ does nothing if already order (2 ms)
554
549
  expectPackageOrder (CachingHost)
555
550
  fix: true
556
- ✓ fixes order for expected keys (7 ms)
551
+ ✓ fixes order for expected keys (23 ms)
557
552
  ✓ fixes order for unexpected keys (16 ms)
558
- ✓ fixes order using function (4 ms)
559
- ✓ does nothing if already order (1 ms)
553
+ ✓ fixes order using function (16 ms)
554
+ ✓ does nothing if already order (3 ms)
555
+
556
+  PASS  src/__tests__/consistentDependencies.spec.ts
557
+ consistentDependencies
558
+ ✓ checks correctly (11 ms)
559
+ ✓ fixes correctly (3 ms)
560
+ ✓ ignores ignored dependencies (1 ms)
560
561
 
561
562
  console.log
562
- rootProject (/tmp/tmp-3124-GW0YF3gQn3rC)
563
+ foo-lib (/tmp/tmp-3117-7BF8GJwrQ8Zy)
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-3124-KdoStsjvg85X)
573
+ foo-lib (/tmp/tmp-3117-ou8mig4jJcLt)
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 (10 ms)
586
+ ✓ does nothing if already sorted
587
+ alphabeticalScripts (CachingHost)
588
+ fix: true
589
+ ✓ fixes unsorted scripts (7 ms)
590
+ ✓ does nothing if already sorted (1 ms)
591
+
581
592
  console.log
582
- rootProject (/tmp/tmp-3124-SvyjiwZDe7N1)
593
+ rootProject (/tmp/tmp-3118-ZWuOUGKgcLwV)
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-3124-ypRZHlTps38T)
603
+ rootProject (/tmp/tmp-3118-ierd5F36Jdrj)
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-3124-8VQAXqOC2nf5)
613
+ rootProject (/tmp/tmp-3118-35itA5hO5S5Q)
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-3124-u2tvg43JzQK4)
623
+ rootProject (/tmp/tmp-3118-efo1AniC2USm)
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 (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
632
  console.log
634
- foo-lib (/tmp/tmp-3122-VuV9MB9s3Twv)
633
+ rootProject (/tmp/tmp-3118-75XpXZ3dPYvR)
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-3122-uSOBd31D4s5K)
643
+ rootProject (/tmp/tmp-3118-G3c6s7x2ke0E)
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 (58 ms)
657
- ✓ does nothing if already sorted (1 ms)
658
- alphabeticalScripts (CachingHost)
655
+ ✓ works with async generator (8 ms)
656
+ ✓ fixes missing file (3 ms)
657
+ ✓ fixes missing nested file (2 ms)
658
+ fileContents (CachingHost)
659
659
  fix: true
660
- ✓ fixes unsorted scripts (5 ms)
661
- ✓ does nothing if already sorted (1 ms)
660
+ ✓ works with async generator (11 ms)
661
+ ✓ fixes missing file (5 ms)
662
+ ✓ fixes missing nested file (4 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.594 s
667
+ Time: 9.763 s
667
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.16 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.22 KB
17
16
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
18
- ESM ⚡️ Build success in 109ms
17
+ ESM build/js/public/util.js.map 71.00 B
18
+ ESM ⚡️ Build success in 59ms
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.138+71dd2e0",
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.138+71dd2e0",
34
+ "@monorepolint/core": "^0.5.0-alpha.138+71dd2e0",
35
+ "@monorepolint/utils": "^0.5.0-alpha.138+71dd2e0",
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": "71dd2e0b2f664dee190a7654a3eb075c21aa8036"
63
63
  }