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

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 (77) 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 +160 -100
  5. package/.turbo/turbo-transpile-typescript.log +4 -4
  6. package/CHANGELOG.md +9 -0
  7. package/build/js/index.js +399 -246
  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/index.d.ts +3 -3
  15. package/build/types/index.d.ts.map +1 -1
  16. package/build/types/mustSatisfyPeerDependencies.d.ts.map +1 -1
  17. package/build/types/nestedWorkspaces.d.ts.map +1 -1
  18. package/build/types/packageEntry.d.ts.map +1 -1
  19. package/build/types/packageOrder.d.ts.map +1 -1
  20. package/build/types/packageScript.d.ts.map +1 -1
  21. package/build/types/requireDependency.d.ts +12 -12
  22. package/build/types/requireDependency.d.ts.map +1 -1
  23. package/build/types/util/checkAlpha.d.ts.map +1 -1
  24. package/build/types/util/createRuleFactory.d.ts.map +1 -1
  25. package/build/types/util/packageDependencyGraphService.d.ts.map +1 -1
  26. package/coverage/clover.xml +1159 -818
  27. package/coverage/coverage-final.json +18 -18
  28. package/coverage/index.html +20 -20
  29. package/coverage/src/alphabeticalDependencies.ts.html +8 -8
  30. package/coverage/src/alphabeticalScripts.ts.html +5 -5
  31. package/coverage/src/bannedDependencies.ts.html +77 -26
  32. package/coverage/src/consistentDependencies.ts.html +58 -19
  33. package/coverage/src/consistentVersions.ts.html +169 -58
  34. package/coverage/src/fileContents.ts.html +47 -23
  35. package/coverage/src/index.html +67 -67
  36. package/coverage/src/index.ts.html +32 -32
  37. package/coverage/src/mustSatisfyPeerDependencies.ts.html +373 -85
  38. package/coverage/src/nestedWorkspaces.ts.html +59 -20
  39. package/coverage/src/packageEntry.ts.html +40 -19
  40. package/coverage/src/packageOrder.ts.html +30 -12
  41. package/coverage/src/packageScript.ts.html +81 -27
  42. package/coverage/src/requireDependency.ts.html +83 -32
  43. package/coverage/src/standardTsconfig.ts.html +81 -18
  44. package/coverage/src/util/checkAlpha.ts.html +18 -9
  45. package/coverage/src/util/createRuleFactory.ts.html +16 -4
  46. package/coverage/src/util/index.html +17 -17
  47. package/coverage/src/util/makeDirectory.ts.html +5 -5
  48. package/coverage/src/util/packageDependencyGraphService.ts.html +101 -20
  49. package/package.json +4 -5
  50. package/src/__tests__/alphabeticalScripts.spec.ts +12 -4
  51. package/src/__tests__/bannedDependencies.spec.ts +45 -16
  52. package/src/__tests__/consistentDependencies.spec.ts +11 -5
  53. package/src/__tests__/consistentVersions.spec.ts +72 -18
  54. package/src/__tests__/fileContents.spec.ts +9 -5
  55. package/src/__tests__/mustSatisfyPeerDependencies.spec.ts +191 -76
  56. package/src/__tests__/nestedWorkspaces.spec.ts +10 -6
  57. package/src/__tests__/packageEntry.spec.ts +54 -48
  58. package/src/__tests__/packageOrder.spec.ts +77 -71
  59. package/src/__tests__/packageScript.spec.ts +25 -11
  60. package/src/__tests__/requireDependency.spec.ts +12 -6
  61. package/src/__tests__/utils.ts +16 -7
  62. package/src/bannedDependencies.ts +32 -15
  63. package/src/consistentDependencies.ts +22 -9
  64. package/src/consistentVersions.ts +84 -47
  65. package/src/fileContents.ts +19 -11
  66. package/src/index.ts +3 -3
  67. package/src/mustSatisfyPeerDependencies.ts +162 -66
  68. package/src/nestedWorkspaces.ts +23 -10
  69. package/src/packageEntry.ts +18 -11
  70. package/src/packageOrder.ts +9 -3
  71. package/src/packageScript.ts +37 -19
  72. package/src/requireDependency.ts +28 -11
  73. package/src/standardTsconfig.ts +31 -10
  74. package/src/util/checkAlpha.ts +5 -2
  75. package/src/util/createRuleFactory.ts +6 -2
  76. package/src/util/packageDependencyGraphService.ts +41 -14
  77. package/vitest.config.mjs +10 -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.3 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.3 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.3 lint /home/runner/work/monorepolint/monorepolint/packages/rules
