@monorepolint/rules 0.5.0-beta.9 → 0.5.0

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.
Files changed (65) hide show
  1. package/.turbo/turbo-clean.log +1 -1
  2. package/.turbo/turbo-compile-typescript.log +1 -1
  3. package/.turbo/turbo-lint.log +1 -1
  4. package/.turbo/turbo-test.log +145 -146
  5. package/.turbo/turbo-transpile-typescript.log +5 -9
  6. package/CHANGELOG.md +33 -1
  7. package/build/js/index.js +36 -17
  8. package/build/js/index.js.map +1 -1
  9. package/build/tsconfig.tsbuildinfo +1 -1
  10. package/build/types/alphabeticalDependencies.d.ts +1 -1
  11. package/build/types/alphabeticalDependencies.d.ts.map +1 -1
  12. package/build/types/alphabeticalScripts.d.ts +1 -1
  13. package/build/types/alphabeticalScripts.d.ts.map +1 -1
  14. package/build/types/bannedDependencies.d.ts +1 -19
  15. package/build/types/bannedDependencies.d.ts.map +1 -1
  16. package/build/types/consistentDependencies.d.ts +1 -3
  17. package/build/types/consistentDependencies.d.ts.map +1 -1
  18. package/build/types/consistentVersions.d.ts +1 -7
  19. package/build/types/consistentVersions.d.ts.map +1 -1
  20. package/build/types/fileContents.d.ts +1 -16
  21. package/build/types/fileContents.d.ts.map +1 -1
  22. package/build/types/index.d.ts +1 -0
  23. package/build/types/index.d.ts.map +1 -1
  24. package/build/types/mustSatisfyPeerDependencies.d.ts +1 -95
  25. package/build/types/mustSatisfyPeerDependencies.d.ts.map +1 -1
  26. package/build/types/nestedWorkspaces.d.ts +1 -1
  27. package/build/types/nestedWorkspaces.d.ts.map +1 -1
  28. package/build/types/packageEntry.d.ts +1 -20
  29. package/build/types/packageEntry.d.ts.map +1 -1
  30. package/build/types/packageOrder.d.ts +1 -3
  31. package/build/types/packageOrder.d.ts.map +1 -1
  32. package/build/types/packageScript.d.ts +1 -16
  33. package/build/types/packageScript.d.ts.map +1 -1
  34. package/build/types/requireDependency.d.ts +1 -22
  35. package/build/types/requireDependency.d.ts.map +1 -1
  36. package/build/types/standardTsconfig.d.ts +1 -1
  37. package/build/types/standardTsconfig.d.ts.map +1 -1
  38. package/build/types/util/createRuleFactory.d.ts +14 -0
  39. package/build/types/util/createRuleFactory.d.ts.map +1 -0
  40. package/package.json +4 -4
  41. package/src/alphabeticalDependencies.ts +2 -2
  42. package/src/alphabeticalScripts.ts +2 -2
  43. package/src/bannedDependencies.ts +2 -2
  44. package/src/consistentDependencies.ts +2 -2
  45. package/src/consistentVersions.ts +2 -2
  46. package/src/fileContents.ts +2 -2
  47. package/src/index.ts +8 -0
  48. package/src/mustSatisfyPeerDependencies.ts +2 -2
  49. package/src/nestedWorkspaces.ts +4 -4
  50. package/src/packageEntry.ts +2 -2
  51. package/src/packageOrder.ts +2 -2
  52. package/src/packageScript.ts +2 -2
  53. package/src/requireDependency.ts +2 -2
  54. package/src/standardTsconfig.ts +2 -2
  55. package/src/util/createRuleFactory.ts +33 -0
  56. package/build/js/chunk-A2MUUSNE.js +0 -26
  57. package/build/js/chunk-A2MUUSNE.js.map +0 -1
  58. package/build/js/public/util.js +0 -7
  59. package/build/js/public/util.js.map +0 -1
  60. package/build/types/public/util.d.ts +0 -2
  61. package/build/types/public/util.d.ts.map +0 -1
  62. package/build/types/util/makeRule.d.ts +0 -12
  63. package/build/types/util/makeRule.d.ts.map +0 -1
  64. package/src/public/util.ts +0 -1
  65. package/src/util/makeRule.ts +0 -29
@@ -1,51 +1,50 @@
1
1
 
