@monorepolint/rules 0.5.0-alpha.136 → 0.5.0-alpha.138

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.
@@ -2,32 +2,32 @@
2
2
  > @monorepolint/rules@0.4.0 test /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests
4
4
 
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
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 `'.'`
7
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
+ 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
9
  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
10
  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 `'.'`
10
- 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 `'.'`
11
- (node:3048) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
11
+ console.log
12
+ package-without-scripts (/tmp/tmp-3118-Z7VQzP0JBbNC)
13
+ 
14
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
15
+
16
+ (node:3117) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
12
17
  (Use `node --trace-warnings ...` to show where the warning was created)
13
-  PASS  src/__tests__/consistentVersions.spec.ts (7.02 s)
18
+  PASS  src/__tests__/consistentVersions.spec.ts (6.782 s)
14
19
  consistentVersions
15
20
  standard tests
16
- ✓ Does nothing when arguments are empty (12 ms)
21
+ ✓ Does nothing when arguments are empty (9 ms)
17
22
  ✓ Fixes packages that have an incorrect dependency version (4 ms)
18
23
  ✓ Ignores packages that have a correct dependency version (2 ms)
19
24
  ✓ Fixes packages that have an incorrect devDependency version (2 ms)
20
- ✓ Ignores packages that have a correct devDependency version (2 ms)
21
- ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
25
+ ✓ Ignores packages that have a correct devDependency version (4 ms)
26
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (2 ms)
22
27
  Multiple accepted versions tests
23
- ✓ Accepts a match when multiple versions are configured (6 ms)
28
+ ✓ Accepts a match when multiple versions are configured (2 ms)
24
29
  ✓ Errors when version does not match (2 ms)
25
30
 
26
- console.log
27
- package-without-scripts (/tmp/tmp-3054-W3NiajlBw0lY)
28
- 
29
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
30
-
31
31
  console.error
32
32
   Error! package.json: No scripts block in package.json
33
33
  
@@ -47,7 +47,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
47
47
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
48
48
 
49
49
  console.log
50
- package-without-scripts (/tmp/tmp-3054-SMT5ON78S8Is)
50
+ package-without-scripts (/tmp/tmp-3118-MJQwdB31h6RS)
51
51
  
52
52
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
53
53
 
@@ -57,7 +57,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
57
57
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
58
58
 
59
59
  console.log
60
- package-with-scripts (/tmp/tmp-3054-4HVbhdQ2x3WZ)
60
+ package-with-scripts (/tmp/tmp-3118-51zyG8h7CkJz)
61
61
  
62
62
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
63
63
 
@@ -67,7 +67,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
67
67
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
68
68
 
69
69
  console.log
70
- package-with-scripts (/tmp/tmp-3054-4sbVdZufauA1)
70
+ package-with-scripts (/tmp/tmp-3118-fLS8yuUgqDHZ)
71
71
  
72
72
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
73
73
 
@@ -90,7 +90,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
90
90
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
91
91
 
92
92
  console.log
93
- package-with-scripts (/tmp/tmp-3054-09zUHnUGzxwT)
93
+ package-with-scripts (/tmp/tmp-3118-JsUGpvhlVant)
94
94
  
95
95
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
96
96
 
@@ -100,7 +100,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
100
100
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
101
101
 
102
102
  console.log
103
- package-with-scripts (/tmp/tmp-3054-jDbHZUO7PUgb)
103
+ package-with-scripts (/tmp/tmp-3118-ndYXqi0LbUwM)
104
104
  
105
105
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
106
106
 
@@ -110,7 +110,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
110
110
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
111
111
 
112
112
  console.log
113
- package-with-scripts (/tmp/tmp-3054-MEx2wntCj6ly)
113
+ package-with-scripts (/tmp/tmp-3118-eMB240UsH7H1)
114
114
  
115
115
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
116
116
 
@@ -119,10 +119,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
119
119
  
120
120
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
121
121
 
122
- (node:3054) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
122
+ (node:3118) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
123
123
  (Use `node --trace-warnings ...` to show where the warning was created)
124
124
  console.log
125
- package-without-scripts (/tmp/tmp-3054-ENGaOpWXNdFN)
125
+ package-without-scripts (/tmp/tmp-3118-cZBJSd5eoi4X)
126
126
  
127
127
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
128
128
 
@@ -145,7 +145,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
145
145
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
146
146
 
147
147
  console.log
148
- package-without-scripts (/tmp/tmp-3054-9ert4x2bZQQC)
148
+ package-without-scripts (/tmp/tmp-3118-UrxDdETGg34Q)
149
149
  
