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

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,27 @@
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
- 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 `'.'`
9
+ (node:3286) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
+ (Use `node --trace-warnings ...` to show where the warning was created)
11
+  PASS  src/__tests__/consistentVersions.spec.ts (6.71 s)
12
+ consistentVersions
13
+ standard tests
14
+ ✓ Does nothing when arguments are empty (13 ms)
15
+ ✓ Fixes packages that have an incorrect dependency version (4 ms)
16
+ ✓ Ignores packages that have a correct dependency version (1 ms)
17
+ ✓ Fixes packages that have an incorrect devDependency version (2 ms)
18
+ ✓ Ignores packages that have a correct devDependency version (2 ms)
19
+ ✓ Fixes packages that have an incorrect dependency and devDependency versions (3 ms)
20
+ Multiple accepted versions tests
21
+ ✓ Accepts a match when multiple versions are configured (3 ms)
22
+ ✓ Errors when version does not match (3 ms)
23
+
9
24
  console.log
10
- package-without-scripts (/tmp/tmp-3297-4elTqm0Bzy6f)
25
+ package-without-scripts (/tmp/tmp-3292-Vp52GdfQOn9m)
11
26
  
12
27
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
13
28
 
@@ -30,7 +45,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
30
45
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
31
46
 
32
47
  console.log
33
- package-without-scripts (/tmp/tmp-3297-gXFSniLVG045)
48
+ package-without-scripts (/tmp/tmp-3292-KBQGIFsmF4Tk)
34
49
  
35
50
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
36
51
 
@@ -40,7 +55,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
40
55
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
41
56
 
42
57
  console.log
43
- package-with-scripts (/tmp/tmp-3297-j7lXYLDejs1i)
58
+ package-with-scripts (/tmp/tmp-3292-VtbC3A0WO4va)
44
59
  
45
60
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
46
61
 
@@ -50,7 +65,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
50
65
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
51
66
 
52
67
  console.log
53
- package-with-scripts (/tmp/tmp-3297-IG65FWjnzxwD)
68
+ package-with-scripts (/tmp/tmp-3292-DIf65alDXcgc)
54
69
  
55
70
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
56
71
 
@@ -73,7 +88,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
73
88
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
74
89
 
75
90
  console.log
76
- package-with-scripts (/tmp/tmp-3297-pK4r4qIXPeNe)
91
+ package-with-scripts (/tmp/tmp-3292-PpK7Y4vUo0cJ)
77
92
  
78
93
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
79
94
 
@@ -83,7 +98,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
83
98
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
84
99
 
85
100
  console.log
86
- package-with-scripts (/tmp/tmp-3297-2ShOF4QFLNnh)
101
+ package-with-scripts (/tmp/tmp-3292-cFLCiyYyaByK)
87
102
  
88
103
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
89
104
 
@@ -93,7 +108,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
93
108
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
94
109
 
95
110
  console.log
96
- package-with-scripts (/tmp/tmp-3297-cDj1L0SPNygr)
111
+ package-with-scripts (/tmp/tmp-3292-wUJpnAVxfdH7)
97
112
  
98
113
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
99
114
 
@@ -102,13 +117,14 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
102
117
  
103
118
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
104
119
 
105
- (node:3297) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
120
+ (node:3292) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
106
121
  (Use `node --trace-warnings ...` to show where the warning was created)
107
122
  console.log
108
- package-without-scripts (/tmp/tmp-3297-yr3uVgA6pfm8)
123
+ package-without-scripts (/tmp/tmp-3292-XAfY1cFnXwgy)
109
124
  
110
125
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
111
126
 
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 `'.'`
112
128
  console.error
113
129
   Error! package.json: No scripts block in package.json
114
130
  
@@ -128,7 +144,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
128
144
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
129
145
 
130
146
  console.log
131
- package-without-scripts (/tmp/tmp-3297-d8e5etdw9mZr)
147
+ package-without-scripts (/tmp/tmp-3292-ck9P4E4ZRPaC)
132
148
  
133
149
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
134
150
 
@@ -138,7 +154,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
138
154
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
139
155
 
140
156
  console.log
141
- package-with-scripts (/tmp/tmp-3297-iqVIJXZZ2Tf2)
157
+ package-with-scripts (/tmp/tmp-3292-mbtxkmpmXVsx)
142
158
  
143
159
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
144
160
 
@@ -147,25 +163,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
147
163
  
148
164
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
149
165
 
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
166
  console.log
