@monorepolint/rules 0.6.0-alpha.3 → 0.6.0-alpha.4

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 (62) 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 +73 -74
  5. package/.turbo/turbo-transpile-typescript.log +4 -4
  6. package/CHANGELOG.md +10 -0
  7. package/build/js/index.js +104 -69
  8. package/build/js/index.js.map +1 -1
  9. package/build/tsconfig.tsbuildinfo +1 -1
  10. package/build/types/bannedDependencies.d.ts.map +1 -1
  11. package/build/types/forceError.d.ts +4 -0
  12. package/build/types/forceError.d.ts.map +1 -0
  13. package/build/types/index.d.ts +2 -0
  14. package/build/types/index.d.ts.map +1 -1
  15. package/build/types/mustSatisfyPeerDependencies.d.ts.map +1 -1
  16. package/build/types/nestedWorkspaces.d.ts.map +1 -1
  17. package/build/types/oncePerPackage.d.ts +11 -0
  18. package/build/types/oncePerPackage.d.ts.map +1 -0
  19. package/build/types/requireDependency.d.ts.map +1 -1
  20. package/build/types/util/packageDependencyGraphService.d.ts.map +1 -1
  21. package/coverage/clover.xml +516 -469
  22. package/coverage/coverage-final.json +12 -10
  23. package/coverage/index.html +15 -15
  24. package/coverage/src/alphabeticalDependencies.ts.html +6 -6
  25. package/coverage/src/alphabeticalScripts.ts.html +1 -1
  26. package/coverage/src/bannedDependencies.ts.html +7 -10
  27. package/coverage/src/consistentDependencies.ts.html +7 -13
  28. package/coverage/src/consistentVersions.ts.html +31 -46
  29. package/coverage/src/fileContents.ts.html +1 -1
  30. package/coverage/src/forceError.ts.html +184 -0
  31. package/coverage/src/index.html +73 -43
  32. package/coverage/src/index.ts.html +10 -4
  33. package/coverage/src/mustSatisfyPeerDependencies.ts.html +16 -61
  34. package/coverage/src/nestedWorkspaces.ts.html +10 -22
  35. package/coverage/src/oncePerPackage.ts.html +181 -0
  36. package/coverage/src/packageEntry.ts.html +1 -1
  37. package/coverage/src/packageOrder.ts.html +1 -1
  38. package/coverage/src/packageScript.ts.html +1 -1
  39. package/coverage/src/requireDependency.ts.html +7 -13
  40. package/coverage/src/standardTsconfig.ts.html +6 -6
  41. package/coverage/src/util/checkAlpha.ts.html +1 -1
  42. package/coverage/src/util/createRuleFactory.ts.html +1 -1
  43. package/coverage/src/util/index.html +10 -10
  44. package/coverage/src/util/makeDirectory.ts.html +1 -1
  45. package/coverage/src/util/packageDependencyGraphService.ts.html +7 -13
  46. package/package.json +4 -4
  47. package/src/__tests__/fileContents.spec.ts +1 -5
  48. package/src/__tests__/nestedWorkspaces.spec.ts +1 -2
  49. package/src/__tests__/packageEntry.spec.ts +1 -6
  50. package/src/__tests__/packageOrder.spec.ts +1 -6
  51. package/src/__tests__/packageScript.spec.ts +1 -6
  52. package/src/bannedDependencies.ts +1 -2
  53. package/src/consistentDependencies.ts +1 -3
  54. package/src/consistentVersions.ts +24 -29
  55. package/src/forceError.ts +33 -0
  56. package/src/index.ts +2 -0
  57. package/src/mustSatisfyPeerDependencies.ts +10 -25
  58. package/src/nestedWorkspaces.ts +4 -8
  59. package/src/oncePerPackage.ts +32 -0
  60. package/src/requireDependency.ts +1 -3
  61. package/src/util/packageDependencyGraphService.ts +1 -3
  62. package/vitest.config.mjs +1 -5
@@ -1,4 +1,4 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.3 clean /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.6.0-alpha.4 clean /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > rm -rf build dist lib node_modules *.tgz tsconfig.tsbuildinfo
4
4
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.3 compile-typescript /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.6.0-alpha.4 compile-typescript /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > tsc --build
4
4
 
@@ -1,4 +1,4 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.3 lint /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.6.0-alpha.4 lint /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > eslint .
4
4
 
@@ -1,273 +1,272 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.3 test /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.6.0-alpha.4 test /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > vitest run --passWithNoTests
4
4
 