150
150
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
151
151
 
@@ -155,7 +155,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
155
155
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
156
156
 
157
157
  console.log
158
- package-with-scripts (/tmp/tmp-3054-OFT57oLW5lye)
158
+ package-with-scripts (/tmp/tmp-3118-ABziBsZE0JP5)
159
159
  
160
160
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
161
161
 
@@ -165,7 +165,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
165
165
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
166
166
 
167
167
  console.log
168
- package-with-scripts (/tmp/tmp-3054-HrevnLgo1LG0)
168
+ package-with-scripts (/tmp/tmp-3118-lLpst5Wne2jT)
169
169
  
170
170
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
171
171
 
@@ -188,7 +188,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
188
188
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
189
189
 
190
190
  console.log
191
- package-with-scripts (/tmp/tmp-3054-vumlcGX4MzED)
191
+ package-with-scripts (/tmp/tmp-3118-Gt7FoJRVEOev)
192
192
  
193
193
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
194
194
 
@@ -198,7 +198,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
198
198
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
199
199
 
200
200
  console.log
201
- package-with-scripts (/tmp/tmp-3054-bHRYESe9U0tR)
201
+ package-with-scripts (/tmp/tmp-3118-z6qARwj6t1r1)
202
202
  
203
203
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
204
204
 
@@ -208,7 +208,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
208
208
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
209
209
 
210
210
  console.log
211
- package-with-scripts (/tmp/tmp-3054-m6EmeRbESFBN)
211
+ package-with-scripts (/tmp/tmp-3118-JETmT7eaGVAp)
212
212
  
213
213
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
214
214
 
@@ -217,69 +217,69 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
217
217
  
218
218
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
219
219
 
220
-  PASS  src/__tests__/packageScript.spec.ts (7.28 s)
220
+  PASS  src/__tests__/packageScript.spec.ts (6.848 s)
221
221
  expectPackageScript (SimpleHost)
222
222
  fix: false
223
- ✓ handles an empty script section (102 ms)
223
+ ✓ handles an empty script section (82 ms)
224
224
  fix: true
225
- ✓ fixes an empty script section (13 ms)
226
- ✓ adds a script (7 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)
229
- ✓ uses the fixValue for fixing if provided (6 ms)
230
- ✓ can fix to empty (4 ms)
231
- ✓ can allow only empty (17 ms)
225
+ ✓ fixes an empty script section (11 ms)
226
+ ✓ adds a script (8 ms)
227
+ ✓ does nothing if the value exists (2 ms)
228
+ ✓ errors if long form is used and no value matches and there is no fixValue (10 ms)
229
+ ✓ uses the fixValue for fixing if provided (4 ms)
230
+ ✓ can fix to empty (5 ms)
231
+ ✓ can allow only empty (4 ms)
232
232
  expectPackageScript (CachingHost)
233
233
  fix: false
234
- ✓ handles an empty script section (11 ms)
234
+ ✓ handles an empty script section (8 ms)
235
235
  fix: true
236
- ✓ fixes an empty script section (9 ms)
237
- ✓ adds a script (9 ms)
238
- ✓ does nothing if the value exists (2 ms)
236
+ ✓ fixes an empty script section (3 ms)
237
+ ✓ adds a script (7 ms)
238
+ ✓ does nothing if the value exists (6 ms)
239
239
  ✓ errors if long form is used and no value matches and there is no fixValue (7 ms)
240
240
  ✓ uses the fixValue for fixing if provided (5 ms)
241
- ✓ can fix to empty (9 ms)
241
+ ✓ can fix to empty (4 ms)
242
242
  ✓ can allow only empty (5 ms)
243
243
 
244
- (node:3047) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
244
+ (node:3116) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
245
245
  (Use `node --trace-warnings ...` to show where the warning was created)
246
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.357 s)
246
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.136 s)
247
247
  mustSatisfyPeerDependencies