2
- > @monorepolint/rules@0.5.0-beta.9 test /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.5.0 test /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > NODE_OPTIONS=--experimental-vm-modules jest --colors --passWithNoTests
4
4
 
5
5
  ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/core/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
6
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/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
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 `'.'`
9
- (node:3059) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
8
+ (node:3094) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
10
9
  (Use `node --trace-warnings ...` to show where the warning was created)
11
- 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 `'.'`
12
-  PASS  src/__tests__/consistentVersions.spec.ts (6.829 s)
10
+  PASS  src/__tests__/consistentVersions.spec.ts (6.303 s)
13
11
  consistentVersions
14
12
  standard tests
15
- ✓ Does nothing when arguments are empty (23 ms)
13
+ ✓ Does nothing when arguments are empty (11 ms)
16
14
  ✓ Fixes packages that have an incorrect dependency version (4 ms)
17
15
  ✓ Ignores packages that have a correct dependency version (2 ms)
18
- ✓ Fixes packages that have an incorrect devDependency version (2 ms)
19
- ✓ Ignores packages that have a correct devDependency version (1 ms)
16
+ ✓ Fixes packages that have an incorrect devDependency version (3 ms)
17
+ ✓ Ignores packages that have a correct devDependency version (2 ms)
20
18
  ✓ Fixes packages that have an incorrect dependency and devDependency versions (2 ms)
21
19
  Multiple accepted versions tests
22
- ✓ Accepts a match when multiple versions are configured (2 ms)
20
+ ✓ Accepts a match when multiple versions are configured (8 ms)
23
21
  ✓ Errors when version does not match (2 ms)
24
22
 
25
- (node:3058) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
23
+ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js', falling back to original file content. You can also configure Jest config option `transformIgnorePatterns` to ignore /home/runner/work/monorepolint/monorepolint/packages/utils/build/js/index.js from transformation or make sure that `outDir` in your tsconfig is neither `''` or `'.'`
24
+ (node:3093) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
26
25
  (Use `node --trace-warnings ...` to show where the warning was created)
27
-  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (7.064 s)
26
+  PASS  src/__tests__/mustSatisfyPeerDependencies.spec.ts (6.666 s)
28
27
  mustSatisfyPeerDependencies
29
28
  ✓ Flags overloaded dependency (entry in regular dependencies and peer dependencies) (5 ms)
30
- ✓ Flags conflicting peer dependencies (5 ms)
31
- ✓ Flags unsatisfied peer dependencies (test package has regular dep) (4 ms)
29
+ ✓ Flags conflicting peer dependencies (4 ms)
30
+ ✓ Flags unsatisfied peer dependencies (test package has regular dep) (3 ms)
32
31
  ✓ Flags missing peer dependencies (NO regular dependency present) (4 ms)
33
32
  ✓ Flags unsatisfied peer dependencies (test package has peer dep) (4 ms)
34
33
  ✓ Honors dependencyWhitelist (4 ms)
35
34
  ✓ Honors dependencyBlacklist (3 ms)
36
35
  regex tests
37
- ✓ Properly matches any version range regex (23 ms)
38
- ✓ Properly matches greator or equal version range regex (12 ms)
39
- ✓ Properly matches major version range regex (5 ms)
40
- ✓ Properly matches allowed range regex (9 ms)
36
+ ✓ Properly matches any version range regex (34 ms)
37
+ ✓ Properly matches greator or equal version range regex (14 ms)
38
+ ✓ Properly matches major version range regex (11 ms)
39
+ ✓ Properly matches allowed range regex (16 ms)
41
40
  Determines dependencies satisfaction correctly
42
- ✓ version is version (1 ms)
43
- ✓ version satisfies a range (5 ms)
44
- ✓ higher version satisfies a range (2 ms)
41
+ ✓ version is version (2 ms)
42
+ ✓ version satisfies a range (3 ms)
43
+ ✓ higher version satisfies a range (3 ms)
45
44
  ✓ version satisfies a greator or equal version range (1 ms)
46
45
  ✓ higher version satisfies a greator or equal version range (1 ms)
47
- ✓ version satisfies 'any' range
48
- ✓ greator or equal version range satisfies 'any' range
46
+ ✓ version satisfies 'any' range (1 ms)
47
+ ✓ greator or equal version range satisfies 'any' range (1 ms)
49
48
  ✓ range satisfies 'any' range (1 ms)
