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

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,84 +3,28 @@
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 `'.'`
6
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 `'.'`
7
9
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
8
- (node:3244) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
9
- (Use `node --trace-warnings ...` to show where the warning was created)
10
-  PASS  src/__tests__/consistentVersions.spec.ts (6.271 s)
10
+  PASS  src/__tests__/consistentVersions.spec.ts (6.806 s)
11
11
  consistentVersions
12
12
  standard tests
13
- ✓ Does nothing when arguments are empty (32 ms)
14
- ✓ Fixes packages that have an incorrect dependency version (5 ms)
15
- ✓ Ignores packages that have a correct dependency version (1 ms)
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
16
  ✓ Fixes packages that have an incorrect devDependency version (2 ms)
17
17
  ✓ Ignores packages that have a correct devDependency version (2 ms)
18
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (27 ms)
18
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (5 ms)
19
19
  Multiple accepted versions tests
20
- ✓ Accepts a match when multiple versions are configured (3 ms)
21
- ✓ Errors when version does not match (2 ms)
22
-
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
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (6.671 s)
25
- mustSatisfyPeerDependencies
26
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
27
- ✓ Flags conflicting peer dependencies (4 ms)
28
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (5 ms)
29
- ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
30
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (8 ms)
31
- ✓ Honors dependencyWhitelist (8 ms)
32
- ✓ Honors dependencyBlacklist (4 ms)
33
- regex tests
34
- ✓ Properly matches any version range regex (59 ms)
35
- ✓ Properly matches greator or equal version range regex (11 ms)
36
- ✓ Properly matches major version range regex (17 ms)
37
- ✓ Properly matches allowed range regex (13 ms)
38
- Determines dependencies satisfaction correctly
39
- ✓ version is version (1 ms)
40
- ✓ version satisfies a range (4 ms)
41
- ✓ higher version satisfies a range (3 ms)
42
- ✓ version satisfies a greator or equal version range (3 ms)
43
- ✓ higher version satisfies a greator or equal version range (1 ms)
44
- ✓ version satisfies 'any' range (1 ms)
45
- ✓ greator or equal version range satisfies 'any' range (1 ms)
46
- ✓ range satisfies 'any' range (1 ms)
47
- ✓ union range satisfies 'any' range (1 ms)
48
- ✓ version found in union start (1 ms)
49
- ✓ version found in union end (1 ms)
50
- ✓ version satisfies a range in union start (1 ms)
51
- ✓ version satisfies a range in union end (1 ms)
52
- ✓ higher version satisfies a range in union start (1 ms)
53
- ✓ higher version satisfies a range in union end (11 ms)
54
- ✓ range found in union start
55
- ✓ range found in union end (1 ms)
56
- ✓ union satisfies greator or equal version range (1 ms)
57
- ✓ greator or equal version range satisfies greator or equal version range (2 ms)
58
- ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
59
- ✓ higher range satisfies a range in union start (1 ms)
60
- ✓ higher range satisfies a range in union end (1 ms)
61
- ✓ equivalent 'any' ranges satisfy each other (1 ms)
62
- ✓ equivalent major ranges satisfy each other (4 ms)
63
- ✓ version missing in union (1 ms)
64
- ✓ range missing in union (1 ms)
65
- Determines dependencies intersections correctly
66
- ✓ equivalence (2 ms)
67
- ✓ exact vs any (1 ms)
68
- ✓ major vs any
69
- ✓ greater or equal vs any (1 ms)
70
- ✓ any vs any (1 ms)
71
- ✓ exact vs greater or equal (1 ms)
72
- ✓ major vs greater or equal (2 ms)
73
- ✓ greater or equal vs greater or equal (4 ms)
74
- ✓ exact vs major (3 ms)
75
- ✓ major vs major (1 ms)
76
- ✓ exact vs union (2 ms)
77
- ✓ major vs union (1 ms)
78
- ✓ union vs union (2 ms)
20
+ ✓ Accepts a match when multiple versions are configured (2 ms)
21
+ ✓ Errors when version does not match (5 ms)
79
22
 
80
- (node:3243) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
23
+ (node:3296) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
81
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 `'.'`
82
26
  console.log
83
- package-without-scripts (/tmp/tmp-3245-kHrwotxpzqAU)
27
+ package-without-scripts (/tmp/tmp-3302-2zP2KzBwIbGw)
84
28
  