153
- package-with-scripts (/tmp/tmp-3297-mC2atOBeD1g0)
167
+ package-with-scripts (/tmp/tmp-3292-qvDgAg63PlXh)
154
168
  
155
-  PASS  src/__tests__/consistentVersions.spec.ts (6.65 s)
156
169
   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
170
 
170
171
  console.error
171
172
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
@@ -186,7 +187,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
186
187
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
187
188
 
188
189
  console.log
189
- package-with-scripts (/tmp/tmp-3297-pd2Lz78FQhVl)
190
+ package-with-scripts (/tmp/tmp-3292-pBj99xzsyqFg)
190
191
  
191
192
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
192
193
 
@@ -196,7 +197,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
196
197
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
197
198
 
198
199
  console.log
199
- package-with-scripts (/tmp/tmp-3297-Fz3NmYjJFLqJ)
200
+ package-with-scripts (/tmp/tmp-3292-5pvHLvpTqqJ1)
200
201
  
201
202
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
202
203
 
@@ -206,7 +207,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
206
207
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
207
208
 
208
209
  console.log
209
- package-with-scripts (/tmp/tmp-3297-2rHTdSdGZevP)
210
+ package-with-scripts (/tmp/tmp-3292-tqR7UZYN06GA)
210
211
  
211
212
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
212
213
 
@@ -215,90 +216,90 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
215
216
  
216
217
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
217
218
 
218
-  PASS  src/__tests__/packageScript.spec.ts (6.63 s)
219
+  PASS  src/__tests__/packageScript.spec.ts (6.906 s)
219
220
  expectPackageScript (SimpleHost)
220
221
  fix: false
221
- ✓ handles an empty script section (84 ms)
222
+ ✓ handles an empty script section (148 ms)
222
223
  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)
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)
230
231
  expectPackageScript (CachingHost)
231
232
  fix: false
232
- ✓ handles an empty script section (13 ms)
233
+ ✓ handles an empty script section (37 ms)
233
234
  fix: true
234
- ✓ 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)
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)
239
240
  ✓ can fix to empty (4 ms)
240
- ✓ can allow only empty (4 ms)
241
+ ✓ can allow only empty (3 ms)
241
242
 
242
- (node:3290) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
243
+ (node:3285) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
243
244
  (Use `node --trace-warnings ...` to show where the warning was created)
244
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (6.885 s)
245
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.618 s)
245
246
  mustSatisfyPeerDependencies
246
- ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (3 ms)
247
- ✓ Flags conflicting peer dependencies (5 ms)
248
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (5 ms)
249
- ✓ Flags missing peer dependencies (NO regular dependency present) (7 ms)
250
- ✓ Flags unsatisfied peer dependencies (test package has peer dep) (5 ms)
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)
251
252
  ✓ Honors dependencyWhitelist (5 ms)
252
- ✓ Honors dependencyBlacklist (10 ms)
253
+ ✓ Honors dependencyBlacklist (5 ms)
253
254
  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)
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)
258
259
  Determines dependencies satisfaction correctly
259
260
  ✓ version is version (1 ms)
260
- ✓ version satisfies a range (11 ms)
261
- ✓ higher version satisfies a range (4 ms)
262
- ✓ version satisfies a greator or equal version range (1 ms)
263
- ✓ higher version satisfies a greator or equal version range (2 ms)
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)
264
265
  ✓ version satisfies 'any' range (1 ms)
265
- ✓ greator or equal version range satisfies 'any' range (1 ms)
266
- ✓ range satisfies 'any' range (1 ms)
266
+ ✓ greator or equal version range satisfies 'any' range (7 ms)
267
+ ✓ range satisfies 'any' range (2 ms)
267
268
  ✓ union range satisfies 'any' range (1 ms)
268
- ✓ version found in union start (1 ms)
269
+ ✓ version found in union start (12 ms)
269
270
  ✓ version found in union end (1 ms)
270
271
  ✓ version satisfies a range in union start (1 ms)
271
272
  ✓ version satisfies a range in union end (1 ms)
272
- ✓ higher version satisfies a range in union start (2 ms)
273
+ ✓ higher version satisfies a range in union start (1 ms)
273
274
  ✓ higher version satisfies a range in union end (1 ms)
274
275
  ✓ range found in union start (1 ms)
275
276
  ✓ range found in union end (1 ms)
276
277
  ✓ union satisfies greator or equal version range (1 ms)
277
278
  ✓ greator or equal version range satisfies greator or equal version range (1 ms)
