@monorepolint/rules 0.5.0-alpha.124 → 0.5.0-alpha.126

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,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/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
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 `'.'`
8
- (node:3269) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
7
+ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/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
+ 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:3286) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
9
10
  (Use `node --trace-warnings ...` to show where the warning was created)
10
-  PASS  src/__tests__/consistentVersions.spec.ts (6.196 s)
11
+  PASS  src/__tests__/consistentVersions.spec.ts (6.71 s)
11
12
  consistentVersions
12
13
  standard tests
13
- ✓ Does nothing when arguments are empty (32 ms)
14
- ✓ Fixes packages that have an incorrect dependency version (6 ms)
15
- ✓ Ignores packages that have a correct dependency version (4 ms)
16
- ✓ Fixes packages that have an incorrect devDependency version (5 ms)
17
- ✓ Ignores packages that have a correct devDependency version (6 ms)
18
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (10 ms)
14
+ ✓ Does nothing when arguments are empty (13 ms)
15
+ ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
+ ✓ Ignores packages that have a correct dependency version (1 ms)
17
+ ✓ Fixes packages that have an incorrect devDependency version (2 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)
19
20
  Multiple accepted versions tests
20
21
  ✓ Accepts a match when multiple versions are configured (3 ms)
21
- ✓ Errors when version does not match (8 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
- (node:3268) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
25
- (Use `node --trace-warnings ...` to show where the warning was created)
26
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (6.669 s)
27
- mustSatisfyPeerDependencies
28
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
29
- ✓ Flags conflicting peer dependencies (4 ms)
30
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (6 ms)
31
- ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
32
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
33
- ✓ Honors dependencyWhitelist (5 ms)
34
- ✓ Honors dependencyBlacklist (5 ms)
35
- regex tests
36
- ✓ Properly matches any version range regex (41 ms)
37
- ✓ Properly matches greator or equal version range regex (13 ms)
38
- ✓ Properly matches major version range regex (14 ms)
39
- ✓ Properly matches allowed range regex (11 ms)
40
- Determines dependencies satisfaction correctly
41
- ✓ version is version
42
- ✓ version satisfies a range (2 ms)
43
- ✓ higher version satisfies a range (1 ms)
44
- ✓ version satisfies a greator or equal version range (1 ms)
45
- ✓ higher version satisfies a greator or equal version range (1 ms)
46
- ✓ version satisfies 'any' range (1 ms)
47
- ✓ greator or equal version range satisfies 'any' range (1 ms)
48
- ✓ range satisfies 'any' range (1 ms)
49
- ✓ union range satisfies 'any' range (2 ms)
50
- ✓ version found in union start (1 ms)
51
- ✓ version found in union end (1 ms)
52
- ✓ version satisfies a range in union start (2 ms)
53
- ✓ version satisfies a range in union end (1 ms)
54
- ✓ higher version satisfies a range in union start (4 ms)
55
- ✓ higher version satisfies a range in union end
56
- ✓ range found in union start
57
- ✓ range found in union end (1 ms)
58
- ✓ union satisfies greator or equal version range (1 ms)
59
- ✓ greator or equal version range satisfies greator or equal version range (1 ms)
60
- ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
61
- ✓ higher range satisfies a range in union start
62
- ✓ higher range satisfies a range in union end (1 ms)
63
- ✓ equivalent 'any' ranges satisfy each other (1 ms)
64
- ✓ equivalent major ranges satisfy each other (4 ms)
65
- ✓ version missing in union
66
- ✓ range missing in union (1 ms)
67
- Determines dependencies intersections correctly
68
- ✓ equivalence (2 ms)
69
- ✓ exact vs any
70
- ✓ major vs any (1 ms)
71
- ✓ greater or equal vs any (1 ms)
72
- ✓ any vs any
73
- ✓ exact vs greater or equal (1 ms)
74
- ✓ major vs greater or equal (1 ms)
75
- ✓ greater or equal vs greater or equal
76
- ✓ exact vs major (1 ms)
77
- ✓ major vs major (1 ms)
78
- ✓ exact vs union (2 ms)
79
- ✓ major vs union (2 ms)
80
- ✓ union vs union (2 ms)
22
+ ✓ Errors when version does not match (3 ms)
81
23
 
82
24
  console.log
83
- package-without-scripts (/tmp/tmp-3270-sQ29aFWCmy5O)
25
+ package-without-scripts (/tmp/tmp-3292-Vp52GdfQOn9m)
84
26
  
85
27
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
86
28
 
@@ -103,7 +45,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
103
45
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
104
46
 
105
47
  console.log
106
- package-without-scripts (/tmp/tmp-3270-GngcBCWfnq50)
48
+ package-without-scripts (/tmp/tmp-3292-KBQGIFsmF4Tk)
107
49
  
108
50
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
109
51
 
@@ -113,7 +55,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
113
55
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
114
56
 
115
57
  console.log
116
- package-with-scripts (/tmp/tmp-3270-KKxSdC0xsijQ)
58
+ package-with-scripts (/tmp/tmp-3292-VtbC3A0WO4va)
117
59
  
118
60
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
119
61
 
@@ -123,7 +65,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
123
65
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
124
66
 
125
67
  console.log
126
- package-with-scripts (/tmp/tmp-3270-u6xD7J82GCqO)
68
+ package-with-scripts (/tmp/tmp-3292-DIf65alDXcgc)
127
69
  
128
70
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
129
71
 
@@ -146,7 +88,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
146
88
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
147
89
 
148
90
  console.log
149
- package-with-scripts (/tmp/tmp-3270-Shufm8kXysYS)
91
+ package-with-scripts (/tmp/tmp-3292-PpK7Y4vUo0cJ)
150
92
  
151
93
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
152
94
 
@@ -156,7 +98,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
156
98
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
157
99
 
158
100
  console.log
159
- package-with-scripts (/tmp/tmp-3270-9Ft5JQtmwwfu)
101
+ package-with-scripts (/tmp/tmp-3292-cFLCiyYyaByK)
160
102
  
161
103
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
162
104
 
@@ -166,7 +108,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
166
108
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
167
109
 
168
110
  console.log
169
- package-with-scripts (/tmp/tmp-3270-7l8cv3Nww7iw)
111
+ package-with-scripts (/tmp/tmp-3292-wUJpnAVxfdH7)
170
112
  
171
113
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
172
114
 
@@ -175,13 +117,14 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
175
117
  
176
118
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
177
119
 
178
- (node:3270) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
120
+ (node:3292) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
179
121
  (Use `node --trace-warnings ...` to show where the warning was created)
180
122
  console.log
181
- package-without-scripts (/tmp/tmp-3270-TeqeuZK0rOrW)
123
+ package-without-scripts (/tmp/tmp-3292-XAfY1cFnXwgy)
182
124
  
183
125
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
184
126
 
127
+ 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 `'.'`
185
128
  console.error
186
129
   Error! package.json: No scripts block in package.json
187
130
  
@@ -201,7 +144,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
201
144
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
202
145
 
203
146
  console.log
204
- package-without-scripts (/tmp/tmp-3270-Gi7hXMb6pzpZ)
147
+ package-without-scripts (/tmp/tmp-3292-ck9P4E4ZRPaC)
205
148
  
206
149
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
207
150
 
@@ -211,7 +154,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
211
154
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
212
155
 
213
156
  console.log
214
- package-with-scripts (/tmp/tmp-3270-Hkc4DtL5mqQK)
157
+ package-with-scripts (/tmp/tmp-3292-mbtxkmpmXVsx)
215
158
  
216
159
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
217
160
 
@@ -221,7 +164,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
221
164
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
222
165
 
223
166
  console.log
224
- package-with-scripts (/tmp/tmp-3270-pw4a4eWeFnWX)
167
+ package-with-scripts (/tmp/tmp-3292-qvDgAg63PlXh)
225
168
  
226
169
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
227
170
 
@@ -244,7 +187,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
244
187
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
245
188
 
246
189
  console.log
247
- package-with-scripts (/tmp/tmp-3270-U8eWbmC7dxJZ)
190
+ package-with-scripts (/tmp/tmp-3292-pBj99xzsyqFg)
248
191
  
249
192
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
250
193
 
@@ -254,7 +197,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
254
197
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
255
198
 
256
199
  console.log
257
- package-with-scripts (/tmp/tmp-3270-86FKb6pJvbeT)
200
+ package-with-scripts (/tmp/tmp-3292-5pvHLvpTqqJ1)
258
201
  
259
202
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
260
203
 
@@ -264,7 +207,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
264
207
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
265
208
 
266
209
  console.log
267
- package-with-scripts (/tmp/tmp-3270-g1zhe7aqrZCc)
210
+ package-with-scripts (/tmp/tmp-3292-tqR7UZYN06GA)
268
211
  
269
212
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
270
213
 
@@ -273,40 +216,90 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
273
216
  
274
217
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
275
218
 
276
-  PASS  src/__tests__/packageScript.spec.ts (6.913 s)
219
+  PASS  src/__tests__/packageScript.spec.ts (6.906 s)
277
220
  expectPackageScript (SimpleHost)
278
221
  fix: false
279
- ✓ handles an empty script section (101 ms)
222
+ ✓ handles an empty script section (148 ms)
280
223
  fix: true
281
- ✓ fixes an empty script section (12 ms)
282
- ✓ adds a script (7 ms)
283
- ✓ does nothing if the value exists (2 ms)
284
- ✓ errors if long form is used and no value matches and there is no fixValue (20 ms)
285
- ✓ uses the fixValue for fixing if provided (5 ms)
286
- ✓ can fix to empty (5 ms)
287
- ✓ can allow only empty (5 ms)
224
+ ✓ fixes an empty script section (29 ms)
225
+ ✓ adds a script (14 ms)
226
+ ✓ does nothing if the value exists (3 ms)
227
+ ✓ errors if long form is used and no value matches and there is no fixValue (17 ms)
228
+ ✓ uses the fixValue for fixing if provided (10 ms)
229
+ ✓ can fix to empty (8 ms)
230
+ ✓ can allow only empty (10 ms)
288
231
  expectPackageScript (CachingHost)
289
232
  fix: false
290
- ✓ handles an empty script section (22 ms)
233
+ ✓ handles an empty script section (37 ms)
291
234
  fix: true
292
- ✓ fixes an empty script section (6 ms)
235
+ ✓ fixes an empty script section (14 ms)
293
236
  ✓ adds a script (7 ms)
294
- ✓ does nothing if the value exists (12 ms)
295
- ✓ errors if long form is used and no value matches and there is no fixValue (14 ms)
296
- ✓ uses the fixValue for fixing if provided (15 ms)
237
+ ✓ does nothing if the value exists (2 ms)
238
+ ✓ errors if long form is used and no value matches and there is no fixValue (12 ms)
239
+ ✓ uses the fixValue for fixing if provided (13 ms)
297
240
  ✓ can fix to empty (4 ms)
298
- ✓ can allow only empty (4 ms)
241
+ ✓ can allow only empty (3 ms)
299
242
 
300
-  PASS  src/__tests__/bannedDependencies.spec.ts
301
- bannedDependencies
302
- ✓ Flags banned dependencies correctly (10 ms)
303
- ✓ Flags banned dependencies correctly w legacy globs (2 ms)
304
- ✓ Flags banned dependencies correctly w new globs (3 ms)
305
- ✓ Flags banned dependencies correctly w exact (4 ms)
306
- ✓ Flags banned transitives correctly (7 ms)
243
+ (node:3285) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (Use `node --trace-warnings ...` to show where the warning was created)
245
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.618 s)
246
+ mustSatisfyPeerDependencies
247
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (8 ms)
248
+ ✓ Flags conflicting peer dependencies (4 ms)
249
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (3 ms)
250
+ ✓ Flags missing peer dependencies (NO regular dependency present) (5 ms)
251
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
252
+ ✓ Honors dependencyWhitelist (5 ms)
253
+ ✓ Honors dependencyBlacklist (5 ms)
254
+ regex tests
255
+ ✓ Properly matches any version range regex (34 ms)
256
+ ✓ Properly matches greator or equal version range regex (36 ms)
257
+ ✓ Properly matches major version range regex (10 ms)
258
+ ✓ Properly matches allowed range regex (36 ms)
259
+ Determines dependencies satisfaction correctly
260
+ ✓ version is version (1 ms)
261
+ ✓ version satisfies a range (5 ms)
262
+ ✓ higher version satisfies a range (2 ms)
263
+ ✓ version satisfies a greator or equal version range (2 ms)
264
+ ✓ higher version satisfies a greator or equal version range (1 ms)
265
+ ✓ version satisfies 'any' range (1 ms)
266
+ ✓ greator or equal version range satisfies 'any' range (7 ms)
267
+ ✓ range satisfies 'any' range (2 ms)
268
+ ✓ union range satisfies 'any' range (1 ms)
269
+ ✓ version found in union start (12 ms)
270
+ ✓ version found in union end (1 ms)
271
+ ✓ version satisfies a range in union start (1 ms)
272
+ ✓ version satisfies a range in union end (1 ms)
273
+ ✓ higher version satisfies a range in union start (1 ms)
274
+ ✓ higher version satisfies a range in union end (1 ms)
275
+ ✓ range found in union start (1 ms)
276
+ ✓ range found in union end (1 ms)
277
+ ✓ union satisfies greator or equal version range (1 ms)
278
+ ✓ greator or equal version range satisfies greator or equal version range (1 ms)
279
+ ✓ equivalent greator or equal version ranges satisfy each other (2 ms)
280
+ ✓ higher range satisfies a range in union start (1 ms)
281
+ ✓ higher range satisfies a range in union end (1 ms)
282
+ ✓ equivalent 'any' ranges satisfy each other
283
+ ✓ equivalent major ranges satisfy each other (5 ms)
284
+ ✓ version missing in union (1 ms)
285
+ ✓ range missing in union (1 ms)
286
+ Determines dependencies intersections correctly
287
+ ✓ equivalence (1 ms)
288
+ ✓ exact vs any
289
+ ✓ major vs any (1 ms)
290
+ ✓ greater or equal vs any (1 ms)
291
+ ✓ any vs any (1 ms)
292
+ ✓ exact vs greater or equal (1 ms)
293
+ ✓ major vs greater or equal (2 ms)
294
+ ✓ greater or equal vs greater or equal (14 ms)
295
+ ✓ exact vs major (2 ms)
296
+ ✓ major vs major (1 ms)
297
+ ✓ exact vs union (1 ms)
298
+ ✓ major vs union (1 ms)
299
+ ✓ union vs union (3 ms)
307
300
 