85
29
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
86
30
 
@@ -103,7 +47,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
103
47
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
104
48
 
105
49
  console.log
106
- package-without-scripts (/tmp/tmp-3245-29Mu4IQUiCTY)
50
+ package-without-scripts (/tmp/tmp-3302-NErEPryq74oF)
107
51
  
108
52
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
109
53
 
@@ -113,7 +57,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
113
57
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
114
58
 
115
59
  console.log
116
- package-with-scripts (/tmp/tmp-3245-y3V5aMStcmcL)
60
+ package-with-scripts (/tmp/tmp-3302-rpdyNB4ZeX8b)
117
61
  
118
62
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
119
63
 
@@ -123,7 +67,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
123
67
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
124
68
 
125
69
  console.log
126
- package-with-scripts (/tmp/tmp-3245-BEzGafT5JFfb)
70
+ package-with-scripts (/tmp/tmp-3302-X1ov3stpUOIe)
127
71
  
128
72
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
129
73
 
@@ -146,7 +90,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
146
90
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
147
91
 
148
92
  console.log
149
- package-with-scripts (/tmp/tmp-3245-MGjCQPgZmyaQ)
93
+ package-with-scripts (/tmp/tmp-3302-iylplG0DnYP4)
150
94
  
151
95
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
152
96
 
@@ -156,7 +100,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
156
100
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
157
101
 
158
102
  console.log
159
- package-with-scripts (/tmp/tmp-3245-IuGMstHsiqvd)
103
+ package-with-scripts (/tmp/tmp-3302-9erz1v5yXWh8)
160
104
  
161
105
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
162
106
 
@@ -166,7 +110,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
166
110
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
167
111
 
168
112
  console.log
169
- package-with-scripts (/tmp/tmp-3245-Xm4VU6jYiYjk)
113
+ package-with-scripts (/tmp/tmp-3302-VXHp1yqy2NtY)
170
114
  
171
115
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
172
116
 
@@ -175,10 +119,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
175
119
  
176
120
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
177
121
 
178
- (node:3245) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3302) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
179
123
  (Use `node --trace-warnings ...` to show where the warning was created)
180
124
  console.log
181
- package-without-scripts (/tmp/tmp-3245-4oWuxZoy85N8)
125
+ package-without-scripts (/tmp/tmp-3302-g9VEz6KLVjLH)
182
126
  
183
127
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
184
128
 
@@ -201,7 +145,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
201
145
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
202
146
 
203
147
  console.log
204
- package-without-scripts (/tmp/tmp-3245-gfbMzhhQxT45)
148
+ package-without-scripts (/tmp/tmp-3302-f5mfNgQNiOGQ)
205
149
  
206
150
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
207
151
 
@@ -211,7 +155,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
211
155
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
212
156
 
213
157
  console.log
214
- package-with-scripts (/tmp/tmp-3245-rACvjQ7MpuRq)
158
+ package-with-scripts (/tmp/tmp-3302-6pBCFc4e4hGf)
215
159
  
216
160
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
217
161
 
@@ -221,7 +165,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
221
165
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
222
166
 
223
167
  console.log
224
- package-with-scripts (/tmp/tmp-3245-5OFmvdQhkUJ1)
168
+ package-with-scripts (/tmp/tmp-3302-y0r1NzLKRi3j)
225
169
  
226
170
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
227
171
 
@@ -244,7 +188,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
244
188
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
245
189
 
246
190
  console.log
247
- package-with-scripts (/tmp/tmp-3245-xDvjz0sHvkzr)
191
+ package-with-scripts (/tmp/tmp-3302-1EWbHFlQY62p)
248
192
  
249
193
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
250
194
 
@@ -254,7 +198,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
254
198
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
255
199
 
256
200
  console.log
257
- package-with-scripts (/tmp/tmp-3245-0TP1AJn1ju2Y)
201
+ package-with-scripts (/tmp/tmp-3302-HZNHzXPgunXp)
258
202
  
259
203
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
260
204
 
@@ -264,7 +208,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
264
208
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
265
209
 
266
210
  console.log
267
- package-with-scripts (/tmp/tmp-3245-X41xg9kySu2i)
211
+ package-with-scripts (/tmp/tmp-3302-D5w2JY21O9Ec)
268
212
  
