@monorepolint/rules 0.6.0-alpha.2 → 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 (85) 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 +161 -102
  5. package/.turbo/turbo-transpile-typescript.log +4 -4
  6. package/CHANGELOG.md +19 -0
  7. package/build/js/index.js +429 -241
  8. package/build/js/index.js.map +1 -1
  9. package/build/tsconfig.tsbuildinfo +1 -1
  10. package/build/types/__tests__/utils.d.ts +0 -1
  11. package/build/types/__tests__/utils.d.ts.map +1 -1
  12. package/build/types/bannedDependencies.d.ts.map +1 -1
  13. package/build/types/fileContents.d.ts.map +1 -1
  14. package/build/types/forceError.d.ts +4 -0
  15. package/build/types/forceError.d.ts.map +1 -0
  16. package/build/types/index.d.ts +5 -3
  17. package/build/types/index.d.ts.map +1 -1
  18. package/build/types/mustSatisfyPeerDependencies.d.ts.map +1 -1
  19. package/build/types/nestedWorkspaces.d.ts.map +1 -1
  20. package/build/types/oncePerPackage.d.ts +11 -0
  21. package/build/types/oncePerPackage.d.ts.map +1 -0
  22. package/build/types/packageEntry.d.ts.map +1 -1
  23. package/build/types/packageOrder.d.ts.map +1 -1
  24. package/build/types/packageScript.d.ts.map +1 -1
  25. package/build/types/requireDependency.d.ts +12 -12
  26. package/build/types/requireDependency.d.ts.map +1 -1
  27. package/build/types/util/checkAlpha.d.ts.map +1 -1
  28. package/build/types/util/createRuleFactory.d.ts.map +1 -1
  29. package/build/types/util/packageDependencyGraphService.d.ts.map +1 -1
  30. package/coverage/clover.xml +1201 -813
  31. package/coverage/coverage-final.json +20 -18
  32. package/coverage/index.html +20 -20
  33. package/coverage/src/alphabeticalDependencies.ts.html +11 -11
  34. package/coverage/src/alphabeticalScripts.ts.html +5 -5
  35. package/coverage/src/bannedDependencies.ts.html +76 -28
  36. package/coverage/src/consistentDependencies.ts.html +51 -18
  37. package/coverage/src/consistentVersions.ts.html +144 -48
  38. package/coverage/src/fileContents.ts.html +47 -23
  39. package/coverage/src/forceError.ts.html +184 -0
  40. package/coverage/src/index.html +96 -66
  41. package/coverage/src/index.ts.html +39 -33
  42. package/coverage/src/mustSatisfyPeerDependencies.ts.html +323 -80
  43. package/coverage/src/nestedWorkspaces.ts.html +47 -20
  44. package/coverage/src/oncePerPackage.ts.html +181 -0
  45. package/coverage/src/packageEntry.ts.html +40 -19
  46. package/coverage/src/packageOrder.ts.html +30 -12
  47. package/coverage/src/packageScript.ts.html +81 -27
  48. package/coverage/src/requireDependency.ts.html +77 -32
  49. package/coverage/src/standardTsconfig.ts.html +84 -21
  50. package/coverage/src/util/checkAlpha.ts.html +18 -9
  51. package/coverage/src/util/createRuleFactory.ts.html +16 -4
  52. package/coverage/src/util/index.html +17 -17
  53. package/coverage/src/util/makeDirectory.ts.html +5 -5
  54. package/coverage/src/util/packageDependencyGraphService.ts.html +94 -19
  55. package/package.json +4 -5
  56. package/src/__tests__/alphabeticalScripts.spec.ts +12 -4
  57. package/src/__tests__/bannedDependencies.spec.ts +45 -16
  58. package/src/__tests__/consistentDependencies.spec.ts +11 -5
  59. package/src/__tests__/consistentVersions.spec.ts +72 -18
  60. package/src/__tests__/fileContents.spec.ts +5 -5
  61. package/src/__tests__/mustSatisfyPeerDependencies.spec.ts +191 -76
  62. package/src/__tests__/nestedWorkspaces.spec.ts +10 -7
  63. package/src/__tests__/packageEntry.spec.ts +48 -47
  64. package/src/__tests__/packageOrder.spec.ts +72 -71
  65. package/src/__tests__/packageScript.spec.ts +19 -10
  66. package/src/__tests__/requireDependency.spec.ts +12 -6
  67. package/src/__tests__/utils.ts +16 -7
  68. package/src/bannedDependencies.ts +32 -16
  69. package/src/consistentDependencies.ts +19 -8
  70. package/src/consistentVersions.ts +70 -38
  71. package/src/fileContents.ts +19 -11
  72. package/src/forceError.ts +33 -0
  73. package/src/index.ts +5 -3
  74. package/src/mustSatisfyPeerDependencies.ts +141 -60
  75. package/src/nestedWorkspaces.ts +19 -10
  76. package/src/oncePerPackage.ts +32 -0
  77. package/src/packageEntry.ts +18 -11
  78. package/src/packageOrder.ts +9 -3
  79. package/src/packageScript.ts +37 -19
  80. package/src/requireDependency.ts +26 -11
  81. package/src/standardTsconfig.ts +31 -10
  82. package/src/util/checkAlpha.ts +5 -2
  83. package/src/util/createRuleFactory.ts +6 -2
  84. package/src/util/packageDependencyGraphService.ts +38 -13
  85. package/vitest.config.mjs +6 -7