50
49
  ✓ union range satisfies 'any' range (1 ms)
51
50
  ✓ version found in union start (1 ms)
@@ -53,35 +52,35 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
53
52
  ✓ version satisfies a range in union start (1 ms)
54
53
  ✓ version satisfies a range in union end (1 ms)
55
54
  ✓ higher version satisfies a range in union start (1 ms)
56
- ✓ higher version satisfies a range in union end (1 ms)
55
+ ✓ higher version satisfies a range in union end (2 ms)
57
56
  ✓ range found in union start (1 ms)
58
57
  ✓ range found in union end (1 ms)
59
- ✓ union satisfies greator or equal version range (1 ms)
60
- ✓ greator or equal version range satisfies greator or equal version range
58
+ ✓ union satisfies greator or equal version range (3 ms)
59
+ ✓ greator or equal version range satisfies greator or equal version range (1 ms)
61
60
  ✓ equivalent greator or equal version ranges satisfy each other (1 ms)
62
61
  ✓ higher range satisfies a range in union start (1 ms)
63
- ✓ higher range satisfies a range in union end (3 ms)
64
- ✓ equivalent 'any' ranges satisfy each other
65
- ✓ equivalent major ranges satisfy each other (4 ms)
62
+ ✓ higher range satisfies a range in union end (1 ms)
63
+ ✓ equivalent 'any' ranges satisfy each other (1 ms)
64
+ ✓ equivalent major ranges satisfy each other (5 ms)
66
65
  ✓ version missing in union (1 ms)
67
66
  ✓ range missing in union (1 ms)
68
67
  Determines dependencies intersections correctly
69
- ✓ equivalence (1 ms)
70
- ✓ exact vs any
68
+ ✓ equivalence (2 ms)
69
+ ✓ exact vs any (1 ms)
71
70
  ✓ major vs any
72
71
  ✓ greater or equal vs any (1 ms)
73
- ✓ any vs any (1 ms)
72
+ ✓ any vs any
74
73
  ✓ exact vs greater or equal (2 ms)
75
74
  ✓ major vs greater or equal (1 ms)
76
- ✓ greater or equal vs greater or equal (5 ms)
77
- ✓ exact vs major (2 ms)
75
+ ✓ greater or equal vs greater or equal (1 ms)
76
+ ✓ exact vs major (1 ms)
78
77
  ✓ major vs major (1 ms)
79
78
  ✓ exact vs union (1 ms)
80
79
  ✓ major vs union (1 ms)
81
- ✓ union vs union (2 ms)
80
+ ✓ union vs union (1 ms)
82
81
 
83
82
  console.log
84
- package-without-scripts (/tmp/tmp-3060-Pv1trFxE1Zc8)
83
+ package-without-scripts (/tmp/tmp-3095-nrg1Lc0Kpq2N)
85
84
  
86
85
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
87
86
 
@@ -100,11 +99,11 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
100
99
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
101
100
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
102
101
   at check (src/packageScript.ts:34:15)
103
-  at Object.check (src/util/makeRule.ts:20:27)
102
+  at Object.check (src/util/createRuleFactory.ts:26:27)
104
103
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
105
104
 
106
105
  console.log
107
- package-without-scripts (/tmp/tmp-3060-e3Y4Q8FvFL6y)
106
+ package-without-scripts (/tmp/tmp-3095-mSGvyoHwcNZ1)
108
107
  
109
108
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
110
109
 
@@ -114,7 +113,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
114
113
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
115
114
 
116
115
  console.log
117
- package-with-scripts (/tmp/tmp-3060-O1CRySgwI38c)
116
+ package-with-scripts (/tmp/tmp-3095-s0yafv7EMI5x)
118
117
  
119
118
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
120
119
 
@@ -124,7 +123,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
124
123
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
125
124
 
126
125
  console.log
127
- package-with-scripts (/tmp/tmp-3060-c7pQ7Lgqkzai)
126
+ package-with-scripts (/tmp/tmp-3095-g024NjVuSq55)
128
127
  
129
128
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
130
129
 
@@ -143,11 +142,11 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
143
142
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
144
143
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
145
144
   at check (src/packageScript.ts:89:17)
146
-  at Object.check (src/util/makeRule.ts:20:27)
145
+  at Object.check (src/util/createRuleFactory.ts:26:27)
147
146
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
148
147
 