278
- ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
279
+ ✓ equivalent greator or equal version ranges satisfy each other (2 ms)
279
280
  ✓ higher range satisfies a range in union start (1 ms)
280
281
  ✓ higher range satisfies a range in union end (1 ms)
281
- ✓ equivalent 'any' ranges satisfy each other (1 ms)
282
- ✓ equivalent major ranges satisfy each other (4 ms)
282
+ ✓ equivalent 'any' ranges satisfy each other
283
+ ✓ equivalent major ranges satisfy each other (5 ms)
283
284
  ✓ version missing in union (1 ms)
284
285
  ✓ range missing in union (1 ms)
285
286
  Determines dependencies intersections correctly
286
- ✓ equivalence (2 ms)
287
- ✓ exact vs any (1 ms)
287
+ ✓ equivalence (1 ms)
288
+ ✓ exact vs any
288
289
  ✓ major vs any (1 ms)
289
290
  ✓ greater or equal vs any (1 ms)
290
291
  ✓ 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)
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)
296
297
  ✓ exact vs union (1 ms)
297
298
  ✓ major vs union (1 ms)
298
- ✓ union vs union (2 ms)
299
+ ✓ union vs union (3 ms)
299
300
 
300
301
  console.log
301
- package (/tmp/tmp-3297-tTky5waA8HEp)
302
+ package (/tmp/tmp-3292-YM3b8eOraLMA)
302
303
  
303
304
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
304
305
 
@@ -308,7 +309,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
308
309
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
309
310
 
310
311
  console.log
311
- package (/tmp/tmp-3297-ebDaQxd9CtQ4)
312
+ package (/tmp/tmp-3292-eVXBl7x78G3k)
312
313
  
313
314
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
314
315
 
@@ -318,7 +319,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
318
319
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
319
320
 
320
321
  console.log
321
- package (/tmp/tmp-3297-fmzP76SdEqrD)
322
+ package (/tmp/tmp-3292-hh6VKijkIQDb)
322
323
  
323
324
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
324
325
 
@@ -341,7 +342,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
341
342
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
342
343
 
343
344
  console.log
344
- package (/tmp/tmp-3297-xoEcQLoz3A97)
345
+ package (/tmp/tmp-3292-yeH8i0OBrAUa)
345
346
  
346
347
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
347
348
 
@@ -369,7 +370,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
369
370
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
370
371
 
371
372
  console.log
372
- package (/tmp/tmp-3297-fTQEuz42cSmp)
373
+ package (/tmp/tmp-3292-4vK1izCdVyua)
373
374
  
374
375
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
375
376
 
@@ -379,7 +380,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
379
380
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
380
381
 
381
382
  console.log
382
- package (/tmp/tmp-3297-kma2XchoQ6v8)
383
+ package (/tmp/tmp-3292-yiu7P99TouKG)
383
384
  
384
385
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
385
386
 
@@ -389,7 +390,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
389
390
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
390
391
 
391
392
  console.log
392
- package (/tmp/tmp-3297-i3F16pSh7OR7)
393
+ package (/tmp/tmp-3292-sZbKvfbYJNk0)
393
394
  
394
395
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
395
396
 
@@ -412,7 +413,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
412
413
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
413
414
 
414
415
  console.log
415
- package (/tmp/tmp-3297-jMub9s8jbaRl)
416
+ package (/tmp/tmp-3292-cHJ2fHIb9r2S)
416
417
  
417
418
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
418
419
 
@@ -442,43 +443,43 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
442
443
   PASS  src/__tests__/packageEntry.spec.ts
443
444
  expectPackageEntries (SimpleHost)
444
445
  fix: true
445
- ✓ fixes missing entries (36 ms)
446
+ ✓ fixes missing entries (25 ms)
446
447
  ✓ fixes missing nested entries (5 ms)
447
- ✓ doesn't error for nested entries that are defined (1 ms)
448
+ ✓ doesn't error for nested entries that are defined (2 ms)
448
449
  ✓ errors for keys that are missing (9 ms)
449
- ✓ handles both entries and entriesExist (17 ms)
450
+ ✓ handles both entries and entriesExist (12 ms)
450
451
  expectPackageEntries (CachingHost)
451
452
  fix: true