3
3
  > eslint .
4
4
 
@@ -1,213 +1,273 @@
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.3 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
+ 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
+ [?25l
9
+  RUN  v3.0.3 /home/runner/work/monorepolint/monorepolint/packages/rules
7
10
  Coverage enabled with v8
8
11
 
9
12
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: false > handles an empty script section
10
- package-without-scripts (/tmp/tmp-3328-oNpxO4Tm0Ako)
13
+ package-without-scripts (/tmp/tmp-3474-4GkxWf6jLg8S)
11
14
 
12
15
  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
16
   Error! package.json: No scripts block in package.json
16
- Fixed! package.json: No scripts block in package.json
17
+
18
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
19
+ package-without-scripts (/tmp/tmp-3474-HNBhYf3z8xu3)
20
+
21
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > fixes an empty script section
22
+  Fixed! package.json: No scripts block in package.json
17
23
 
18
24
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
19
- package-with-scripts (/tmp/tmp-3328-y7C9e3HsYPGc)
25
+ package-with-scripts (/tmp/tmp-3474-sU5tptS7fBEd)
20
26
 
21
- Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
27
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > adds a script
28
+  Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
22
29
 
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
30
  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)
31
+ package-with-scripts (/tmp/tmp-3474-9Gmq56hangOn)
32
+
33
+ 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
34
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
27
35
 
36
+ 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)
28
38
 
29
39
  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'
40
+  Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
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
+ package-with-scripts (/tmp/tmp-3474-gV3gKAYe23Tt)
44
+
45
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can fix to empty
46
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
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
+ package-with-scripts (/tmp/tmp-3474-eI5sQjqlde3E)
50
+
51
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('SimpleHost') > fix: true > can allow only empty
52
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
40
53
 
41
54
  stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
42
- package-without-scripts (/tmp/tmp-3328-Qa0kQi1JeZD0)
55
+ package-without-scripts (/tmp/tmp-3474-RdTwcurD1HvL)
43
56
 
44
57
  stderr | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: false > handles an empty script section
45
58
   Error! package.json: No scripts block in package.json
46
59
 
47
60
  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
61
+ package-without-scripts (/tmp/tmp-3474-3c7PGtDVNyjT)
62
+
63
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > fixes an empty script section
64
+  Fixed! package.json: No scripts block in package.json
65
+
66
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > adds a script
67
+ package-with-scripts (/tmp/tmp-3474-1C48BKE9z7R1)
50
68
 
51
69
  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'
70
+  Fixed! package.json: Expected standardized script entry for 'missing'. Valid options: 'missing value'
54
71
 
55
72
  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)
73
+ package-with-scripts (/tmp/tmp-3474-ycbEy1i97QjP)
57
74
 
58
75
  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
76
   Error! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
60
77
 
61
78
  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'
79
+ package-with-scripts (/tmp/tmp-3474-Rvdm4PRsnEU2)
80
+
81
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > uses the fixValue for fixing if provided
82
+  Fixed! package.json: Expected standardized script entry for 'foo'. Valid options: 'a', 'b'
83
+
84
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can fix to empty
85
+ package-with-scripts (/tmp/tmp-3474-XCgcbtgsfkVk)
64
86
 
65
87
  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)
88
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: 'a', (empty)
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
+ package-with-scripts (/tmp/tmp-3474-5M03y5fy51ml)
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
+ stdout | src/__tests__/packageScript.spec.ts > expectPackageScript ('CachingHost') > fix: true > can allow only empty
94
+  Fixed! package.json: Expected standardized script entry for 'exists'. Valid options: (empty)
95
+
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
76
99
  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
100
+ package (/tmp/tmp-3561-SbWOG4bQUCEo)
81
101
 
102
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing entries
103
+  Fixed! package.json: Expected standardized entry for 'license'
82
104
 
83
- stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
84
105
  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'
106
+ package (/tmp/tmp-3561-5nnxcC366RTS)
88
107
 
108
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > fixes missing nested entries
109
+  Fixed! package.json: Expected standardized entry for 'repository'
89
110
 