@@ -1,4 +1,4 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.2 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.2 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.2 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,213 +1,272 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.2 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
-
6
-  RUN  v2.1.8 /home/runner/work/monorepolint/monorepolint/packages/rules
5
+ [?25l
6
+  RUN  v3.0.3 /home/runner/work/monorepolint/monorepolint/packages/rules
7
7
  Coverage enabled with v8
8
8
 
9
9
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
10
- package-without-scripts (/tmp/tmp-3328-oNpxO4Tm0Ako)
10
+ package-without-scripts (/tmp/tmp-3686-2u1x92UAft5H)
11
11
 
12
12
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
13
- stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
14
- package-without-scripts (/tmp/tmp-3328-BbM4f6d0Ip4H)
15
13
   Error! package.json: No scripts block in package.json
16
- Fixed! package.json: No scripts block in package.json
14
+
15
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
16
+ package-without-scripts (/tmp/tmp-3686-pmlX4pfMUX5M)
17
+
18
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
19
+  Fixed! package.json: No scripts block in package.json
17
20
 
18
21
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
19
- package-with-scripts (/tmp/tmp-3328-y7C9e3HsYPGc)
22
+ package-with-scripts (/tmp/tmp-3686-YyWuYMhV0bqb)
20
23
 
21
- Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
24
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
25
+  Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
22
26
 
23
- 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
24
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
25
- package-with-scripts (/tmp/tmp-3328-l6Nt5HfgcCgK)
28
+ package-with-scripts (/tmp/tmp-3686-Gke653lsZEN9)
29
+
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
26
31
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
27
32
 
33
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
34
+ package-with-scripts (/tmp/tmp-3686-ZgeQCpTyDc7s)
28
35
 
29
36
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > uses the fixValue for fixing if provided
30
- package-with-scripts (/tmp/tmp-3328-CmF9wibNfmkm)
31
- Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
37
+  Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
38
+
39
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
40
+ package-with-scripts (/tmp/tmp-3686-aLYG4sPyWFtE)
32
41
 
33
42
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
34
- package-with-scripts (/tmp/tmp-3328-Rw4oPooOdsic)
35
- Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
43
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
44
+
45
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
46
+ package-with-scripts (/tmp/tmp-3686-7nKnDSsDfl1R)
36
47
 
37
48
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
38
- package-with-scripts (/tmp/tmp-3328-JjaShxUZx7qd)
39
- Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
49
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
40
50
 
41
51
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
42
- package-without-scripts (/tmp/tmp-3328-Qa0kQi1JeZD0)
52
+ package-without-scripts (/tmp/tmp-3686-RdPdmvf7Sm7n)
43
53
 
44
54
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
45
55
   Error! package.json: No scripts block in package.json
46
56
 
47
57
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
48
- package-without-scripts (/tmp/tmp-3328-vc68V6j749Br)
49
- Fixed! package.json: No scripts block in package.json
58
+ package-without-scripts (/tmp/tmp-3686-0ahnbvUrI0Gn)
59
+
60
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
61
+  Fixed! package.json: No scripts block in package.json
62
+
63
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
64
+ package-with-scripts (/tmp/tmp-3686-OIbRRNGe718z)
50
65
 
51
66
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
52
- package-with-scripts (/tmp/tmp-3328-CMyEypeEndag)
53
- Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
67
+  Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
54
68
 
55
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
56
- package-with-scripts (/tmp/tmp-3328-RpMnI3K1EjsS)
70
+ package-with-scripts (/tmp/tmp-3686-GUT2xJ7zi82Q)
57
71
 
58
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
59
73
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
60
74
 
61
75
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
62
- package-with-scripts (/tmp/tmp-3328-8WIVsvCvRW7K)
63
- Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
76
+ package-with-scripts (/tmp/tmp-3686-xYaxlRAdyOVC)
77
+
78
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
79
+  Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
64
80
 
65
81
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
66
- package-with-scripts (/tmp/tmp-3328-FzzPnXgwhLtR)
67
- Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
82
+ package-with-scripts (/tmp/tmp-3686-x9RovLymRe6C)
83
+
84
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
85
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
86
+
87
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
88
+ package-with-scripts (/tmp/tmp-3686-PO4byOWlKMQA)
68
89
 
69
90
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
70
- package-with-scripts (/tmp/tmp-3328-B5vf4O70CCNv)
71
- Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
91
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
72
92
 
73
- ✓ src/__tests__/consistentVersions.spec.ts (8 tests) 24ms
74
- ✓ src/__tests__/packageScript.spec.ts (16 tests) 50ms
75
- ✓ src/__tests__/mustSatisfyPeerDependencies.spec.ts (50 tests) 111ms
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
76
96
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
77
- stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
78
- package (/tmp/tmp-3415-Gd0q8WrXnaVc)
79
- Fixed! package.json: Expected standardized entry for 'license'
80
-  Error! package.json: Expected entry for 'bugs' to exist
97
+ package (/tmp/tmp-3769-Kx1hyBps5gy0)
81
98
 
99
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
100
+  Fixed! package.json: Expected standardized entry for 'license'
82
101
 
83
- stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
84
102
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
85
- package (/tmp/tmp-3415-NevfYnByOQCa)
86
-  Error! package.json: Expected entry for 'bugs' to exist
87
- Fixed! package.json: Expected standardized entry for 'repository'
103
+ package (/tmp/tmp-3769-UQzL2n7QXIdM)
88
104
 
105
+ ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 37ms
106
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
107
+  Fixed! package.json: Expected standardized entry for 'repository'
89
108
 
90
109
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
91
- package (/tmp/tmp-3415-lmwUN9ZDx0ys)
110
+ package (/tmp/tmp-3769-gBt4Wp7LWAJA)
111
+
112
+ stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
113
+  Error! package.json: Expected entry for 'bugs' to exist
92
114
 
93
115
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
94
- package (/tmp/tmp-3415-T6Z48R3B5hzT)
116
+ package (/tmp/tmp-3769-OJrqRW8mOgR8)
95
117
  Fixed! package.json: Expected standardized entry for 'repository'
96
118
 
119
+ stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
120
+  Error! package.json: Expected entry for 'bugs' to exist
121
+
97
122
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
98
- package (/tmp/tmp-3415-LzfA2VpbZOC4)
99
- Fixed! package.json: Expected standardized entry for 'license'
123
+ package (/tmp/tmp-3769-JhAClr7sLewt)
124
+
125
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
126
+  Fixed! package.json: Expected standardized entry for 'license'
100
127
 
101
128
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
102
- package (/tmp/tmp-3415-0wqJSMidfsHQ)
103
- Fixed! package.json: Expected standardized entry for 'repository'
129
+ package (/tmp/tmp-3769-tiF1xL0OU3Ix)
130
+
131
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
132
+  Fixed! package.json: Expected standardized entry for 'repository'
104
133
 
105
134
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
106
- package (/tmp/tmp-3415-1VnXV61kUdJU)
135
+ package (/tmp/tmp-3769-UwMv60giOsmU)
107
136
 
108
137
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
109
138
   Error! package.json: Expected entry for 'bugs' to exist
110
139
 
111
- ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 29ms
112
140
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
113
- package (/tmp/tmp-3415-L6kuL9FyEjXF)
141
+ package (/tmp/tmp-3769-UMUy0NXuKhqQ)
114
142
  Fixed! package.json: Expected standardized entry for 'repository'
115
143
 
116
144
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
117
145
   Error! package.json: Expected entry for 'bugs' to exist
118
146
 
119
- ✓ src/__tests__/packageEntry.spec.ts (10 tests) 38ms
120
- ✓ src/__tests__/nestedWorkspaces.spec.ts (6 tests) 52ms
121
- ✓ src/__tests__/requireDependency.spec.ts (2 tests) 22ms
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
122
151
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
123
- package (/tmp/tmp-3506-DUWHI36Q4VIV)
124
- Fixed! package.json: Incorrect order of fields in package.json
152
+ package (/tmp/tmp-3913-TNihQWGn0hpa)
153
+
154
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
155
+  Fixed! package.json: Incorrect order of fields in package.json
125
156
 
126
157
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
127
- package-unknown-keys (/tmp/tmp-3506-xEG1D7J1BOSa)
128
- Fixed! package.json: Incorrect order of fields in package.json
158
+ package-unknown-keys (/tmp/tmp-3913-FagPCvy93sMy)
159
+
160
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
161
+  Fixed! package.json: Incorrect order of fields in package.json
129
162
 
130
163
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
131
- package (/tmp/tmp-3506-JIOK2L5Q8RhC)
132
- Fixed! package.json: Incorrect order of fields in package.json
164
+ package (/tmp/tmp-3913-RkpiJn6dYJDi)
165
+
166
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
167
+  Fixed! package.json: Incorrect order of fields in package.json
168
+
169
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
170
+ package (/tmp/tmp-3913-arHUhBjav15Z)
133
171
 
134
172
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
135
- package (/tmp/tmp-3506-ET387EnSeRoY)
136
- Fixed! package.json: Incorrect order of fields in package.json
173
+  Fixed! package.json: Incorrect order of fields in package.json
174
+
175
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
176
+ package-unknown-keys (/tmp/tmp-3913-i0Dm6K9wjOLa)
137
177
 
138
178
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
139
- package-unknown-keys (/tmp/tmp-3506-C5F22J5HzjMa)
140
- Fixed! package.json: Incorrect order of fields in package.json
179
+  Fixed! package.json: Incorrect order of fields in package.json
141
180
 
142
181
  stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
143
- package (/tmp/tmp-3506-clbof2qkbEY6)
144
- Fixed! package.json: Incorrect order of fields in package.json
182
+ package (/tmp/tmp-3913-3uD2MrVkVYZi)
183
+
184
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
185
+  Fixed! package.json: Incorrect order of fields in package.json
186
+
187
+ ✓ src/__tests__/packageOrder.spec.ts (8 tests) 48ms
188
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
189
+ rootProject (/tmp/tmp-3993-SCUoKZNHspdt)
145
190
 
146
- ✓ src/__tests__/packageOrder.spec.ts (8 tests) 51ms
147
- ✓ src/__tests__/consistentDependencies.spec.ts (3 tests) 28ms
148
191
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
149
- rootProject (/tmp/tmp-3586-sQ0A865SkY3Z)
150
- Fixed! foo.txt: Expect file contents to match
192
+  Fixed! foo.txt: Expect file contents to match
151
193
 
152
194
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
153
- rootProject (/tmp/tmp-3586-g0Q4hbzJ0y05)
154
- Fixed! foo.txt: Expect file contents to match
195
+ rootProject (/tmp/tmp-3993-sdEayBn1PfgZ)
196
+
197
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
198
+  Fixed! foo.txt: Expect file contents to match
155
199
 
156
200
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
157
- rootProject (/tmp/tmp-3586-5HfcGdSX3mly)
158
- Fixed! nested/foo.txt: Expect file contents to match
201
+ rootProject (/tmp/tmp-3993-szgm6fGFN1qK)
202
+
203
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
204
+  Fixed! nested/foo.txt: Expect file contents to match
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
+
212
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
213
+ rootProject (/tmp/tmp-3993-VMgE1qggYckt)
159
214
 
160
215
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
161
- rootProject (/tmp/tmp-3586-9aamb4bCzHF0)
162
- Fixed! foo.txt: Expect file contents to match
216
+  Fixed! foo.txt: Expect file contents to match
163
217
 
164
218
  stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
165
- rootProject (/tmp/tmp-3586-wkNVpJdkKo4D)
166
- Fixed! foo.txt: Expect file contents to match
219
+ rootProject (/tmp/tmp-3993-RwDsrgbhky0L)
167
220
 
168
- stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
169
- rootProject (/tmp/tmp-3586-7c3LsBROXSDe)
170
- Fixed! nested/foo.txt: Expect file contents to match
221
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
222
+  Fixed! foo.txt: Expect file contents to match
171
223
 
172
- ✓ src/__tests__/fileContents.spec.ts (6 tests) 27ms
173
- stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('SimpleHost') > fix: true > fixes unsorted scripts
174
- foo-lib (/tmp/tmp-3597-UAcxOfIeYtMC)
175
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
224
+ stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
225
+ foo-lib (/tmp/tmp-4001-j0xaYRtK738Y)
176
226
 
177
227
  stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
178
- foo-lib (/tmp/tmp-3597-2j5zs8qv9zfF)
179
- Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
228
+  Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
229
+
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
180
235
 
181
- ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 19ms
236
+ ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 28ms
237
+ ✓ src/__tests__/fileContents.spec.ts (6 tests) 32ms
182
238
 
183
239
   Test Files  11 passed (11)
184
240
   Tests  118 passed (118)
185
-  Start at  16:18:37
186
-  Duration  3.57s (transform 932ms, setup 0ms, collect 4.21s, tests 451ms, environment 9ms, prepare 1.47s)
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)
187
243
 