149
148
  console.log
150
- package-with-scripts (/tmp/tmp-3060-JA1HPhqnw59z)
149
+ package-with-scripts (/tmp/tmp-3095-vgJvBTudNUjh)
151
150
  
152
151
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
153
152
 
@@ -157,7 +156,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
157
156
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
158
157
 
159
158
  console.log
160
- package-with-scripts (/tmp/tmp-3060-6oRKK1Ot6jT8)
159
+ package-with-scripts (/tmp/tmp-3095-YAD6B8pWxhRg)
161
160
  
162
161
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
163
162
 
@@ -167,7 +166,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
167
166
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
168
167
 
169
168
  console.log
170
- package-with-scripts (/tmp/tmp-3060-zp3jazxjQawZ)
169
+ package-with-scripts (/tmp/tmp-3095-WltTy8gswzhE)
171
170
  
172
171
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
173
172
 
@@ -176,10 +175,10 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
176
175
  
177
176
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
178
177
 
179
- (node:3060) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
180
- (Use `node --trace-warnings ...` to show where the warning was created)
178
+ (node:3095) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
181
179
  console.log
182
- package-without-scripts (/tmp/tmp-3060-p20kuQ58h8pn)
180
+ (Use `node --trace-warnings ...` to show where the warning was created)
181
+ package-without-scripts (/tmp/tmp-3095-t9x2AfmwyHmd)
183
182
  
184
183
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
185
184
 
@@ -198,11 +197,11 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
198
197
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
199
198
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
200
199
   at check (src/packageScript.ts:34:15)
201
-  at Object.check (src/util/makeRule.ts:20:27)
200
+  at Object.check (src/util/createRuleFactory.ts:26:27)
202
201
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:56:10)
203
202
 
204
203
  console.log
205
- package-without-scripts (/tmp/tmp-3060-xF61B7S8PeqC)
204
+ package-without-scripts (/tmp/tmp-3095-uslqqfRbnBml)
206
205
  
207
206
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
208
207
 
@@ -212,7 +211,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
212
211
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
213
212
 
214
213
  console.log
215
- package-with-scripts (/tmp/tmp-3060-EF0dBtI4FjRb)
214
+ package-with-scripts (/tmp/tmp-3095-72aNYiJDPcRe)
216
215
  
217
216
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
218
217
 
@@ -222,7 +221,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
222
221
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
223
222
 
224
223
  console.log
225
- package-with-scripts (/tmp/tmp-3060-YEv1h1UnD5Yn)
224
+ package-with-scripts (/tmp/tmp-3095-Fm7jl1EE7ZGI)
226
225
  
227
226
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
228
227
 
@@ -241,11 +240,11 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
241
240
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
242
241
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
243
242
   at check (src/packageScript.ts:89:17)
244
-  at Object.check (src/util/makeRule.ts:20:27)
243
+  at Object.check (src/util/createRuleFactory.ts:26:27)
245
244
   at Object.<anonymous> (src/__tests__/packageScript.spec.ts:169:10)
246
245
 
247
246
  console.log
248
- package-with-scripts (/tmp/tmp-3060-1MuhUCHS7IuV)
247
+ package-with-scripts (/tmp/tmp-3095-gwG2mVpxPZP6)
249
248
  
250
249
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
251
250
 
@@ -255,7 +254,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
255
254
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
256
255
 
257
256
  console.log
258
- package-with-scripts (/tmp/tmp-3060-v7V2YRUfMVzl)
257
+ package-with-scripts (/tmp/tmp-3095-pu3xdqGfx15G)
259
258
  
260
259
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
261
260
 
@@ -265,7 +264,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
265
264
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
266
265
 
267
266
  console.log
268
- package-with-scripts (/tmp/tmp-3060-QsveJspb2oC2)
267
+ package-with-scripts (/tmp/tmp-3095-BuHUHCt7DDm6)
269
268
  
270
269
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
271
270
 
@@ -274,32 +273,40 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
274
273
  
275
274
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
276
275
 
277
-  PASS  src/__tests__/packageScript.spec.ts (7.288 s)
276
+  PASS  src/__tests__/packageScript.spec.ts (6.846 s)
278
277
  expectPackageScript (SimpleHost)
279
278
  fix: false