90
111
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
91
- package (/tmp/tmp-3415-lmwUN9ZDx0ys)
112
+ package (/tmp/tmp-3561-C7bpTOF2sCTB)
113
+
114
+ stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > errors for keys that are missing
115
+  Error! package.json: Expected entry for 'bugs' to exist
92
116
 
93
117
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
94
- package (/tmp/tmp-3415-T6Z48R3B5hzT)
118
+ package (/tmp/tmp-3561-hw5UShwSASA5)
95
119
  Fixed! package.json: Expected standardized entry for 'repository'
96
120
 
121
+ stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('SimpleHost') > fix: true > handles both entries and entriesExist
122
+  Error! package.json: Expected entry for 'bugs' to exist
123
+
97
124
  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'
125
+ package (/tmp/tmp-3561-CVTkj3J5I9UI)
126
+
127
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing entries
128
+  Fixed! package.json: Expected standardized entry for 'license'
100
129
 
101
130
  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'
131
+ package (/tmp/tmp-3561-M8PtG1R9hHsC)
104
132
 
133
+ stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > fixes missing nested entries
134
+  Fixed! package.json: Expected standardized entry for 'repository'
135
+
136
+ ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 27ms
105
137
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
106
- package (/tmp/tmp-3415-1VnXV61kUdJU)
138
+ package (/tmp/tmp-3561-F8nCmuXigd93)
107
139
 
108
140
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > errors for keys that are missing
109
141
   Error! package.json: Expected entry for 'bugs' to exist
110
142
 
111
- ✓ src/__tests__/bannedDependencies.spec.ts (5 tests) 29ms
112
143
  stdout | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
113
- package (/tmp/tmp-3415-L6kuL9FyEjXF)
144
+ package (/tmp/tmp-3561-iiWNV92z1MaI)
114
145
  Fixed! package.json: Expected standardized entry for 'repository'
115
146
 
116
147
  stderr | src/__tests__/packageEntry.spec.ts > expectPackageEntries ('CachingHost') > fix: true > handles both entries and entriesExist
117
148
   Error! package.json: Expected entry for 'bugs' to exist
118
149
 
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
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
154
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for expected keys
155
+ package (/tmp/tmp-3669-uRNAmN8TWbPE)
156
+
122
157
  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
158
+  Fixed! package.json: Incorrect order of fields in package.json
125
159
 
126
160
  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
161
+ package-unknown-keys (/tmp/tmp-3669-OBNgrAyzsAO8)
162
+
163
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order for unexpected keys
164
+  Fixed! package.json: Incorrect order of fields in package.json
129
165
 
130
166
  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
167
+ package (/tmp/tmp-3669-dLyWUCf1VzC7)
168
+
169
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('SimpleHost') > fix: true > fixes order using function
170
+  Fixed! package.json: Incorrect order of fields in package.json
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
+ package (/tmp/tmp-3669-Xvk74p2anK1A)
174
+
175
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for expected keys
176
+  Fixed! package.json: Incorrect order of fields in package.json
177
+
178
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order for unexpected keys
179
+ package-unknown-keys (/tmp/tmp-3669-4ZG0sAHf1Apw)
137
180
 
138
181
  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
182
+  Fixed! package.json: Incorrect order of fields in package.json
141
183
 
142
184
  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
185
+ package (/tmp/tmp-3669-Lc9Dfwsj046q)
186
+
187
+ stdout | src/__tests__/packageOrder.spec.ts > expectPackageOrder ('CachingHost') > fix: true > fixes order using function
188
+  Fixed! package.json: Incorrect order of fields in package.json
189
+
190
+ ✓ src/__tests__/packageOrder.spec.ts (8 tests) 81ms
191
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > works with async generator
192
+ rootProject (/tmp/tmp-3736-44PXDs230Q2V)
145
193
 
146
- ✓ src/__tests__/packageOrder.spec.ts (8 tests) 51ms
147
- ✓ src/__tests__/consistentDependencies.spec.ts (3 tests) 28ms
148
194
  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
195
+  Fixed! foo.txt: Expect file contents to match
196
+
197
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing file
198
+ rootProject (/tmp/tmp-3736-X0LP3Ifa2Trw)
151
199
 
152
200
  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
201
+  Fixed! foo.txt: Expect file contents to match
155
202
 
156
203
  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