308
301
  console.log
309
- package (/tmp/tmp-3268-tR8O6FN5AHio)
302
+ package (/tmp/tmp-3292-YM3b8eOraLMA)
310
303
  
311
304
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
312
305
 
@@ -316,7 +309,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
316
309
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
317
310
 
318
311
  console.log
319
- package (/tmp/tmp-3268-rWgwArokifxB)
312
+ package (/tmp/tmp-3292-eVXBl7x78G3k)
320
313
  
321
314
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
322
315
 
@@ -326,7 +319,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
326
319
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
327
320
 
328
321
  console.log
329
- package (/tmp/tmp-3268-kgrV4CkJR3fy)
322
+ package (/tmp/tmp-3292-hh6VKijkIQDb)
330
323
  
331
324
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
332
325
 
@@ -349,7 +342,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
349
342
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
350
343
 
351
344
  console.log
352
- package (/tmp/tmp-3268-G9IhXsdre3IL)
345
+ package (/tmp/tmp-3292-yeH8i0OBrAUa)
353
346
  
354
347
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
355
348
 
@@ -377,7 +370,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
377
370
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
378
371
 
379
372
  console.log
380
- package (/tmp/tmp-3268-nbTSkGntSLBj)
373
+ package (/tmp/tmp-3292-4vK1izCdVyua)
381
374
  