269
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
270
214
 
@@ -273,32 +217,98 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
273
217
  
274
218
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
275
219
 
276
-  PASS  src/__tests__/packageScript.spec.ts (6.959 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (7.222 s)
277
221
  expectPackageScript (SimpleHost)
278
222
  fix: false
279
- ✓ handles an empty script section (103 ms)
223
+ ✓ handles an empty script section (80 ms)
280
224
  fix: true
281
225
  ✓ fixes an empty script section (5 ms)
282
- ✓ adds a script (5 ms)
283
- ✓ does nothing if the value exists (2 ms)
226
+ ✓ adds a script (6 ms)
227
+ ✓ does nothing if the value exists (1 ms)
284
228
  ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
285
- ✓ uses the fixValue for fixing if provided (4 ms)
229
+ ✓ uses the fixValue for fixing if provided (11 ms)
286
230
  ✓ can fix to empty (5 ms)
287
231
  ✓ can allow only empty (4 ms)
288
232
  expectPackageScript (CachingHost)
289
233
  fix: false
290
- ✓ handles an empty script section (12 ms)
234
+ ✓ handles an empty script section (31 ms)
291
235
  fix: true
292
236
  ✓ fixes an empty script section (4 ms)
293
237
  ✓ adds a script (4 ms)
294
238
  ✓ does nothing if the value exists (1 ms)
295
- ✓ errors if long form is used and no value matches and there is no fixValue (8 ms)
296
- ✓ uses the fixValue for fixing if provided (19 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)
297
241
  ✓ can fix to empty (4 ms)
298
- ✓ can allow only empty (12 ms)
242
+ ✓ can allow only empty (4 ms)
243
+
244
+ (node:3295) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
245
+ (Use `node --trace-warnings ...` to show where the warning was created)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.509 s)
247
+ mustSatisfyPeerDependencies
248
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
249
+ ✓ 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)
255
+ 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)
260
+ Determines dependencies satisfaction correctly
261
+ ✓ version is version (1 ms)
262
+ ✓ version satisfies a range (4 ms)
263
+ ✓ higher version satisfies a range (3 ms)
264
+ ✓ version satisfies a greator or equal version range (1 ms)
265
+ ✓ higher version satisfies a greator or equal version range (10 ms)
266
+ ✓ version satisfies 'any' range (8 ms)
267
+ ✓ 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)
270
+ ✓ version found in union start (1 ms)
271
+ ✓ version found in union end (1 ms)
272
+ ✓ version satisfies a range in union start (1 ms)
273
+ ✓ version satisfies a range in union end (1 ms)
274
+ ✓ higher version satisfies a range in union start (1 ms)
275
+ ✓ higher version satisfies a range in union end (1 ms)
276
+ ✓ range found in union start (1 ms)
277
+ ✓ range found in union end (1 ms)
278
+ ✓ union satisfies greator or equal version range (1 ms)
279
+ ✓ greator or equal version range satisfies greator or equal version range
280
+ ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
281
+ ✓ higher range satisfies a range in union start
282
+ ✓ 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)
286
+ ✓ range missing in union (1 ms)
287
+ Determines dependencies intersections correctly
288
+ ✓ equivalence (3 ms)
289
+ ✓ exact vs any (1 ms)
290
+ ✓ 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)
295
+ ✓ 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)
299
+ ✓ major vs union (1 ms)
300
+ ✓ union vs union (1 ms)
301
+
302
+  PASS  src/__tests__/bannedDependencies.spec.ts
303
+ bannedDependencies
304
+ ✓ Flags banned dependencies correctly (11 ms)
305
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
306
+ ✓ Flags banned dependencies correctly w new globs (1 ms)
307
+ ✓ Flags banned dependencies correctly w exact (1 ms)
308
+ ✓ Flags banned transitives correctly (8 ms)
299
309
 
300
310
  console.log
301
- package (/tmp/tmp-3243-AoNg6kQjd9Ag)
311
+ package (/tmp/tmp-3302-MmbVdvWCYT8A)
302
312
  
303
313
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
304
314
 
@@ -308,7 +318,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
308
318
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
309
319
 
310
320
  console.log
311
- package (/tmp/tmp-3243-dh8ClJs0o39S)
321
+ package (/tmp/tmp-3302-SaIwCABYAxzz)
312
322
  
