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