382
375
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
383
376
 
@@ -387,7 +380,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
387
380
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
388
381
 
389
382
  console.log
390
- package (/tmp/tmp-3268-tJHxWO14B5Wu)
383
+ package (/tmp/tmp-3292-yiu7P99TouKG)
391
384
  
392
385
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
393
386
 
@@ -397,7 +390,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
397
390
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
398
391
 
399
392
  console.log
400
- package (/tmp/tmp-3268-CXAHz11b9b5I)
393
+ package (/tmp/tmp-3292-sZbKvfbYJNk0)
401
394
  
402
395
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
403
396
 
@@ -420,26 +413,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
420
413
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
421
414
 
422
415
  console.log
423
- package (/tmp/tmp-3268-bDkZQYDHX1jt)
416
+ package (/tmp/tmp-3292-cHJ2fHIb9r2S)
424
417
  
425
418
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
426
419
 
427
-  PASS  src/__tests__/packageEntry.spec.ts
428
- expectPackageEntries (SimpleHost)
429
- fix: true
430
- ✓ fixes missing entries (84 ms)
431
- ✓ fixes missing nested entries (7 ms)
432
- ✓ doesn't error for nested entries that are defined (2 ms)
433
- ✓ errors for keys that are missing (9 ms)
434
- ✓ handles both entries and entriesExist (11 ms)
435
- expectPackageEntries (CachingHost)
436
- fix: true
437
- ✓ fixes missing entries (26 ms)
438
- ✓ fixes missing nested entries (5 ms)
439
- ✓ doesn't error for nested entries that are defined (2 ms)
440
- ✓ errors for keys that are missing (16 ms)
441
- ✓ handles both entries and entriesExist (27 ms)
442
-
443
420
  console.error