280
- ✓ handles an empty script section (105 ms)
279
+ ✓ handles an empty script section (77 ms)
281
280
  fix: true
282
- ✓ fixes an empty script section (11 ms)
281
+ ✓ fixes an empty script section (10 ms)
283
282
  ✓ adds a script (7 ms)
284
283
  ✓ does nothing if the value exists (2 ms)
285
- ✓ errors if long form is used and no value matches and there is no fixValue (11 ms)
286
- ✓ uses the fixValue for fixing if provided (5 ms)
287
- ✓ can fix to empty (4 ms)
288
- ✓ can allow only empty (6 ms)
284
+ ✓ errors if long form is used and no value matches and there is no fixValue (23 ms)
285
+ ✓ uses the fixValue for fixing if provided (12 ms)
286
+ ✓ can fix to empty (5 ms)
287
+ ✓ can allow only empty (7 ms)
289
288
  expectPackageScript (CachingHost)
290
289
  fix: false
291
- ✓ handles an empty script section (12 ms)
290
+ ✓ handles an empty script section (16 ms)
292
291
  fix: true
293
- ✓ fixes an empty script section (5 ms)
294
- ✓ adds a script (4 ms)
295
- ✓ does nothing if the value exists (8 ms)
296
- ✓ errors if long form is used and no value matches and there is no fixValue (7 ms)
297
- ✓ uses the fixValue for fixing if provided (5 ms)
298
- ✓ can fix to empty (4 ms)
299
- ✓ can allow only empty (4 ms)
292
+ ✓ fixes an empty script section (15 ms)
293
+ ✓ adds a script (6 ms)
294
+ ✓ does nothing if the value exists (2 ms)
295
+ ✓ errors if long form is used and no value matches and there is no fixValue (6 ms)
296
+ ✓ uses the fixValue for fixing if provided (4 ms)
297
+ ✓ can fix to empty (5 ms)
298
+ ✓ can allow only empty (3 ms)
299
+
300
+  PASS  src/__tests__/bannedDependencies.spec.ts
301
+ bannedDependencies
302
+ ✓ Flags banned dependencies correctly (8 ms)
303
+ ✓ Flags banned dependencies correctly w legacy globs (2 ms)
304
+ ✓ Flags banned dependencies correctly w new globs (2 ms)
305
+ ✓ Flags banned dependencies correctly w exact (2 ms)
306
+ ✓ Flags banned transitives correctly (6 ms)
300
307
 
301
308
  console.log
302
- package (/tmp/tmp-3058-wpDoGuqpnO06)
309
+ package (/tmp/tmp-3093-cQevdDV3gGjN)
303
310
  
304
311
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
305
312
 
@@ -309,7 +316,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
309
316
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
310
317
 
311
318
  console.log
312
- package (/tmp/tmp-3058-1Bmzar2QVgLp)
319
+ package (/tmp/tmp-3093-JICvMAgdv62P)
313
320
  
314
321
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
315
322
 
@@ -319,7 +326,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
319
326
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
320
327
 
321
328
  console.log
322
- package (/tmp/tmp-3058-7Ot4wSyVmEZu)
329
+ package (/tmp/tmp-3093-YnKIHX5Y4jOt)
323
330
  
324
331
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
325
332
 
@@ -338,14 +345,23 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
338
345
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
339
346
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
340
347
   at check (src/packageEntry.ts:73:19)
341
-  at Object.check (src/util/makeRule.ts:20:27)
348
+  at Object.check (src/util/createRuleFactory.ts:26:27)
342
349
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
343
350
 
344
351
  console.log
345
- package (/tmp/tmp-3058-wp3WQ4zrfoxl)
352
+ package (/tmp/tmp-3093-kwEPMVNOrcTj)
346
353
  
347
354
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
348
355
 
356
+  PASS  src/__tests__/nestedWorkspaces.spec.ts
357
+ nestedWorkspaces
358
+ ✓ checks correctly when no packages (13 ms)
359
+ ✓ checks correctly when one level packages (5 ms)
360
+ ✓ checks fail when one level packages with no workspaces field (5 ms)
361
+ ✓ checks correctly when two level packages with two level workspaces field (6 ms)
362
+ ✓ checks fail when two level packages with one level workspaces field (5 ms)
363
+ ✓ checks correctly when three level packages with three level workspaces field (7 ms)
364
+
349
365
  console.error