248
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
249
- ✓ Flags conflicting peer dependencies (4 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (3 ms)
251
- ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
252
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
253
- ✓ Honors dependencyWhitelist (3 ms)
254
- ✓ Honors dependencyBlacklist (3 ms)
248
+ ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (4 ms)
249
+ ✓ Flags conflicting peer dependencies (10 ms)
250
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (5 ms)
251
+ ✓ Flags missing peer dependencies (NO regular dependency present) (3 ms)
252
+ ✓ Flags unsatisfied peer dependencies (test package has peer dep) (6 ms)
253
+ ✓ Honors dependencyWhitelist (8 ms)
254
+ ✓ Honors dependencyBlacklist (4 ms)
255
255
  regex tests
256
- ✓ Properly matches any version range regex (17 ms)
257
- ✓ Properly matches greator or equal version range regex (14 ms)
258
- ✓ Properly matches major version range regex (16 ms)
259
- ✓ Properly matches allowed range regex (14 ms)
256
+ ✓ Properly matches any version range regex (26 ms)
257
+ ✓ Properly matches greator or equal version range regex (24 ms)
258
+ ✓ Properly matches major version range regex (24 ms)
259
+ ✓ Properly matches allowed range regex (22 ms)
260
260
  Determines dependencies satisfaction correctly
261
- ✓ version is version (2 ms)
262
- ✓ version satisfies a range (3 ms)
261
+ ✓ version is version (1 ms)
262
+ ✓ version satisfies a range (5 ms)
263
263
  ✓ higher version satisfies a range (3 ms)
264
264
  ✓ version satisfies a greator or equal version range (1 ms)
265
- ✓ higher version satisfies a greator or equal version range (4 ms)
265
+ ✓ higher version satisfies a greator or equal version range (1 ms)
266
266
  ✓ version satisfies 'any' range (1 ms)
267
267
  ✓ greator or equal version range satisfies 'any' range (1 ms)
268
268
  ✓ range satisfies 'any' range (1 ms)
269
- ✓ union range satisfies 'any' range (1 ms)
269
+ ✓ union range satisfies 'any' range (7 ms)
270
270
  ✓ version found in union start (1 ms)
271
271
  ✓ version found in union end (1 ms)
272
272
  ✓ version satisfies a range in union start (1 ms)
273
- ✓ version satisfies a range in union end
273
+ ✓ version satisfies a range in union end (1 ms)
274
274
  ✓ higher version satisfies a range in union start (1 ms)
275
275
  ✓ higher version satisfies a range in union end (1 ms)
276
276
  ✓ range found in union start (1 ms)
277
- ✓ range found in union end
277
+ ✓ range found in union end (1 ms)
278
278
  ✓ union satisfies greator or equal version range (1 ms)
279
279
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
280
- ✓ equivalent greator or equal version ranges satisfy each other (2 ms)
280
+ ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
281
281
  ✓ higher range satisfies a range in union start (1 ms)
282
- ✓ higher range satisfies a range in union end (1 ms)
282
+ ✓ higher range satisfies a range in union end
283
283
  ✓ equivalent 'any' ranges satisfy each other (1 ms)
284
284
  ✓ equivalent major ranges satisfy each other (4 ms)
285
285
  ✓ version missing in union (1 ms)
@@ -287,20 +287,20 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
287
287
  Determines dependencies intersections correctly
288
288
  ✓ equivalence (1 ms)
289
289
  ✓ exact vs any (1 ms)
290
- ✓ major vs any
291
- ✓ greater or equal vs any (1 ms)
292
- ✓ any vs any
290
+ ✓ major vs any (1 ms)
291
+ ✓ greater or equal vs any
292
+ ✓ any vs any (1 ms)
293
293
  ✓ exact vs greater or equal (1 ms)
294
- ✓ major vs greater or equal (1 ms)
294
+ ✓ major vs greater or equal (3 ms)
295
295
  ✓ greater or equal vs greater or equal (1 ms)
296
- ✓ exact vs major (2 ms)
296
+ ✓ exact vs major (16 ms)
297
297
  ✓ major vs major (1 ms)
298
- ✓ exact vs union (3 ms)
298
+ ✓ exact vs union (1 ms)
299
299
  ✓ major vs union (1 ms)
300
300
  ✓ union vs union (2 ms)
301
301
 
302
302
  console.log
303
- package (/tmp/tmp-3054-sDF8cxQ37b5N)
303
+ package (/tmp/tmp-3118-pNDWlJKt48tF)
304
304
  
305
305
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
306
306
 
@@ -310,7 +310,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
310
310
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
311
311
 
312
312
  console.log
313
- package (/tmp/tmp-3054-zq8Lm5rmPJXH)
313
+ package (/tmp/tmp-3118-0vMXlJGlHzCo)
314
314
  
315
315
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
316
316
 
@@ -320,7 +320,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
320
320
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
321
321
 
322
322
  console.log
323
- package (/tmp/tmp-3054-OJ54QrxiYRM9)
323
+ package (/tmp/tmp-3118-tYdAPAVHKbK9)
324
324
  
325
325
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
326
326
 
@@ -343,7 +343,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
343
343
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
344
344
 
345
345
  console.log
346
- package (/tmp/tmp-3054-55dSrDmkT7QV)
346
+ package (/tmp/tmp-3118-r5OCtZ1VLL74)
347
347
  
348
348
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
349
349
 
@@ -370,16 +370,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
370
370
  
371
371
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
372
372
 
373
-  PASS  src/__tests__/bannedDependencies.spec.ts
374
- bannedDependencies
375
- ✓ Flags banned dependencies correctly (9 ms)
376
- ✓ Flags banned dependencies correctly w legacy globs (2 ms)
377
- ✓ Flags banned dependencies correctly w new globs (2 ms)
378
- ✓ Flags banned dependencies correctly w exact (2 ms)
379
- ✓ Flags banned transitives correctly (8 ms)
380
-
381
373
  console.log
382
- package (/tmp/tmp-3054-jJTwtbkJzDZR)
374
+ package (/tmp/tmp-3118-cviD9tceA0xC)
383
375
  
384
376
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
385
377
 
@@ -389,7 +381,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
389
381
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
390
382
 
391
383
  console.log
392
- package (/tmp/tmp-3054-mxero3UqtS4r)
384
+ package (/tmp/tmp-3118-QiklNihzjkqi)
393
385
  
394
386
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
395
387
 
@@ -399,7 +391,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
399
391
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
400
392
 
401
393
  console.log
402
- package (/tmp/tmp-3054-9W4I0sU6aAo7)
394
+ package (/tmp/tmp-3118-AsHk57mUIBxY)
403
395
  
404
396
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
405
397
 
@@ -422,7 +414,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
422
414
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
423
415
 
424
416
  console.log
425
- package (/tmp/tmp-3054-yusqPb2QjmGl)
417
+ package (/tmp/tmp-3118-gK4SRi4BA3Tp)
426
418
  
427
419
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
428
420
 
@@ -455,32 +447,40 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
455
447
  ✓ fixes missing entries (16 ms)
456
448
  ✓ fixes missing nested entries (4 ms)
457
449
  ✓ doesn't error for nested entries that are defined (2 ms)
458
- ✓ errors for keys that are missing (8 ms)
459
- ✓ handles both entries and entriesExist (12 ms)
450
+ ✓ errors for keys that are missing (7 ms)
451
+ ✓ handles both entries and entriesExist (9 ms)
460
452
  expectPackageEntries (CachingHost)
461
453
  fix: true
462
- ✓ fixes missing entries (11 ms)
463
- ✓ fixes missing nested entries (4 ms)
454
+ ✓ fixes missing entries (7 ms)
455
+ ✓ fixes missing nested entries (15 ms)
464
456
  ✓ doesn't error for nested entries that are defined (2 ms)
465
- ✓ errors for keys that are missing (11 ms)
466
- ✓ handles both entries and entriesExist (9 ms)
457
+ ✓ errors for keys that are missing (8 ms)
458
+ ✓ handles both entries and entriesExist (16 ms)
459
+
460
+  PASS  src/__tests__/bannedDependencies.spec.ts
461
+ bannedDependencies
462
+ ✓ Flags banned dependencies correctly (8 ms)
463
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
464
+ ✓ Flags banned dependencies correctly w new globs (2 ms)
465
+ ✓ Flags banned dependencies correctly w exact (2 ms)
466
+ ✓ Flags banned transitives correctly (5 ms)
467
467
 
468
468
   PASS  src/__tests__/nestedWorkspaces.spec.ts
469
469
  nestedWorkspaces
470
- ✓ checks correctly when no packages (19 ms)
471
- ✓ checks correctly when one level packages (6 ms)
472
- ✓ checks fail when one level packages with no workspaces field (4 ms)
473
- ✓ checks correctly when two level packages with two level workspaces field (14 ms)
470
+ ✓ checks correctly when no packages (14 ms)
471
+ ✓ checks correctly when one level packages (5 ms)
472
+ ✓ checks fail when one level packages with no workspaces field (5 ms)
473
+ ✓ checks correctly when two level packages with two level workspaces field (6 ms)
474
474
  ✓ checks fail when two level packages with one level workspaces field (5 ms)
475
- ✓ checks correctly when three level packages with three level workspaces field (7 ms)
475
+ ✓ checks correctly when three level packages with three level workspaces field (6 ms)
476
476
 
477
477
   PASS  src/__tests__/requireDependency.spec.ts
478
478
  requireDependency
479
- ✓ checks correctly (7 ms)
480
- ✓ fixes correctly (3 ms)
479
+ ✓ checks correctly (19 ms)
480
+ ✓ fixes correctly (12 ms)
481
481
 
482
482
  console.log
483
- package (/tmp/tmp-3054-VyAb1MV7asrC)
483
+ package (/tmp/tmp-3117-Hv1Q0eV0iSDR)
484
484
  
485
485
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
486
486
 
@@ -490,7 +490,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
490
490
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
491
491
 
492
492
  console.log
493
- package-unknown-keys (/tmp/tmp-3054-Goqg7fTEOpH5)
493
+ package-unknown-keys (/tmp/tmp-3117-GIEuRVQ0iDyc)
494
494
  
495
495
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
496
496
 
@@ -500,7 +500,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
500
500
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
501
501
 
502
502
  console.log
503
- package (/tmp/tmp-3054-ZToJDiiqzkN2)
503
+ package (/tmp/tmp-3117-3nTGHE08P0Hb)
504
504
  
505
505
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
506
506
 
@@ -510,7 +510,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
510
510
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
511
511
 
512
512
  console.log
513
- package (/tmp/tmp-3054-oUWnnJcoT5oR)
513
+ package (/tmp/tmp-3117-TN9pJgGGaOOd)
514
514
  
515
515
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
516
516
 
@@ -519,14 +519,8 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
519
519
  
520
520
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
521
521
 
522
-  PASS  src/__tests__/consistentDependencies.spec.ts
523
- consistentDependencies
524
- ✓ checks correctly (12 ms)
525
- ✓ fixes correctly (2 ms)
526
- ✓ ignores ignored dependencies (2 ms)
527
-
528
522
  console.log
529
- package-unknown-keys (/tmp/tmp-3054-QNl0UnY4LoS4)
523
+ package-unknown-keys (/tmp/tmp-3117-7UQ2HZyQJwJI)
530
524
  
531
525
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
532
526
 
@@ -536,7 +530,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
536
530
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
537
531
 
538
532
  console.log
539
- package (/tmp/tmp-3054-wKTBFject0fb)
533
+ package (/tmp/tmp-3117-iAygr5j1OIWU)
540
534
  
541
535
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
542
536
 
@@ -548,19 +542,25 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
548
542
   PASS  src/__tests__/packageOrder.spec.ts
549
543
  expectPackageOrder (SimpleHost)
550
544
  fix: true
551
- ✓ fixes order for expected keys (16 ms)
552
- ✓ fixes order for unexpected keys (40 ms)
553
- ✓ fixes order using function (5 ms)
545
+ ✓ fixes order for expected keys (90 ms)
546
+ ✓ fixes order for unexpected keys (32 ms)
547
+ ✓ fixes order using function (10 ms)
554
548
  ✓ does nothing if already order (2 ms)
555
549
  expectPackageOrder (CachingHost)
556
550
  fix: true
557
- ✓ fixes order for expected keys (6 ms)
558
- ✓ fixes order for unexpected keys (5 ms)
559
- ✓ fixes order using function (5 ms)
560
- ✓ does nothing if already order (2 ms)
551
+ ✓ fixes order for expected keys (23 ms)
552
+ ✓ fixes order for unexpected keys (16 ms)
553
+ ✓ fixes order using function (16 ms)
554
+ ✓ does nothing if already order (3 ms)
555
+
556
+  PASS  src/__tests__/consistentDependencies.spec.ts
557
+ consistentDependencies
558
+ ✓ checks correctly (11 ms)
559
+ ✓ fixes correctly (3 ms)
560
+ ✓ ignores ignored dependencies (1 ms)
561
561
 
562
562
  console.log
563
- foo-lib (/tmp/tmp-3047-g5kza7kuBsEz)
563
+ foo-lib (/tmp/tmp-3117-7BF8GJwrQ8Zy)
564
564
  
565
565
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
566
566
 
@@ -570,7 +570,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
570
570
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
571
571
 
572
572
  console.log
573
- foo-lib (/tmp/tmp-3047-1bsdR2vaD6TU)
573
+ foo-lib (/tmp/tmp-3117-ou8mig4jJcLt)
574
574
  
575
575
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
576
576
 
@@ -582,15 +582,15 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
582
582
   PASS  src/__tests__/alphabeticalScripts.spec.ts
583
583
  alphabeticalScripts (SimpleHost)
584
584
  fix: true
585
- ✓ fixes unsorted scripts (47 ms)
586
- ✓ does nothing if already sorted (1 ms)
585
+ ✓ fixes unsorted scripts (10 ms)
586
+ ✓ does nothing if already sorted
587
587
  alphabeticalScripts (CachingHost)
588
588
  fix: true
589
- ✓ fixes unsorted scripts (6 ms)
589
+ ✓ fixes unsorted scripts (7 ms)
590
590
  ✓ does nothing if already sorted (1 ms)
591
591
 
592
592
  console.log
593
- rootProject (/tmp/tmp-3048-rKVMo1NPSGXs)
593
+ rootProject (/tmp/tmp-3118-ZWuOUGKgcLwV)
594
594
  
595
595
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
596
596
 
@@ -600,7 +600,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
600
600
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
601
601
 
602
602
  console.log
603
- rootProject (/tmp/tmp-3048-cJL5SqTnwz7F)
603
+ rootProject (/tmp/tmp-3118-ierd5F36Jdrj)
604
604
  
605
605
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
606
606
 
@@ -610,7 +610,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
610
610
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
611
611
 
612
612
  console.log
613
- rootProject (/tmp/tmp-3048-Apse5E71BDZb)
613
+ rootProject (/tmp/tmp-3118-35itA5hO5S5Q)
614
614
  
615
615
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
616
616
 
@@ -620,7 +620,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
620
620
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
621
621
 
622
622
  console.log
623
- rootProject (/tmp/tmp-3048-CQDwTUTJ9UzN)
623
+ rootProject (/tmp/tmp-3118-efo1AniC2USm)
624
624
  
625
625
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
626
626
 
@@ -630,7 +630,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
630
630
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
631
631
 
632
632
  console.log
633
- rootProject (/tmp/tmp-3048-yjdqw0GwH7tL)
633
+ rootProject (/tmp/tmp-3118-75XpXZ3dPYvR)
634
634
  
635
635
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
636
636
 
@@ -640,7 +640,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
640
640
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
641
641
 
642
642
  console.log
643
- rootProject (/tmp/tmp-3048-fO5pVNvhRLK7)
643
+ rootProject (/tmp/tmp-3118-G3c6s7x2ke0E)
644
644
  
645
645
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
646
646
 
@@ -652,17 +652,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
652
652
   PASS  src/__tests__/fileContents.spec.ts
653
653
  fileContents (SimpleHost)
654
654
  fix: true
655
- ✓ works with async generator (45 ms)
655
+ ✓ works with async generator (8 ms)
656
656
  ✓ fixes missing file (3 ms)
657
- ✓ fixes missing nested file (3 ms)
657
+ ✓ fixes missing nested file (2 ms)
658
658
  fileContents (CachingHost)
659
659
  fix: true
660
- ✓ works with async generator (5 ms)
661
- ✓ fixes missing file (3 ms)
662
- ✓ fixes missing nested file (3 ms)
660
+ ✓ works with async generator (11 ms)
661
+ ✓ fixes missing file (5 ms)
662
+ ✓ fixes missing nested file (4 ms)
663
663
 
664
664
  Test Suites: 11 passed, 11 total
665
665
  Tests: 118 passed, 118 total
666
666
  Snapshots: 0 total
667
- Time: 9.84 s
667
+ Time: 9.763 s
668
668
  Ran all test suites.
@@ -9,10 +9,10 @@
9
9
  CLI Target: node16
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM build/js/public/util.js 106.00 B
13
12
  ESM build/js/index.js 50.16 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.22 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 59ms
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monorepolint/rules",
3
- "version": "0.5.0-alpha.136+3f2b4ce",
3
+ "version": "0.5.0-alpha.138+71dd2e0",
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.136+3f2b4ce",
34
- "@monorepolint/core": "^0.5.0-alpha.136+3f2b4ce",
35
- "@monorepolint/utils": "^0.5.0-alpha.136+3f2b4ce",
33
+ "@monorepolint/config": "^0.5.0-alpha.138+71dd2e0",
34
+ "@monorepolint/core": "^0.5.0-alpha.138+71dd2e0",
35
+ "@monorepolint/utils": "^0.5.0-alpha.138+71dd2e0",
36
36
  "globby": "^14.0.1",
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": "3f2b4ce7ab50b596f7501974091f91c37ef4f9df"
62
+ "gitHead": "71dd2e0b2f664dee190a7654a3eb075c21aa8036"
63
63
  }