452
- ✓ fixes missing entries (16 ms)
453
- ✓ fixes missing nested entries (4 ms)
454
- ✓ doesn't error for nested entries that are defined (2 ms)
455
- ✓ errors for keys that are missing (8 ms)
456
- ✓ handles both entries and entriesExist (28 ms)
457
-
458
-  PASS  src/__tests__/nestedWorkspaces.spec.ts
459
- nestedWorkspaces
460
- ✓ checks correctly when no packages (19 ms)
461
- ✓ checks correctly when one level packages (7 ms)
462
- ✓ checks fail when one level packages with no workspaces field (6 ms)
463
- ✓ checks correctly when two level packages with two level workspaces field (7 ms)
464
- ✓ checks fail when two level packages with one level workspaces field (6 ms)
465
- ✓ checks correctly when three level packages with three level workspaces field (7 ms)
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)
466
458
 
467
459
   PASS  src/__tests__/bannedDependencies.spec.ts
468
460
  bannedDependencies
469
- ✓ Flags banned dependencies correctly (11 ms)
461
+ ✓ Flags banned dependencies correctly (10 ms)
470
462
  ✓ Flags banned dependencies correctly w legacy globs (3 ms)
471
- ✓ Flags banned dependencies correctly w new globs (3 ms)
463
+ ✓ Flags banned dependencies correctly w new globs (2 ms)
472
464
  ✓ Flags banned dependencies correctly w exact (2 ms)
473
465
  ✓ Flags banned transitives correctly (7 ms)
474
466
 
467
+  PASS  src/__tests__/nestedWorkspaces.spec.ts
468
+ 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)
475
+
475
476
   PASS  src/__tests__/requireDependency.spec.ts
476
477
  requireDependency
477
- ✓ checks correctly (9 ms)
478
- ✓ fixes correctly (4 ms)
478
+ ✓ checks correctly (35 ms)
479
+ ✓ fixes correctly (19 ms)
479
480
 
480
481
  console.log
481
- package (/tmp/tmp-3290-y6arxjC6D38B)
482
+ package (/tmp/tmp-3286-jWfunrCZrf7O)
482
483
  
483
484
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
484
485
 
@@ -488,7 +489,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
488
489
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
489
490
 
490
491
  console.log
491
- package-unknown-keys (/tmp/tmp-3290-LH2jhKeg42lY)
492
+ package-unknown-keys (/tmp/tmp-3286-A4z44FMrkUSn)
492
493
  
493
494
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
494
495
 
@@ -498,7 +499,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
498
499
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
499
500
 
500
501
  console.log
501
- package (/tmp/tmp-3290-9baUS2Q134V5)
502
+ package (/tmp/tmp-3286-b463QZlvZe99)
502
503
  
503
504
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
504
505
 
@@ -508,7 +509,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
508
509
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
509
510
 
510
511
  console.log
511
- package (/tmp/tmp-3290-B13dVE6mqPX6)
512
+ package (/tmp/tmp-3286-rHMIDNo0SZkW)
512
513
  
513
514
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
514
515
 
@@ -518,7 +519,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
518
519
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
519
520
 
520
521
  console.log
521
- package-unknown-keys (/tmp/tmp-3290-mkYBmMbdl3P1)
522
+ package-unknown-keys (/tmp/tmp-3286-ysrittMpaelI)
522
523
  
523
524
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
524
525
 
@@ -528,37 +529,37 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
528
529
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
529
530
 
530
531
  console.log
531
- package (/tmp/tmp-3290-beWfpLzI5xw2)
532
+ package (/tmp/tmp-3286-J3whUPa3OL99)
532
533
  
533
534
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
534
535
 
535
-  PASS  src/__tests__/packageOrder.spec.ts
536
536
  console.log
537
+ Fixed! package.json: Incorrect order of fields in package.json
538
+ 
539
+  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
540
+
541
+  PASS  src/__tests__/packageOrder.spec.ts
537
542
  expectPackageOrder (SimpleHost)
538
543
  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)
544
+ ✓ fixes order for expected keys (64 ms)
545
+ ✓ fixes order for unexpected keys (46 ms)
546
+ ✓ fixes order using function (38 ms)
542
547
  ✓ does nothing if already order (2 ms)
543
548
  expectPackageOrder (CachingHost)
544
549
  fix: true
545
- ✓ fixes order for expected keys (19 ms)
550
+ ✓ fixes order for expected keys (30 ms)
546
551
  ✓ fixes order for unexpected keys (5 ms)
547
- ✓ fixes order using function (4 ms)
552
+ ✓ fixes order using function (5 ms)
548
553
  ✓ does nothing if already order (2 ms)
549
554
 
550
- Fixed! package.json: Incorrect order of fields in package.json
551
- 
552
-  at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
553
-
554
555
   PASS  src/__tests__/consistentDependencies.spec.ts