350
366
   Error! package.json: Expected entry for 'bugs' to exist
351
367
  
@@ -361,7 +377,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
361
377
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
362
378
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
363
379
   at check (src/packageEntry.ts:73:19)
364
-  at Object.check (src/util/makeRule.ts:20:27)
380
+  at Object.check (src/util/createRuleFactory.ts:26:27)
365
381
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:186:10)
366
382
 
367
383
  console.log
@@ -370,7 +386,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
370
386
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
371
387
 
372
388
  console.log
373
- package (/tmp/tmp-3058-2xarm2LCswD3)
389
+ package (/tmp/tmp-3093-dsrRyBxIC6XM)
374
390
  
375
391
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
376
392
 
@@ -380,7 +396,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
380
396
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
381
397
 
382
398
  console.log
383
- package (/tmp/tmp-3058-5bVsr3EOGKQL)
399
+ package (/tmp/tmp-3093-S45iJGp5ltGo)
384
400
  
385
401
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
386
402
 
@@ -390,7 +406,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
390
406
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
391
407
 
392
408
  console.log
393
- package (/tmp/tmp-3058-AmIzf2T13UZx)
409
+ package (/tmp/tmp-3093-6Rj3bMVjjrik)
394
410
  
395
411
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
396
412
 
@@ -409,11 +425,11 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
409
425
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
410
426
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
411
427
   at check (src/packageEntry.ts:73:19)
412
-  at Object.check (src/util/makeRule.ts:20:27)
428
+  at Object.check (src/util/createRuleFactory.ts:26:27)
413
429
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:158:10)
414
430
 
415
431
  console.log
416
- package (/tmp/tmp-3058-xX0y692Ogh68)
432
+ package (/tmp/tmp-3093-uLpWOXymaDmO)
417
433
  
418
434
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
419
435
 
@@ -432,7 +448,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
432
448
   at WorkspaceContextImpl.addErrorSyncOrAsync (../core/src/PackageContext.ts:85:12)
433
449
   at WorkspaceContextImpl.addError (../core/src/PackageContext.ts:68:10)
434
450
   at check (src/packageEntry.ts:73:19)
435
-  at Object.check (src/util/makeRule.ts:20:27)
451
+  at Object.check (src/util/createRuleFactory.ts:26:27)
436
452
   at Object.<anonymous> (src/__tests__/packageEntry.spec.ts:186:10)
437
453
 
438
454
  console.log
@@ -443,38 +459,32 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
443
459
   PASS  src/__tests__/packageEntry.spec.ts
444
460
  expectPackageEntries (SimpleHost)
445
461
  fix: true
446
- ✓ fixes missing entries (80 ms)
462
+ ✓ fixes missing entries (91 ms)
447
463
  ✓ fixes missing nested entries (6 ms)
448
- ✓ doesn't error for nested entries that are defined (1 ms)
449
- ✓ errors for keys that are missing (31 ms)
450
- ✓ handles both entries and entriesExist (22 ms)
464
+ ✓ doesn't error for nested entries that are defined (3 ms)
465
+ ✓ errors for keys that are missing (13 ms)
466
+ ✓ handles both entries and entriesExist (18 ms)
451
467
  expectPackageEntries (CachingHost)
452
468
  fix: true
453
- ✓ fixes missing entries (6 ms)
454
- ✓ fixes missing nested entries (5 ms)
455
- ✓ doesn't error for nested entries that are defined (2 ms)
456
- ✓ errors for keys that are missing (8 ms)
457
- ✓ handles both entries and entriesExist (11 ms)
469
+ ✓ fixes missing entries (8 ms)
470
+ ✓ fixes missing nested entries (4 ms)
471
+ ✓ doesn't error for nested entries that are defined (1 ms)
472
+ ✓ errors for keys that are missing (7 ms)
473
+ ✓ handles both entries and entriesExist (6 ms)
458
474
 
459
-  PASS  src/__tests__/nestedWorkspaces.spec.ts
460
- nestedWorkspaces
461
- ✓ checks correctly when no packages (20 ms)
462
- ✓ checks correctly when one level packages (6 ms)
463
- ✓ checks fail when one level packages with no workspaces field (6 ms)
464
- ✓ checks correctly when two level packages with two level workspaces field (12 ms)
465
- ✓ checks fail when two level packages with one level workspaces field (5 ms)
466
- ✓ checks correctly when three level packages with three level workspaces field (7 ms)
475
+  PASS  src/__tests__/requireDependency.spec.ts
476
+ requireDependency
477
+ ✓ checks correctly (29 ms)
478
+ ✓ fixes correctly (5 ms)
467
479
 