444
421
   Error! package.json: Expected entry for 'bugs' to exist
445
422
  
@@ -463,17 +440,46 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
463
440
  
464
441
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
465
442
 
443
+  PASS  src/__tests__/packageEntry.spec.ts
444
+ expectPackageEntries (SimpleHost)
445
+ fix: true
446
+ ✓ fixes missing entries (25 ms)
447
+ ✓ fixes missing nested entries (5 ms)
448
+ ✓ doesn't error for nested entries that are defined (2 ms)
449
+ ✓ errors for keys that are missing (9 ms)
450
+ ✓ handles both entries and entriesExist (12 ms)
451
+ expectPackageEntries (CachingHost)
452
+ fix: true
453
+ ✓ fixes missing entries (6 ms)
454
+ ✓ fixes missing nested entries (7 ms)
455
+ ✓ doesn't error for nested entries that are defined (1 ms)
456
+ ✓ errors for keys that are missing (6 ms)
457
+ ✓ handles both entries and entriesExist (17 ms)
458
+
459
+  PASS  src/__tests__/bannedDependencies.spec.ts
460
+ bannedDependencies
461
+ ✓ Flags banned dependencies correctly (10 ms)
462
+ ✓ Flags banned dependencies correctly w legacy globs (3 ms)
463
+ ✓ Flags banned dependencies correctly w new globs (2 ms)
464
+ ✓ Flags banned dependencies correctly w exact (2 ms)
465
+ ✓ Flags banned transitives correctly (7 ms)
466
+
466
467
   PASS  src/__tests__/nestedWorkspaces.spec.ts
