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

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