555
556
  consistentDependencies
556
- ✓ checks correctly (20 ms)
557
+ ✓ checks correctly (15 ms)
557
558
  ✓ fixes correctly (4 ms)
558
559
  ✓ ignores ignored dependencies (2 ms)
559
560
 
560
561
  console.log
561
- rootProject (/tmp/tmp-3297-gfHvG02p190A)
562
+ rootProject (/tmp/tmp-3292-SAGv2y85yy6e)
562
563
  
563
564
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
564
565
 
@@ -568,7 +569,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
568
569
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
569
570
 
570
571
  console.log
571
- rootProject (/tmp/tmp-3297-VtYkLlMeMPP9)
572
+ rootProject (/tmp/tmp-3292-5L8pJlvtTMKz)
572
573
  
573
574
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
574
575
 
@@ -578,7 +579,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
578
579
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
579
580
 
580
581
  console.log
581
- rootProject (/tmp/tmp-3297-ezoZh1CeRVj6)
582
+ rootProject (/tmp/tmp-3292-L9tZJqPOikdM)
582
583
  
583
584
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
584
585
 
@@ -588,7 +589,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
588
589
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
589
590
 
590
591
  console.log
591
- rootProject (/tmp/tmp-3297-g3F51W07Fxg7)
592
+ rootProject (/tmp/tmp-3292-49ut7i0PSCdr)
592
593
  
593
594
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
594
595
 
@@ -598,7 +599,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
598
599
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
599
600
 
600
601
  console.log
601
- rootProject (/tmp/tmp-3297-NPkCwUAtQXiZ)
602
+ rootProject (/tmp/tmp-3292-4XIxt18P19Tp)
602
603
  
603
604
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
604
605
 
@@ -608,7 +609,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
608
609
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
609
610
 
610
611
  console.log
611
- rootProject (/tmp/tmp-3297-SMNd1uTzliEL)
612
+ rootProject (/tmp/tmp-3292-XzEy7R2Wr9Vo)
612
613
  
613
614
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
614
615
 
@@ -620,17 +621,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
620
621
   PASS  src/__tests__/fileContents.spec.ts
621
622
  fileContents (SimpleHost)
622
623
  fix: true
623
- ✓ works with async generator (10 ms)
624
- ✓ fixes missing file (3 ms)
624
+ ✓ works with async generator (11 ms)
625
+ ✓ fixes missing file (5 ms)
625
626
  ✓ fixes missing nested file (3 ms)
626
627
  fileContents (CachingHost)
627
628
  fix: true
628
- ✓ works with async generator (5 ms)
629
+ ✓ works with async generator (6 ms)
629
630
  ✓ fixes missing file (3 ms)
630
631
  ✓ fixes missing nested file (3 ms)
631
632
 
632
633
  console.log
633
- foo-lib (/tmp/tmp-3290-7ngBqnR8L4nv)
634
+ foo-lib (/tmp/tmp-3286-N2br5ja4iEnn)
634
635
  
635
636
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
636
637
 
@@ -640,7 +641,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
640
641
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
641
642
 
642
643
  console.log
643
- foo-lib (/tmp/tmp-3290-HL6bAw4rP7gb)
644
+ foo-lib (/tmp/tmp-3286-CnqKlB6nA06l)
644
645
  
645
646
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
646
647
 
@@ -653,14 +654,14 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
653
654
  alphabeticalScripts (SimpleHost)
654
655
  fix: true
655
656
  ✓ fixes unsorted scripts (10 ms)
656
- ✓ does nothing if already sorted (1 ms)
657
+ ✓ does nothing if already sorted
657
658
  alphabeticalScripts (CachingHost)
658
659
  fix: true
659
- ✓ fixes unsorted scripts (8 ms)
660
+ ✓ fixes unsorted scripts (4 ms)
660
661
  ✓ does nothing if already sorted (1 ms)
661
662
 
662
663
  Test Suites: 11 passed, 11 total
663
664
  Tests: 118 passed, 118 total
664
665
  Snapshots: 0 total
665
- Time: 9.447 s
666
+ Time: 9.715 s
666
667
  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 81ms
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.126+1634d19",
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.126+1634d19",
34
+ "@monorepolint/core": "^0.5.0-alpha.126+1634d19",
35
+ "@monorepolint/utils": "^0.5.0-alpha.126+1634d19",
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": "1634d1967642613f1036cd803fb8769accce7fc4"
63
63
  }