467
468
  nestedWorkspaces
468
- ✓ checks correctly when no packages (16 ms)
469
- ✓ checks correctly when one level packages (6 ms)
470
- ✓ checks fail when one level packages with no workspaces field (5 ms)
471
- ✓ checks correctly when two level packages with two level workspaces field (14 ms)
472
- ✓ checks fail when two level packages with one level workspaces field (6 ms)
473
- ✓ checks correctly when three level packages with three level workspaces field (8 ms)
469
+ ✓ checks correctly when no packages (12 ms)
470
+ ✓ checks correctly when one level packages (7 ms)
471
+ ✓ checks fail when one level packages with no workspaces field (23 ms)
472
+ ✓ checks correctly when two level packages with two level workspaces field (6 ms)
473
+ ✓ checks fail when two level packages with one level workspaces field (11 ms)
474
+ ✓ checks correctly when three level packages with three level workspaces field (10 ms)
475
+
476
+  PASS  src/__tests__/requireDependency.spec.ts
477
+ requireDependency
478
+ ✓ checks correctly (35 ms)
479
+ ✓ fixes correctly (19 ms)
474
480
 
475
481
  console.log
476
- package (/tmp/tmp-3268-1rP8ShxIQu88)
482
+ package (/tmp/tmp-3286-jWfunrCZrf7O)
477
483
  
478
484
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
479
485
 
@@ -482,13 +488,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
482
488
  
483
489
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
484
490
 
485
-  PASS  src/__tests__/requireDependency.spec.ts
486
- requireDependency
487
- ✓ checks correctly (14 ms)
488
- ✓ fixes correctly (13 ms)
489
-
490
491
  console.log
491
- package-unknown-keys (/tmp/tmp-3268-y4YsUDuWr0W3)
492
+ package-unknown-keys (/tmp/tmp-3286-A4z44FMrkUSn)
492
493
  