5
- Loaded  vitest@3.0.3  and  @vitest/coverage-v8@2.1.8 .
6
- Running mixed versions is not supported and may lead into bugs
7
- Update your dependencies and make sure the versions match.
8
5
  [?25l
9
6
   RUN  v3.0.3 /home/runner/work/monorepolint/monorepolint/packages/rules
10
7
  Coverage enabled with v8
11
8
 
12
9
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
13
- package-without-scripts (/tmp/tmp-3474-4GkxWf6jLg8S)
10
+ package-without-scripts (/tmp/tmp-3686-2u1x92UAft5H)
14
11
 
15
12
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
16
13
   Error! package.json: No scripts block in package.json
17
14
 
18
15
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
19
- package-without-scripts (/tmp/tmp-3474-HNBhYf3z8xu3)
16
+ package-without-scripts (/tmp/tmp-3686-pmlX4pfMUX5M)
20
17
 
21
18
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
22
19
   Fixed! package.json: No scripts block in package.json
23
20
 
24
21
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
25
- package-with-scripts (/tmp/tmp-3474-sU5tptS7fBEd)
22
+ package-with-scripts (/tmp/tmp-3686-YyWuYMhV0bqb)
26
23
 
27
24
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
28
25
   Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
29
26
 
30
27
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
31
- package-with-scripts (/tmp/tmp-3474-9Gmq56hangOn)
28
+ package-with-scripts (/tmp/tmp-3686-Gke653lsZEN9)
32
29
 
33
30
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
34
31
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
35
32
 
36
33
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
37
- package-with-scripts (/tmp/tmp-3474-tEUodcC2maX9)
34
+ package-with-scripts (/tmp/tmp-3686-ZgeQCpTyDc7s)
38
35
 
39
36
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
40
37
   Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
41
38
 
42
39
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
43
- package-with-scripts (/tmp/tmp-3474-gV3gKAYe23Tt)
40
+ package-with-scripts (/tmp/tmp-3686-aLYG4sPyWFtE)
44
41
 
45
42
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
46
43
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
47
44
 
48
45
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
49
- package-with-scripts (/tmp/tmp-3474-eI5sQjqlde3E)
46
+ package-with-scripts (/tmp/tmp-3686-7nKnDSsDfl1R)
50
47
 
51
48
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
52
49
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
53
50
 
54
51
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
55
- package-without-scripts (/tmp/tmp-3474-RdTwcurD1HvL)
52
+ package-without-scripts (/tmp/tmp-3686-RdPdmvf7Sm7n)
56
53
 
57
54
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
58
55
   Error! package.json: No scripts block in package.json
59
56
 
60
57
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
61
- package-without-scripts (/tmp/tmp-3474-3c7PGtDVNyjT)
58
+ package-without-scripts (/tmp/tmp-3686-0ahnbvUrI0Gn)
62
59
 
63
60
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
64
61
   Fixed! package.json: No scripts block in package.json
65
62
 
66
63
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
67
- package-with-scripts (/tmp/tmp-3474-1C48BKE9z7R1)
64
+ package-with-scripts (/tmp/tmp-3686-OIbRRNGe718z)
68
65
 
69
66
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
70
67
   Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
71
68
 
72
69
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
73
- package-with-scripts (/tmp/tmp-3474-ycbEy1i97QjP)
70
+ package-with-scripts (/tmp/tmp-3686-GUT2xJ7zi82Q)
74
71
 
75
72
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > errors if long form is used and no value matches and there is no fixValue
76
73
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
77
74
 
78
75
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
79
- package-with-scripts (/tmp/tmp-3474-Rvdm4PRsnEU2)
76
+ package-with-scripts (/tmp/tmp-3686-xYaxlRAdyOVC)
80
77
 
81
78
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
82
79
   Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
83
80
 
84
81
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
85
- package-with-scripts (/tmp/tmp-3474-XCgcbtgsfkVk)
82
+ package-with-scripts (/tmp/tmp-3686-x9RovLymRe6C)
86
83
 
87
84
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
88
85
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
89
86
 
90
87
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
91
- package-with-scripts (/tmp/tmp-3474-5M03y5fy51ml)
88
+ package-with-scripts (/tmp/tmp-3686-PO4byOWlKMQA)
92
89
 
93
90
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
94
91
   Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
95
92
 
96
- ✓ src/__tests__/consistentVersions.spec.ts (8 tests) 30ms
97
- ✓ src/__tests__/packageScript.spec.ts (16 tests) 51ms
98
- ✓ src/__tests__/mustSatisfyPeerDependencies.spec.ts (50 tests) 102ms
93
+ ✓ src/__tests__/packageScript.spec.ts (16 tests) 62ms
94
+ ✓ src/__tests__/consistentVersions.spec.ts (8 tests) 45ms
95
+ ✓ src/__tests__/mustSatisfyPeerDependencies.spec.ts (50 tests) 143ms
99
96
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
100
- package (/tmp/tmp-3561-SbWOG4bQUCEo)
97
+ package (/tmp/tmp-3769-Kx1hyBps5gy0)
101
98
 
102
99
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
103
100
   Fixed! package.json: Expected standardized entry for 'license'
104
101
 
105
102
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
106
- package (/tmp/tmp-3561-5nnxcC366RTS)
103
+ package (/tmp/tmp-3769-UQzL2n7QXIdM)
107
104
 
105
+ ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 37ms
108
106
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
109
107
   Fixed! package.json: Expected standardized entry for 'repository'
110
108
 
111
109
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
112
- package (/tmp/tmp-3561-C7bpTOF2sCTB)
110
+ package (/tmp/tmp-3769-gBt4Wp7LWAJA)
113
111
 
114
112
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
115
113
   Error! package.json: Expected entry for 'bugs' to exist
116
114
 
117
115
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
118
- package (/tmp/tmp-3561-hw5UShwSASA5)
116
+ package (/tmp/tmp-3769-OJrqRW8mOgR8)
119
117
  Fixed! package.json: Expected standardized entry for 'repository'
120
118
 
121
119
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
122
120
   Error! package.json: Expected entry for 'bugs' to exist
123
121
 
124
122
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
125
- package (/tmp/tmp-3561-CVTkj3J5I9UI)
123
+ package (/tmp/tmp-3769-JhAClr7sLewt)
126
124
 
127
125
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
128
126
   Fixed! package.json: Expected standardized entry for 'license'
129
127
 
130
128
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
131
- package (/tmp/tmp-3561-M8PtG1R9hHsC)
129
+ package (/tmp/tmp-3769-tiF1xL0OU3Ix)
132
130
 
133
131
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
134
132
   Fixed! package.json: Expected standardized entry for 'repository'
135
133
 
136
- ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 27ms
137
134
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
138
- package (/tmp/tmp-3561-F8nCmuXigd93)
135
+ package (/tmp/tmp-3769-UwMv60giOsmU)
139
136
 
140
137
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
141
138
   Error! package.json: Expected entry for 'bugs' to exist
142
139
 
143
140
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
144
- package (/tmp/tmp-3561-iiWNV92z1MaI)
141
+ package (/tmp/tmp-3769-UMUy0NXuKhqQ)
145
142
  Fixed! package.json: Expected standardized entry for 'repository'
146
143
 
147
144
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
148
145
   Error! package.json: Expected entry for 'bugs' to exist
149
146
 
150
- ✓ src/__tests__/packageEntry.spec.ts (10 tests) 37ms
151
- ✓ src/__tests__/nestedWorkspaces.spec.ts (6 tests) 51ms
152
- ✓ src/__tests__/requireDependency.spec.ts (2 tests) 61ms
153
- ✓ src/__tests__/consistentDependencies.spec.ts (3 tests) 71ms
147
+ ✓ src/__tests__/packageEntry.spec.ts (10 tests) 42ms
148
+ ✓ src/__tests__/nestedWorkspaces.spec.ts (6 tests) 64ms
149
+ ✓ src/__tests__/requireDependency.spec.ts (2 tests) 32ms
150
+ ✓ src/__tests__/consistentDependencies.spec.ts (3 tests) 39ms
154
151
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
155
- package (/tmp/tmp-3669-uRNAmN8TWbPE)
152
+ package (/tmp/tmp-3913-TNihQWGn0hpa)
156
153
 
157
154
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
158
155
   Fixed! package.json: Incorrect order of fields in package.json
159
156
 
160
157
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
161
- package-unknown-keys (/tmp/tmp-3669-OBNgrAyzsAO8)
158
+ package-unknown-keys (/tmp/tmp-3913-FagPCvy93sMy)
162
159
 
163
160
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
164
161
   Fixed! package.json: Incorrect order of fields in package.json
165
162
 
166
163
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
167
- package (/tmp/tmp-3669-dLyWUCf1VzC7)
164
+ package (/tmp/tmp-3913-RkpiJn6dYJDi)
168
165
 
169
166
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
170
167
   Fixed! package.json: Incorrect order of fields in package.json
171
168
 
172
169
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
173
- package (/tmp/tmp-3669-Xvk74p2anK1A)
170
+ package (/tmp/tmp-3913-arHUhBjav15Z)
174
171
 
175
172
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
176
173
   Fixed! package.json: Incorrect order of fields in package.json
177
174
 
178
175
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
179
- package-unknown-keys (/tmp/tmp-3669-4ZG0sAHf1Apw)
176
+ package-unknown-keys (/tmp/tmp-3913-i0Dm6K9wjOLa)
180
177
 
181
178
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
182
179
   Fixed! package.json: Incorrect order of fields in package.json
183
180
 
184
181
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
185
- package (/tmp/tmp-3669-Lc9Dfwsj046q)
182
+ package (/tmp/tmp-3913-3uD2MrVkVYZi)
186
183
 
187
184
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
188
185
   Fixed! package.json: Incorrect order of fields in package.json
189
186
 
190
- ✓ src/__tests__/packageOrder.spec.ts (8 tests) 81ms
187
+ ✓ src/__tests__/packageOrder.spec.ts (8 tests) 48ms
191
188
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
192
- rootProject (/tmp/tmp-3736-44PXDs230Q2V)
189
+ rootProject (/tmp/tmp-3993-SCUoKZNHspdt)
193
190
 
194
191
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
195
192
   Fixed! foo.txt: Expect file contents to match
196
193
 
197
194
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
198
- rootProject (/tmp/tmp-3736-X0LP3Ifa2Trw)
195
+ rootProject (/tmp/tmp-3993-sdEayBn1PfgZ)
199
196
 
200
197
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
201
198
   Fixed! foo.txt: Expect file contents to match
202
199
 
203
200
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
204
- rootProject (/tmp/tmp-3736-ovz6ss9Eo1yW)
201
+ rootProject (/tmp/tmp-3993-szgm6fGFN1qK)
205
202
 
206
203
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
207
204
   Fixed! nested/foo.txt: Expect file contents to match
208
205
 
206
+ stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
207
+ foo-lib (/tmp/tmp-4001-0B6vGMdAPusb)
208
+
209
+ stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
210
+  Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
211
+
209
212
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
210
- rootProject (/tmp/tmp-3736-RpRGRTQ8PEdu)
213
+ rootProject (/tmp/tmp-3993-VMgE1qggYckt)
211
214
 
212
215
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
213
216
   Fixed! foo.txt: Expect file contents to match
214
217
 
215
218
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
216
- rootProject (/tmp/tmp-3736-Rb9tQjhLzHvL)
219
+ rootProject (/tmp/tmp-3993-RwDsrgbhky0L)
217
220
 
218
221
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
219
222
   Fixed! foo.txt: Expect file contents to match
220
223
 
221
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
222
- rootProject (/tmp/tmp-3736-t7CLIs2O5wwV)
223
-
224
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
225
-  Fixed! nested/foo.txt: Expect file contents to match
226
-
227
- stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
228
- foo-lib (/tmp/tmp-3743-NDU169smYJO6)
229
-
230
- stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
231
-  Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
232
-
233
224
  stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
234
- foo-lib (/tmp/tmp-3743-R3MU75ssh3Qq)
225
+ foo-lib (/tmp/tmp-4001-j0xaYRtK738Y)
235
226
 
236
227
  stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
237
228
   Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
238
229
 
239
- ✓ src/__tests__/fileContents.spec.ts (6 tests) 21ms
240
- ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 21ms
230
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
231
+ rootProject (/tmp/tmp-3993-GngxMlqd2vZ4)
232
+
233
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
234
+  Fixed! nested/foo.txt: Expect file contents to match
235
+
236
+ ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 28ms
237
+ ✓ src/__tests__/fileContents.spec.ts (6 tests) 32ms
241
238
 
242
239
   Test Files  11 passed (11)
243
240
   Tests  118 passed (118)
244
-  Start at  17:39:07
245
-  Duration  4.01s (transform 945ms, setup 0ms, collect 4.63s, tests 552ms, environment 10ms, prepare 1.56s)
241
+  Start at  21:00:03
242
+  Duration  4.68s (transform 1.24s, setup 0ms, collect 5.49s, tests 572ms, environment 3ms, prepare 1.93s)
246
243
 
247
244
   % Coverage report from v8
248
245
  -------------------|---------|----------|---------|---------|-------------------
249
246
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
250
247
  -------------------|---------|----------|---------|---------|-------------------
251
- All files | 94.5 | 87.95 | 93.22 | 94.5 |
252
- src | 94.71 | 88.74 | 91.66 | 94.71 |
248
+ All files | 94.62 | 87.95 | 93.22 | 94.62 |
249
+ src | 94.84 | 88.74 | 91.66 | 94.84 |
253
250
  ...pendencies.ts | 100 | 100 | 100 | 100 |
254
251
  ...calScripts.ts | 100 | 100 | 50 | 100 |
255
- ...pendencies.ts | 97.05 | 76.66 | 83.33 | 97.05 | 64,66,119-120
256
- ...pendencies.ts | 97.46 | 94.11 | 100 | 97.46 | 99-100
257
- ...ntVersions.ts | 94.96 | 90.9 | 100 | 94.96 | 60-63,125-128
252
+ ...pendencies.ts | 97.03 | 76.66 | 83.33 | 97.03 | 64,66,118-119
253
+ ...pendencies.ts | 97.4 | 94.11 | 100 | 97.4 | 97-98
254
+ ...ntVersions.ts | 94.8 | 90.9 | 100 | 94.8 | 60-63,122-125
258
255
  fileContents.ts | 83.72 | 38.46 | 100 | 83.72 | ...,87-92,105-107
259
- index.ts | 0 | 0 | 0 | 0 | 1-22
260
- ...pendencies.ts | 94.39 | 90.44 | 100 | 94.39 | ...03-604,674-675
261
- ...Workspaces.ts | 98 | 91.66 | 100 | 98 | 30
256
+ forceError.ts | 100 | 100 | 100 | 100 |
257
+ index.ts | 0 | 0 | 0 | 0 | 1-24
258
+ ...pendencies.ts | 94.25 | 90.44 | 100 | 94.25 | ...96-597,661-662
259
+ ...Workspaces.ts | 97.82 | 91.66 | 100 | 97.82 | 30
260
+ ...PerPackage.ts | 100 | 100 | 100 | 100 |
262
261
  packageEntry.ts | 100 | 100 | 100 | 100 |
263
262
  packageOrder.ts | 99 | 95.45 | 100 | 99 | 61
264
263
  packageScript.ts | 100 | 100 | 100 | 100 |
265
- ...Dependency.ts | 87.83 | 100 | 66.66 | 87.83 | 45-53
264
+ ...Dependency.ts | 90.27 | 100 | 66.66 | 90.27 | 45-51
266
265
  ...rdTsconfig.ts | 100 | 100 | 100 | 100 |
267
- src/util | 92.3 | 80 | 100 | 92.3 |
266
+ src/util | 92.25 | 80 | 100 | 92.25 |
268
267
  checkAlpha.ts | 95.55 | 90 | 100 | 95.55 | 21-22
269
268
  ...uleFactory.ts | 100 | 100 | 100 | 100 |
270
269
  makeDirectory.ts | 100 | 100 | 100 | 100 |
271
- ...aphService.ts | 87.17 | 61.53 | 100 | 87.17 | ...20-121,125-126
270
+ ...aphService.ts | 87.01 | 61.53 | 100 | 87.01 | ...18-119,123-124
272
271
  -------------------|---------|----------|---------|---------|-------------------
273
272
  [?25h
@@ -1,5 +1,5 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.3 transpile-typescript /home/runner/work/monorepolint/monorepolint/packages/rules
2
+ > @monorepolint/rules@0.6.0-alpha.4 transpile-typescript /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > tsup --config ../../tsup.config.cjs
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,6 +9,6 @@
9
9
  CLI Target: node16
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM build/js/index.js 52.39 KB
13
- ESM build/js/index.js.map 106.03 KB
14
- ESM ⚡️ Build success in 95ms
12
+ ESM build/js/index.js 53.89 KB
13
+ ESM build/js/index.js.map 108.65 KB
14
+ ESM ⚡️ Build success in 73ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @monorepolint/rules
2
2
 
3
+ ## 0.6.0-alpha.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 50b64ed: Introduces a new rule: forceError
8
+ - 3883483: Introduces new rule: oncePerPackage
9
+ - @monorepolint/config@0.6.0-alpha.4
10
+ - @monorepolint/core@0.6.0-alpha.4
11
+ - @monorepolint/utils@0.6.0-alpha.4
12
+
3
13
  ## 0.6.0-alpha.3
4
14
 
5
15
  ### Patch Changes