313
323
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
314
324
 
@@ -317,16 +327,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
317
327
  
318
328
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
319
329
 
320
-  PASS  src/__tests__/bannedDependencies.spec.ts
321
- bannedDependencies
322
- ✓ Flags banned dependencies correctly (19 ms)
323
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
324
- ✓ Flags banned dependencies correctly w new globs (2 ms)
325
- ✓ Flags banned dependencies correctly w exact (3 ms)
326
- ✓ Flags banned transitives correctly (9 ms)
327
-
328
330
  console.log
329
- package (/tmp/tmp-3243-TWf7Ao05dqZV)
331
+ package (/tmp/tmp-3302-qL2hQTwO6VpC)
330
332
  
331
333
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
332
334
 
@@ -349,7 +351,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
349
351
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
350
352
 
351
353
  console.log
352
- package (/tmp/tmp-3243-MeX7blx8W3jX)
354
+ package (/tmp/tmp-3302-UvGW6nYhtkBd)
353
355
  
354
356
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
355
357
 
@@ -377,7 +379,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
377
379
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
378
380
 
379
381
  console.log
380
- package (/tmp/tmp-3243-hINQZ0fCjzD1)
382
+ package (/tmp/tmp-3302-lxyDdo3uUmnw)
381
383
  
382
384
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
383
385
 
@@ -387,7 +389,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
387
389
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
388
390
 
389
391
  console.log
390
- package (/tmp/tmp-3243-nRK44LaiqbSy)
392
+ package (/tmp/tmp-3302-AmlYSFoL7vzC)
391
393
  
392
394
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
393
395
 
@@ -397,7 +399,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
397
399
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
398
400
 
399
401
  console.log
400
- package (/tmp/tmp-3243-zWgRd6YEDye1)
402
+ package (/tmp/tmp-3302-nARTA2aOTfxE)
401
403
  
402
404
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
403
405
 
@@ -420,26 +422,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
420
422
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
421
423
 
422
424
  console.log
423
- package (/tmp/tmp-3243-vUjVLEZtwrES)
425
+ package (/tmp/tmp-3302-YyPetPt2lt0p)
424
426
  
425
427
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
426
428
 
427
-  PASS  src/__tests__/packageEntry.spec.ts
428
- expectPackageEntries (SimpleHost)
429
- fix: true
430
- ✓ fixes missing entries (68 ms)
431
- ✓ fixes missing nested entries (5 ms)
432
- ✓ doesn't error for nested entries that are defined (1 ms)
433
- ✓ errors for keys that are missing (10 ms)
434
- ✓ handles both entries and entriesExist (11 ms)
435
- expectPackageEntries (CachingHost)
436
- fix: true
437
- ✓ fixes missing entries (16 ms)
438
- ✓ fixes missing nested entries (9 ms)
439
- ✓ doesn't error for nested entries that are defined (1 ms)
440
- ✓ errors for keys that are missing (7 ms)
441
- ✓ handles both entries and entriesExist (9 ms)
442
-
443
429
  console.error
444
430
   Error! package.json: Expected entry for 'bugs' to exist
445
431
  
@@ -463,22 +449,44 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
463
449
  
464
450
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
465
451
 
452
+  PASS  src/__tests__/packageEntry.spec.ts
453
+ expectPackageEntries (SimpleHost)
454
+ 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)
458
+ ✓ errors for keys that are missing (9 ms)
459
+ ✓ handles both entries and entriesExist (24 ms)
460
+ expectPackageEntries (CachingHost)
461
+ fix: true
462
+ ✓ fixes missing entries (14 ms)
463
+ ✓ fixes missing nested entries (5 ms)
464
+ ✓ 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
+
466
468
   PASS  src/__tests__/nestedWorkspaces.spec.ts
467
469
  nestedWorkspaces
468
470
  ✓ checks correctly when no packages (15 ms)
469
- ✓ checks correctly when one level packages (6 ms)
470
- ✓ checks fail when one level packages with no workspaces field (14 ms)
471
- ✓ checks correctly when two level packages with two level workspaces field (9 ms)
472
- ✓ checks fail when two level packages with one level workspaces field (16 ms)
473
- ✓ checks correctly when three level packages with three level workspaces field (8 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)
474
476
 