493
494
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
494
495
 
@@ -498,7 +499,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
498
499
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
499
500
 
500
501
  console.log
501
- package (/tmp/tmp-3268-WFN4Kdsv8H0p)
502
+ package (/tmp/tmp-3286-b463QZlvZe99)
502
503
  
503
504
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
504
505
 
@@ -508,7 +509,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
508
509
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
509
510
 
510
511
  console.log
511
- package (/tmp/tmp-3268-jmmmIQbdeHQG)
512
+ package (/tmp/tmp-3286-rHMIDNo0SZkW)
512
513
  
513
514
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
514
515
 
@@ -518,7 +519,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
518
519
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
519
520
 
520
521
  console.log
521
- package-unknown-keys (/tmp/tmp-3268-R4xjwk3tZx2z)
522
+ package-unknown-keys (/tmp/tmp-3286-ysrittMpaelI)
522
523
  
523
524
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
524
525
 
@@ -528,7 +529,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
528
529
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
529
530
 
530
531
  console.log
531
- package (/tmp/tmp-3268-za8s67dO4RK0)
532
+ package (/tmp/tmp-3286-J3whUPa3OL99)
532
533
  
533
534
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
534
535
 
@@ -540,65 +541,55 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
540
541
   PASS  src/__tests__/packageOrder.spec.ts
541
542
  expectPackageOrder (SimpleHost)
542
543
  fix: true
543
- ✓ fixes order for expected keys (18 ms)
544
- ✓ fixes order for unexpected keys (24 ms)
545
- ✓ fixes order using function (5 ms)
546
- ✓ does nothing if already order (1 ms)
544
+ ✓ fixes order for expected keys (64 ms)
545
+ ✓ fixes order for unexpected keys (46 ms)
546
+ ✓ fixes order using function (38 ms)
547
+ ✓ does nothing if already order (2 ms)
547
548
  expectPackageOrder (CachingHost)
548
549
  fix: true
549
- ✓ fixes order for expected keys (17 ms)
550
- ✓ fixes order for unexpected keys (2 ms)
551
- ✓ fixes order using function (2 ms)
552
- ✓ does nothing if already order (1 ms)
550
+ ✓ fixes order for expected keys (30 ms)
551
+ ✓ fixes order for unexpected keys (5 ms)
552
+ ✓ fixes order using function (5 ms)
553
+ ✓ does nothing if already order (2 ms)
553
554
 
554
555
   PASS  src/__tests__/consistentDependencies.spec.ts
555
556
  consistentDependencies
556
- ✓ checks correctly (16 ms)
557
+ ✓ checks correctly (15 ms)
557
558
  ✓ fixes correctly (4 ms)
558
- ✓ ignores ignored dependencies (3 ms)
559
+ ✓ ignores ignored dependencies (2 ms)
559
560
 
560
561
  console.log
561
- foo-lib (/tmp/tmp-3268-D3WaWMLpTm3c)
562
+ rootProject (/tmp/tmp-3292-SAGv2y85yy6e)
562
563
  
563
564
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
564
565
 
565
566
  console.log
566
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
567
+ Fixed! foo.txt: Expect file contents to match
567
568
  
568
569
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
569
570
 
570
571
  console.log
571
- foo-lib (/tmp/tmp-3268-Nts3nvwViTXt)
572
+ rootProject (/tmp/tmp-3292-5L8pJlvtTMKz)
572
573
  
573
574
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
574
575
 
575
576
  console.log
576
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
577
+ Fixed! foo.txt: Expect file contents to match
577
578
  
578
579
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
579
580
 
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 (4 ms)
588
- ✓ does nothing if already sorted (1 ms)
589
-
590
581
  console.log
591
- rootProject (/tmp/tmp-3269-pO2zzq1AB0ZG)
582
+ rootProject (/tmp/tmp-3292-L9tZJqPOikdM)
592
583
  
593
584
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
594
585
 
595
586
  console.log
596
- Fixed! foo.txt: Expect file contents to match
587
+ Fixed! nested/foo.txt: Expect file contents to match
597
588
  
598
589
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
599
590
 
600
591
  console.log
601
- rootProject (/tmp/tmp-3269-QvojtuSgZ1ms)
592
+ rootProject (/tmp/tmp-3292-49ut7i0PSCdr)
602
593
  