204
+ rootProject (/tmp/tmp-3736-ovz6ss9Eo1yW)
205
+
206
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('SimpleHost') > fix: true > fixes missing nested file
207
+  Fixed! nested/foo.txt: Expect file contents to match
208
+
209
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > works with async generator
210
+ rootProject (/tmp/tmp-3736-RpRGRTQ8PEdu)
159
211
 
160
212
  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
213
+  Fixed! foo.txt: Expect file contents to match
163
214
 
164
215
  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
216
+ rootProject (/tmp/tmp-3736-Rb9tQjhLzHvL)
217
+
218
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing file
219
+  Fixed! foo.txt: Expect file contents to match
220
+
221
+ stdout | src/__tests__/fileContents.spec.ts > fileContents ('CachingHost') > fix: true > fixes missing nested file
222
+ rootProject (/tmp/tmp-3736-t7CLIs2O5wwV)
167
223
 
168
224
  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
225
+  Fixed! nested/foo.txt: Expect file contents to match
171
226
 
172
- ✓ src/__tests__/fileContents.spec.ts (6 tests) 27ms
173
227
  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
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
+ stdout | src/__tests__/alphabeticalScripts.spec.ts > alphabeticalScripts ('CachingHost') > fix: true > fixes unsorted scripts
234
+ foo-lib (/tmp/tmp-3743-R3MU75ssh3Qq)
176
235
 
177
236
  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
237
+  Fixed! package.json: Incorrect order of scripts in foo-lib's package.json
180
238
 
181
- ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 19ms
239
+ ✓ src/__tests__/fileContents.spec.ts (6 tests) 21ms
240
+ ✓ src/__tests__/alphabeticalScripts.spec.ts (4 tests) 21ms
182
241
 
183
242
   Test Files  11 passed (11)
184
243
   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)
244
+  Start at  17:39:07
245
+  Duration  4.01s (transform 945ms, setup 0ms, collect 4.63s, tests 552ms, environment 10ms, prepare 1.56s)
187
246
 
188
247
   % Coverage report from v8
189
248
  -------------------|---------|----------|---------|---------|-------------------
190
249
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
191
250
  -------------------|---------|----------|---------|---------|-------------------
192
- All files | 95.54 | 87.8 | 93.22 | 95.54 |
193
- src | 95.83 | 88.59 | 91.66 | 95.83 |
251
+ All files | 94.5 | 87.95 | 93.22 | 94.5 |
252
+ src | 94.71 | 88.74 | 91.66 | 94.71 |
194
253
  ...pendencies.ts | 100 | 100 | 100 | 100 |
195
254
  ...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
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
258
+ 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
203
262
  packageEntry.ts | 100 | 100 | 100 | 100 |
204
- packageOrder.ts | 100 | 95.45 | 100 | 100 | 60
263
+ packageOrder.ts | 99 | 95.45 | 100 | 99 | 61
205
264
  packageScript.ts | 100 | 100 | 100 | 100 |
206
- ...Dependency.ts | 90.56 | 100 | 66.66 | 90.56 | 44-48
265
+ ...Dependency.ts | 87.83 | 100 | 66.66 | 87.83 | 45-53
207
266
  ...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
267
+ src/util | 92.3 | 80 | 100 | 92.3 |
268
+ checkAlpha.ts | 95.55 | 90 | 100 | 95.55 | 21-22
210
269
  ...uleFactory.ts | 100 | 100 | 100 | 100 |
211
270
  makeDirectory.ts | 100 | 100 | 100 | 100 |
212
- ...aphService.ts | 87.09 | 61.53 | 100 | 87.09 | ...68,93-94,98-99
271
+ ...aphService.ts | 87.17 | 61.53 | 100 | 87.17 | ...20-121,125-126
213
272
  -------------------|---------|----------|---------|---------|-------------------
273
+ [?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.3 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 52.39 KB
13
+ ESM build/js/index.js.map 106.03 KB
14
+ ESM ⚡️ Build success in 95ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @monorepolint/rules
2
2
 
3
+ ## 0.6.0-alpha.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 6a63a44: Feature: requireDependency now allows undefined for versions to remove the entry
8
+ - @monorepolint/config@0.6.0-alpha.3
9
+ - @monorepolint/core@0.6.0-alpha.3
10
+ - @monorepolint/utils@0.6.0-alpha.3
11
+
3
12
  ## 0.6.0-alpha.2
4
13
 
5
14
  ### Patch Changes