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

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