188
244
   % Coverage report from v8
189
245
  -------------------|---------|----------|---------|---------|-------------------
190
246
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
191
247
  -------------------|---------|----------|---------|---------|-------------------
192
- All files | 95.54 | 87.8 | 93.22 | 95.54 |
193
- src | 95.83 | 88.59 | 91.66 | 95.83 |
248
+ All files | 94.62 | 87.95 | 93.22 | 94.62 |
249
+ src | 94.84 | 88.74 | 91.66 | 94.84 |
194
250
  ...pendencies.ts | 100 | 100 | 100 | 100 |
195
251
  ...calScripts.ts | 100 | 100 | 50 | 100 |
196
- ...pendencies.ts | 98.24 | 76.66 | 83.33 | 98.24 | 112-113
197
- ...pendencies.ts | 96.82 | 94.11 | 100 | 96.82 | 86-87
198
- ...ntVersions.ts | 93.22 | 90.9 | 100 | 93.22 | 47-50,100-103
199
- fileContents.ts | 86.48 | 38.46 | 100 | 86.48 | 59,79-84,97-99
200
- index.ts | 0 | 0 | 0 | 0 | 1
201
- ...pendencies.ts | 94.66 | 90.44 | 100 | 94.66 | ...27-528,582-583
202
- ...Workspaces.ts | 96.96 | 91.66 | 100 | 96.96 | 27
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
255
+ fileContents.ts | 83.72 | 38.46 | 100 | 83.72 | ...,87-92,105-107
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 |
203
261
  packageEntry.ts | 100 | 100 | 100 | 100 |
