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

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