468
-  PASS  src/__tests__/bannedDependencies.spec.ts
469
- bannedDependencies
470
- ✓ Flags banned dependencies correctly (9 ms)
471
- ✓ Flags banned dependencies correctly w legacy globs (3 ms)
472
- ✓ Flags banned dependencies correctly w new globs (2 ms)
473
- ✓ Flags banned dependencies correctly w exact (3 ms)
474
- ✓ Flags banned transitives correctly (6 ms)
480
+  PASS  src/__tests__/consistentDependencies.spec.ts
481
+ consistentDependencies
482
+ ✓ checks correctly (10 ms)
483
+ ✓ fixes correctly (4 ms)
484
+ ✓ ignores ignored dependencies (2 ms)
475
485
 
476
486
  console.log
477
- package (/tmp/tmp-3060-gojtaFPAkuaA)
487
+ package (/tmp/tmp-3095-OUXBaHTL4GHu)
478
488
  
479
489
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
480
490
 
@@ -484,7 +494,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
484
494
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
485
495
 
486
496
  console.log
487
- package-unknown-keys (/tmp/tmp-3060-d6XaQ5BhimLy)
497
+ package-unknown-keys (/tmp/tmp-3095-bPFxhm9NQ0DB)
488
498
  
489
499
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
490
500
 
@@ -494,7 +504,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
494
504
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
495
505
 
496
506
  console.log
497
- package (/tmp/tmp-3060-d3IoQ8nz2ReL)
507
+ package (/tmp/tmp-3095-OiYsBMyGRCDl)
498
508
  
499
509
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
500
510
 
@@ -504,7 +514,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
504
514
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
505
515
 
506
516
  console.log
507
- package (/tmp/tmp-3060-MVlAnsW6FyAT)
517
+ package (/tmp/tmp-3095-yr8uBPL9H5zg)
508
518
  
509
519
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
510
520
 
@@ -514,7 +524,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
514
524
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
515
525
 
516
526
  console.log
517
- package-unknown-keys (/tmp/tmp-3060-RJNxU4XZn3In)
527
+ package-unknown-keys (/tmp/tmp-3095-KnF4ZVlxCGcX)
518
528
  
519
529
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
520
530
 
@@ -524,7 +534,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
524
534
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
525
535
 
526
536
  console.log
527
- package (/tmp/tmp-3060-R83iZILo6pir)
537
+ package (/tmp/tmp-3095-VqlKasqBfvOL)
528
538
  
529
539
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
530
540
 
@@ -536,30 +546,19 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
536
546
   PASS  src/__tests__/packageOrder.spec.ts
537
547
  expectPackageOrder (SimpleHost)
538
548
  fix: true
539
- ✓ fixes order for expected keys (15 ms)
540
- ✓ fixes order for unexpected keys (27 ms)
541
- ✓ fixes order using function (6 ms)
542
- ✓ does nothing if already order (2 ms)
543
- expectPackageOrder (CachingHost)
544
- fix: true
545
- ✓ fixes order for expected keys (17 ms)
546
- ✓ fixes order for unexpected keys (6 ms)
549
+ ✓ fixes order for expected keys (16 ms)
550
+ ✓ fixes order for unexpected keys (17 ms)
547
551
  ✓ fixes order using function (5 ms)
548
552
  ✓ does nothing if already order (1 ms)
549
-
550
-  PASS  src/__tests__/requireDependency.spec.ts
551
- requireDependency
552
- ✓ checks correctly (11 ms)
553
- ✓ fixes correctly (6 ms)
554
-
555
-  PASS  src/__tests__/consistentDependencies.spec.ts
556
- consistentDependencies
557
- ✓ checks correctly (12 ms)
558
- ✓ fixes correctly (40 ms)
559
- ✓ ignores ignored dependencies (3 ms)
553
+ expectPackageOrder (CachingHost)
554
+ fix: true
555
+ ✓ fixes order for expected keys (15 ms)
556
+ ✓ fixes order for unexpected keys (5 ms)
557
+ ✓ fixes order using function (4 ms)
558
+ ✓ does nothing if already order (2 ms)
560
559
 