475
477
   PASS  src/__tests__/requireDependency.spec.ts
476
478
  requireDependency
477
- ✓ checks correctly (13 ms)
478
- ✓ fixes correctly (9 ms)
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)
479
487
 
480
488
  console.log
481
- package (/tmp/tmp-3243-x3rKlFMkviQU)
489
+ package (/tmp/tmp-3302-rZlJsEL56XfG)
482
490
  
483
491
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
484
492
 
@@ -488,7 +496,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
488
496
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
489
497
 
490
498
  console.log
491
- package-unknown-keys (/tmp/tmp-3243-VvcsPX1av7aE)
499
+ package-unknown-keys (/tmp/tmp-3302-ViT3M6VdDqyq)
492
500
  
493
501
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
494
502
 
@@ -498,7 +506,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
498
506
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
499
507
 
500
508
  console.log
501
- package (/tmp/tmp-3243-krr1BUkeEs4r)
509
+ package (/tmp/tmp-3302-krqG0YeTKlc2)
502
510
  
503
511
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
504
512
 
@@ -508,7 +516,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
508
516
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
509
517
 
510
518
  console.log
511
- package (/tmp/tmp-3243-gO2xRgRQP6N6)
519
+ package (/tmp/tmp-3302-QS13VpygAztz)
512
520
  
513
521
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
514
522
 
@@ -518,7 +526,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
518
526
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
519
527
 
520
528
  console.log
521
- package-unknown-keys (/tmp/tmp-3243-RN7FvreirtIQ)
529
+ package-unknown-keys (/tmp/tmp-3302-ThXhMcKVBaTz)
522
530
  
523
531
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
524
532
 
@@ -528,97 +536,76 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
528
536
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
529
537
 
530
538
  console.log
531
- package (/tmp/tmp-3243-Gv7GAhDuYdSY)
532
- 
533
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
534
-
535
- console.log
536
- Fixed! package.json: Incorrect order of fields in package.json
539
+ package (/tmp/tmp-3302-K8GWVJG4sF32)
537
540
  
538
541
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
539
542
 
540
543
   PASS  src/__tests__/packageOrder.spec.ts
541
544
  expectPackageOrder (SimpleHost)
542
545
  fix: true
543
- ✓ fixes order for expected keys (24 ms)
544
- ✓ fixes order for unexpected keys (17 ms)
545
- ✓ fixes order using function (5 ms)
546
+ ✓ fixes order for expected keys (18 ms)
547
+ ✓ fixes order for unexpected keys (24 ms)
548
+ ✓ fixes order using function (4 ms)
546
549
  ✓ does nothing if already order (2 ms)
547
550
  expectPackageOrder (CachingHost)
548
551
  fix: true
549
- ✓ fixes order for expected keys (11 ms)
552
+ ✓ fixes order for expected keys (6 ms)
550
553
  ✓ fixes order for unexpected keys (5 ms)
551
- ✓ fixes order using function (17 ms)
552
- ✓ does nothing if already order (1 ms)
553
-
554
-  PASS  src/__tests__/consistentDependencies.spec.ts
555
- consistentDependencies
556
- ✓ checks correctly (16 ms)
557
- ✓ fixes correctly (4 ms)
558
- ✓ ignores ignored dependencies (3 ms)
554
+ ✓ fixes order using function (4 ms)
555
+ ✓ does nothing if already order (2 ms)
559
556
 
560
557
  console.log
561
- foo-lib (/tmp/tmp-3243-VtVsQaYy06Sn)
558
+ Fixed! package.json: Incorrect order of fields in package.json
562
559
  
563
560
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
564
561
 
565
562
  console.log
566
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
563
+ rootProject (/tmp/tmp-3296-K9ecRRhEhKz3)
567
564
  
568
565
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
569
566
 
570
567
  console.log
571
- foo-lib (/tmp/tmp-3243-cXYFR76uuAJ9)
568
+ Fixed! foo.txt: Expect file contents to match
572
569
  
573
570
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
574
571
 
575
572
  console.log
576
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
573
+ rootProject (/tmp/tmp-3296-glLwXlKNV77J)
577
574
  
578
575
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
579
576
 
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 (12 ms)
588
- ✓ does nothing if already sorted (1 ms)
589
-
590
577
  console.log