603
594
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
604
595
 
@@ -608,59 +599,69 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
608
599
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
609
600
 
610
601
  console.log
611
- rootProject (/tmp/tmp-3269-8XN8pyMMQeBK)
602
+ rootProject (/tmp/tmp-3292-4XIxt18P19Tp)
612
603
  
613
604
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
614
605
 
615
606
  console.log
616
- Fixed! nested/foo.txt: Expect file contents to match
607
+ Fixed! foo.txt: Expect file contents to match
617
608
  
618
609
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
619
610
 
620
611
  console.log
621
- rootProject (/tmp/tmp-3269-R3eZGHlD6qRW)
612
+ rootProject (/tmp/tmp-3292-XzEy7R2Wr9Vo)
622
613
  
623
614
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
624
615
 
625
616
  console.log
626
- Fixed! foo.txt: Expect file contents to match
617
+ Fixed! nested/foo.txt: Expect file contents to match
627
618
  
628
619
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
629
620
 
621
+  PASS  src/__tests__/fileContents.spec.ts
622
+ fileContents (SimpleHost)
623
+ fix: true
624
+ ✓ works with async generator (11 ms)
625
+ ✓ fixes missing file (5 ms)
626
+ ✓ fixes missing nested file (3 ms)
627
+ fileContents (CachingHost)
628
+ fix: true
629
+ ✓ works with async generator (6 ms)
630
+ ✓ fixes missing file (3 ms)
631
+ ✓ fixes missing nested file (3 ms)
632
+
630
633
  console.log
631
- rootProject (/tmp/tmp-3269-tVeJYJaTEA2d)
634
+ foo-lib (/tmp/tmp-3286-N2br5ja4iEnn)
632
635
  
633
636
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
634
637
 
635
638
  console.log
636
- Fixed! foo.txt: Expect file contents to match
639
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
637
640
  
638
641
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
639
642
 
640
643
  console.log
641
- rootProject (/tmp/tmp-3269-N45E4r6i4an3)
644
+ foo-lib (/tmp/tmp-3286-CnqKlB6nA06l)
642
645
  
643
646
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
644
647
 
645
648
  console.log
646
- Fixed! nested/foo.txt: Expect file contents to match
649
+ Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
647
650
  
648
651
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
649
652
 
650
-  PASS  src/__tests__/fileContents.spec.ts
651
- fileContents (SimpleHost)
653
+  PASS  src/__tests__/alphabeticalScripts.spec.ts
654
+ alphabeticalScripts (SimpleHost)
652
655
  fix: true
653
- ✓ works with async generator (39 ms)
654
- ✓ fixes missing file (3 ms)
655
- ✓ fixes missing nested file (3 ms)
656
- fileContents (CachingHost)
656
+ ✓ fixes unsorted scripts (10 ms)
657
+ ✓ does nothing if already sorted
658
+ alphabeticalScripts (CachingHost)
657
659
  fix: true
658
- ✓ works with async generator (9 ms)
659
- ✓ fixes missing file (3 ms)
660
- ✓ fixes missing nested file (3 ms)
660
+ ✓ fixes unsorted scripts (4 ms)
661
+ ✓ does nothing if already sorted (1 ms)
661
662
 
662
663
  Test Suites: 11 passed, 11 total
663
664
  Tests: 118 passed, 118 total
664
665
  Snapshots: 0 total
665
- Time: 9.326 s
666
+ Time: 9.715 s
666
667
  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 65ms
18
+ ESM ⚡️ Build success in 81ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.124+ba6de31",
3
+ "version": "0.5.0-alpha.126+1634d19",
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.124+ba6de31",
34
- "@monorepolint/core": "^0.5.0-alpha.124+ba6de31",
35
- "@monorepolint/utils": "^0.5.0-alpha.124+ba6de31",
33
+ "@monorepolint/config": "^0.5.0-alpha.126+1634d19",
34
+ "@monorepolint/core": "^0.5.0-alpha.126+1634d19",
35
+ "@monorepolint/utils": "^0.5.0-alpha.126+1634d19",
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": "ba6de312849392a4aa16e3f55b44623ec9771f92"
62
+ "gitHead": "1634d1967642613f1036cd803fb8769accce7fc4"
63
63
  }