561
560
  console.log
562
- foo-lib (/tmp/tmp-3058-Hv3aVgZHJrbK)
561
+ foo-lib (/tmp/tmp-3093-XOkYbcM0k40g)
563
562
  
564
563
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
565
564
 
@@ -569,7 +568,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
569
568
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
570
569
 
571
570
  console.log
572
- foo-lib (/tmp/tmp-3058-kbZSLoWk4beF)
571
+ foo-lib (/tmp/tmp-3093-LCMbFTkpKNBy)
573
572
  
574
573
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
575
574
 
@@ -581,15 +580,15 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
581
580
   PASS  src/__tests__/alphabeticalScripts.spec.ts
582
581
  alphabeticalScripts (SimpleHost)
583
582
  fix: true
584
- ✓ fixes unsorted scripts (12 ms)
583
+ ✓ fixes unsorted scripts (10 ms)
585
584
  ✓ does nothing if already sorted (1 ms)
586
585
  alphabeticalScripts (CachingHost)
587
586
  fix: true
588
- ✓ fixes unsorted scripts (4 ms)
587
+ ✓ fixes unsorted scripts (9 ms)
589
588
  ✓ does nothing if already sorted (1 ms)
590
589
 
591
590
  console.log
592
- rootProject (/tmp/tmp-3060-JTa5MB6B4jRH)
591
+ rootProject (/tmp/tmp-3094-uzHzQ9Pst5Ff)
593
592
  
594
593
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
595
594
 
@@ -599,7 +598,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
599
598
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
600
599
 
601
600
  console.log
602
- rootProject (/tmp/tmp-3060-HTYB1hpfCrd3)
601
+ rootProject (/tmp/tmp-3094-rVh6VOGKTGTk)
603
602
  
604
603
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
605
604
 
@@ -609,7 +608,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
609
608
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
610
609
 
611
610
  console.log
612
- rootProject (/tmp/tmp-3060-nXTDfZplh7hW)
611
+ rootProject (/tmp/tmp-3094-nzm9Mrr43ohZ)
613
612
  
614
613
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
615
614
 
@@ -619,7 +618,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
619
618
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
620
619
 
621
620
  console.log
622
- rootProject (/tmp/tmp-3060-uRk7AAlgeFUa)
621
+ rootProject (/tmp/tmp-3094-TngL5qghdGQr)
623
622
  
624
623
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
625
624
 
@@ -629,7 +628,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
629
628
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
630
629
 
631
630
  console.log
632
- rootProject (/tmp/tmp-3060-xH46lu3zJbB7)
631
+ rootProject (/tmp/tmp-3094-MJNrAd6yyCrb)
633
632
  
634
633
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
635
634
 
@@ -639,7 +638,7 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
639
638
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
640
639
 
641
640
  console.log
642
- rootProject (/tmp/tmp-3060-2ZFkDNSf9sCz)
641
+ rootProject (/tmp/tmp-3094-m2VWiANmyeQq)
643
642
  
644
643
   at WorkspaceContextImpl.print (../core/src/PackageContext.ts:133:13)
645
644
 
@@ -651,17 +650,17 @@ ts-jest[ts-compiler] (WARN) Unable to process '/home/runner/work/monorepolint/mo
651
650
   PASS  src/__tests__/fileContents.spec.ts
652
651
  fileContents (SimpleHost)
653
652
  fix: true
654
- ✓ works with async generator (8 ms)
655
- ✓ fixes missing file (3 ms)
653
+ ✓ works with async generator (46 ms)
654
+ ✓ fixes missing file (2 ms)
656
655
  ✓ fixes missing nested file (3 ms)
657
656
  fileContents (CachingHost)
658
657
  fix: true
659
- ✓ works with async generator (8 ms)
660
- ✓ fixes missing file (6 ms)
661
- ✓ fixes missing nested file (6 ms)
658
+ ✓ works with async generator (5 ms)
659
+ ✓ fixes missing file (3 ms)
660
+ ✓ fixes missing nested file (2 ms)
662
661
 
663
662
  Test Suites: 11 passed, 11 total
664
663
  Tests: 118 passed, 118 total
665
664
  Snapshots: 0 total
666
- Time: 9.998 s
665
+ Time: 9.419 s
667
666
  Ran all test suites.