591
- rootProject (/tmp/tmp-3244-Xvb1mNbq2JMO)
578
+ Fixed! foo.txt: Expect file contents to match
592
579
  
593
580
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
594
581
 
595
582
  console.log
596
- Fixed! foo.txt: Expect file contents to match
583
+ foo-lib (/tmp/tmp-3295-o52N0EIbn360)
597
584
  
598
585
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
599
586
 
600
587
  console.log
601
- rootProject (/tmp/tmp-3244-lADE0fLDl5qj)
588
+ rootProject (/tmp/tmp-3296-1wvFaL3TBUls)
602
589
  
603
590
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
604
591
 
605
592
  console.log
606
- Fixed! foo.txt: Expect file contents to match
593
+ Fixed! nested/foo.txt: Expect file contents to match
607
594
  
608
595
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
609
596
 
610
597
  console.log
611
- rootProject (/tmp/tmp-3244-rlK5beSTWPm9)
598
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
612
599
  
613
600
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
614
601
 
615
602
  console.log
616
- Fixed! nested/foo.txt: Expect file contents to match
603
+ rootProject (/tmp/tmp-3296-O4qyaYxEl44u)
617
604
  
618
605
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
619
606
 
620
607
  console.log
621
- rootProject (/tmp/tmp-3244-wYU9izbD6Wn1)
608
+ foo-lib (/tmp/tmp-3295-tySZuNKYqd59)
622
609
  
623
610
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
624
611
 
@@ -628,17 +615,32 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
628
615
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
629
616
 
630
617
  console.log
631
- rootProject (/tmp/tmp-3244-MaWuvQUw3Y1V)
618
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
619
+ 
620
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
+
622
+ console.log
623
+ rootProject (/tmp/tmp-3296-1cTPWf4duqak)
632
624
  
633
625
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
634
626
 
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
+
635
637
  console.log
636
638
  Fixed! foo.txt: Expect file contents to match
637
639
  
638
640
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
639
641
 
640
642
  console.log
641
- rootProject (/tmp/tmp-3244-xsJTnr1pZ683)
643
+ rootProject (/tmp/tmp-3296-SiwSBNppSyzf)
642
644
  
643
645
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
644
646
 
@@ -650,17 +652,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
650
652
   PASS  src/__tests__/fileContents.spec.ts
651
653
  fileContents (SimpleHost)
652
654
  fix: true
653
- ✓ works with async generator (42 ms)
655
+ ✓ works with async generator (46 ms)
654
656
  ✓ fixes missing file (3 ms)
655
657
  ✓ fixes missing nested file (3 ms)
656
658
  fileContents (CachingHost)
657
659
  fix: true
658
- ✓ works with async generator (10 ms)
660
+ ✓ works with async generator (14 ms)
659
661
  ✓ fixes missing file (3 ms)
660
662
  ✓ fixes missing nested file (3 ms)
661
663
 
662
664
  Test Suites: 11 passed, 11 total
663
665
  Tests: 118 passed, 118 total
664
666
  Snapshots: 0 total
665
- Time: 9.17 s
667
+ Time: 9.789 s
666
668
  Ran all test suites.
@@ -9,10 +9,10 @@
9
9
  CLI Target: node16
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
+ ESM build/js/public/util.js 106.00 B
12
13
  ESM build/js/index.js 50.11 KB
13
14
  ESM build/js/chunk-A2MUUSNE.js 512.00 B
14
- ESM build/js/public/util.js 106.00 B
15
+ ESM build/js/public/util.js.map 71.00 B
15
16
  ESM build/js/index.js.map 100.21 KB
16
17
  ESM build/js/chunk-A2MUUSNE.js.map 1.19 KB
17
- ESM build/js/public/util.js.map 71.00 B
18
- ESM ⚡️ Build success in 61ms
18
+ ESM ⚡️ Build success in 78ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.128+d470b31",
3
+ "version": "0.5.0-alpha.129+2867735",
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.128+d470b31",
34
- "@monorepolint/core": "^0.5.0-alpha.128+d470b31",
35
- "@monorepolint/utils": "^0.5.0-alpha.128+d470b31",
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",
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": "d470b310203d63954199a615676ce8dbca2e032e"
62
+ "gitHead": "286773563d63844ba674f02884633896b75fa5b5"
63
63
  }