204
- packageOrder.ts | 100 | 95.45 | 100 | 100 | 60
262
+ packageOrder.ts | 99 | 95.45 | 100 | 99 | 61
205
263
  packageScript.ts | 100 | 100 | 100 | 100 |
206
- ...Dependency.ts | 90.56 | 100 | 66.66 | 90.56 | 44-48
264
+ ...Dependency.ts | 90.27 | 100 | 66.66 | 90.27 | 45-51
207
265
  ...rdTsconfig.ts | 100 | 100 | 100 | 100 |
208
- src/util | 92.53 | 80 | 100 | 92.53 |
209
- checkAlpha.ts | 95.12 | 90 | 100 | 95.12 | 21-22
266
+ src/util | 92.25 | 80 | 100 | 92.25 |
267
+ checkAlpha.ts | 95.55 | 90 | 100 | 95.55 | 21-22
210
268
  ...uleFactory.ts | 100 | 100 | 100 | 100 |
211
269
  makeDirectory.ts | 100 | 100 | 100 | 100 |
212
- ...aphService.ts | 87.09 | 61.53 | 100 | 87.09 | ...68,93-94,98-99
270
+ ...aphService.ts | 87.01 | 61.53 | 100 | 87.01 | ...18-119,123-124
213
271
  -------------------|---------|----------|---------|---------|-------------------
272
+ [?25h
@@ -1,5 +1,5 @@
1
1
 
2
- > @monorepolint/rules@0.6.0-alpha.2 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 50.83 KB
13
- ESM build/js/index.js.map 102.29 KB
14
- ESM ⚡️ Build success in 82ms
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,24 @@
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
+
13
+ ## 0.6.0-alpha.3
14
+
15
+ ### Patch Changes
16
+
17
+ - 6a63a44: Feature: requireDependency now allows undefined for versions to remove the entry
18
+ - @monorepolint/config@0.6.0-alpha.3
19
+ - @monorepolint/core@0.6.0-alpha.3
20
+ - @monorepolint/utils@0.6.0-alpha.3
21
+
3
22
  ## 0.6.0-alpha.2
4
23
 
5
24
  ### Patch Changes