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

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