@k8slens/typescript 6.5.0 → 7.3.1

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.
package/CHANGELOG.md CHANGED
@@ -1,21 +1,480 @@
1
+ ## [7.3.1](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.3.0...@k8slens/typescript@7.3.1) (2026-09-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **main:** Upgrade got to 16 so a lost network no longer crashes the main process (LENSDESK-3639) ([514c5d1](https://github.com/lensapp/lens-desktop-monorepo/commit/514c5d132a257df029cb8611bc8da041bb5adc5d))
7
+
8
+ ## [7.2.4](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.2.3...@k8slens/typescript@7.2.4) (2026-04-28)
9
+
10
+ ## [7.2.3](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.2.1...@k8slens/typescript@7.2.3) (2026-04-02)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Improve project typescript service ([6f9a371](https://github.com/lensapp/lens-desktop-monorepo/commit/6f9a371873cc206141f5f0899c86340f774f03b8))
16
+ * Improve test typescript service ([3c6746e](https://github.com/lensapp/lens-desktop-monorepo/commit/3c6746ee6eb972717326adcbaf82c2995681d14f))
17
+ * Remove duplicate in test.json exclude ([d6740f4](https://github.com/lensapp/lens-desktop-monorepo/commit/d6740f4f095c00db4604d79742eaffd9389e132e))
18
+
19
+ ## [7.2.2](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.2.1...@k8slens/typescript@7.2.2) (2026-02-09)
20
+
21
+ ## 7.2.1 (2026-01-08)
22
+
23
+
24
+ ### ⚠ BREAKING CHANGES
25
+
26
+ * Upgrade electron and node
27
+
28
+ ### Features
29
+
30
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
31
+ * add type check task and workflow ([d79007b](https://github.com/lensapp/lens-desktop-monorepo/commit/d79007b4db8f3ab92ce0b453ccc531f4b907270f))
32
+ * add type checking of tests to building types ([6086fcc](https://github.com/lensapp/lens-desktop-monorepo/commit/6086fccb7133ce4cf0c6de3fbabbbdebbe946dc3))
33
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
34
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
35
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
36
+ * compile and check types in parallel ([14417f7](https://github.com/lensapp/lens-desktop-monorepo/commit/14417f7384934e97198ddf37e7aeb73cc804ee4b))
37
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
38
+ * **pod-list-2:** Introduce brutally minimal pod-list-2 ([04ac907](https://github.com/lensapp/lens-desktop-monorepo/commit/04ac90764d44b398d1da23f218f5e610e2b52dfe))
39
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
40
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
41
+ * update package json files for react 19 ([9f4dad2](https://github.com/lensapp/lens-desktop-monorepo/commit/9f4dad25c2c793acaf46cd4aa654245be0523adc))
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
47
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
48
+ * Support the use of all css variable names within `style` props ([d4b017a](https://github.com/lensapp/lens-desktop-monorepo/commit/d4b017af1d48c35ab5ac274c23645639c4fbe4a9))
49
+ * type errors ([bae9801](https://github.com/lensapp/lens-desktop-monorepo/commit/bae9801c95ec85eb60cc2a17956b0475694ec0ad))
50
+ * type errors in test files ([9e70c7e](https://github.com/lensapp/lens-desktop-monorepo/commit/9e70c7e589c81fd4c5dec2ae1ec28c0f552178d7))
51
+ * update copyright year ([c6f265a](https://github.com/lensapp/lens-desktop-monorepo/commit/c6f265a3c786db4c607749b40c71cc0b1a59aca2))
52
+ * update typescript plugin css modules to avoid stylus ([01290d4](https://github.com/lensapp/lens-desktop-monorepo/commit/01290d426903b79e1d96ea72619c0b5b1aac56ba))
53
+
54
+
55
+ ### Reverts
56
+
57
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
58
+
59
+
60
+ ### Miscellaneous Chores
61
+
62
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
63
+
64
+ ## [7.2.0](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.31...@k8slens/typescript@7.2.0) (2025-12-17)
65
+
66
+
67
+ ### Features
68
+
69
+ * **pod-list-2:** Introduce brutally minimal pod-list-2 ([04ac907](https://github.com/lensapp/lens-desktop-monorepo/commit/04ac90764d44b398d1da23f218f5e610e2b52dfe))
70
+ * update package json files for react 19 ([9f4dad2](https://github.com/lensapp/lens-desktop-monorepo/commit/9f4dad25c2c793acaf46cd4aa654245be0523adc))
71
+
72
+
73
+ ### Bug Fixes
74
+
75
+ * type errors ([bae9801](https://github.com/lensapp/lens-desktop-monorepo/commit/bae9801c95ec85eb60cc2a17956b0475694ec0ad))
76
+
77
+ ## [7.1.0](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.31...@k8slens/typescript@7.1.0) (2025-12-12)
78
+
79
+
80
+ ### Features
81
+
82
+ * update package json files for react 19 ([9f4dad2](https://github.com/lensapp/lens-desktop-monorepo/commit/9f4dad25c2c793acaf46cd4aa654245be0523adc))
83
+
84
+
85
+ ### Bug Fixes
86
+
87
+ * type errors ([bae9801](https://github.com/lensapp/lens-desktop-monorepo/commit/bae9801c95ec85eb60cc2a17956b0475694ec0ad))
88
+
89
+ ## 7.0.31 (2025-10-15)
90
+
91
+
92
+ ### ⚠ BREAKING CHANGES
93
+
94
+ * Upgrade electron and node
95
+
96
+ ### Features
97
+
98
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
99
+ * add type check task and workflow ([d79007b](https://github.com/lensapp/lens-desktop-monorepo/commit/d79007b4db8f3ab92ce0b453ccc531f4b907270f))
100
+ * add type checking of tests to building types ([6086fcc](https://github.com/lensapp/lens-desktop-monorepo/commit/6086fccb7133ce4cf0c6de3fbabbbdebbe946dc3))
101
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
102
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
103
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
104
+ * compile and check types in parallel ([14417f7](https://github.com/lensapp/lens-desktop-monorepo/commit/14417f7384934e97198ddf37e7aeb73cc804ee4b))
105
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
106
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
107
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
108
+
109
+
110
+ ### Bug Fixes
111
+
112
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
113
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
114
+ * Support the use of all css variable names within `style` props ([d4b017a](https://github.com/lensapp/lens-desktop-monorepo/commit/d4b017af1d48c35ab5ac274c23645639c4fbe4a9))
115
+ * type errors in test files ([9e70c7e](https://github.com/lensapp/lens-desktop-monorepo/commit/9e70c7e589c81fd4c5dec2ae1ec28c0f552178d7))
116
+ * update copyright year ([c6f265a](https://github.com/lensapp/lens-desktop-monorepo/commit/c6f265a3c786db4c607749b40c71cc0b1a59aca2))
117
+ * update typescript plugin css modules to avoid stylus ([01290d4](https://github.com/lensapp/lens-desktop-monorepo/commit/01290d426903b79e1d96ea72619c0b5b1aac56ba))
118
+
119
+
120
+ ### Reverts
121
+
122
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
123
+
124
+
125
+ ### Miscellaneous Chores
126
+
127
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
128
+
129
+ ## [7.0.30](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.29...@k8slens/typescript@7.0.30) (2025-10-10)
130
+
131
+
132
+ ### Features
133
+
134
+ * add type check task and workflow ([d79007b](https://github.com/lensapp/lens-desktop-monorepo/commit/d79007b4db8f3ab92ce0b453ccc531f4b907270f))
135
+ * add type checking of tests to building types ([6086fcc](https://github.com/lensapp/lens-desktop-monorepo/commit/6086fccb7133ce4cf0c6de3fbabbbdebbe946dc3))
136
+ * compile and check types in parallel ([14417f7](https://github.com/lensapp/lens-desktop-monorepo/commit/14417f7384934e97198ddf37e7aeb73cc804ee4b))
137
+
138
+
139
+ ### Bug Fixes
140
+
141
+ * type errors in test files ([9e70c7e](https://github.com/lensapp/lens-desktop-monorepo/commit/9e70c7e589c81fd4c5dec2ae1ec28c0f552178d7))
142
+
143
+ ## 7.0.29 (2025-09-09)
144
+
145
+
146
+ ### ⚠ BREAKING CHANGES
147
+
148
+ * Upgrade electron and node
149
+
150
+ ### Features
151
+
152
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
153
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
154
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
155
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
156
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
157
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
158
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
159
+
160
+
161
+ ### Bug Fixes
162
+
163
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
164
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
165
+ * Support the use of all css variable names within `style` props ([d4b017a](https://github.com/lensapp/lens-desktop-monorepo/commit/d4b017af1d48c35ab5ac274c23645639c4fbe4a9))
166
+ * update copyright year ([c6f265a](https://github.com/lensapp/lens-desktop-monorepo/commit/c6f265a3c786db4c607749b40c71cc0b1a59aca2))
167
+ * update typescript plugin css modules to avoid stylus ([01290d4](https://github.com/lensapp/lens-desktop-monorepo/commit/01290d426903b79e1d96ea72619c0b5b1aac56ba))
168
+
169
+
170
+ ### Reverts
171
+
172
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
173
+
174
+
175
+ ### Miscellaneous Chores
176
+
177
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
178
+
179
+ ## 7.0.28 (2025-08-04)
180
+
181
+
182
+ ### ⚠ BREAKING CHANGES
183
+
184
+ * Upgrade electron and node
185
+
186
+ ### Features
187
+
188
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
189
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
190
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
191
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
192
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
193
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
194
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
195
+
196
+
197
+ ### Bug Fixes
198
+
199
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
200
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
201
+ * Support the use of all css variable names within `style` props ([d4b017a](https://github.com/lensapp/lens-desktop-monorepo/commit/d4b017af1d48c35ab5ac274c23645639c4fbe4a9))
202
+ * update copyright year ([c6f265a](https://github.com/lensapp/lens-desktop-monorepo/commit/c6f265a3c786db4c607749b40c71cc0b1a59aca2))
203
+ * update typescript plugin css modules to avoid stylus ([01290d4](https://github.com/lensapp/lens-desktop-monorepo/commit/01290d426903b79e1d96ea72619c0b5b1aac56ba))
204
+
205
+
206
+ ### Reverts
207
+
208
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
209
+
210
+
211
+ ### Miscellaneous Chores
212
+
213
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
214
+
215
+ ## [7.0.27](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.26...@k8slens/typescript@7.0.27) (2025-07-30)
216
+
217
+
218
+ ### Bug Fixes
219
+
220
+ * update typescript plugin css modules to avoid stylus ([01290d4](https://github.com/lensapp/lens-desktop-monorepo/commit/01290d426903b79e1d96ea72619c0b5b1aac56ba))
221
+
222
+ ## [7.0.26](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.25...@k8slens/typescript@7.0.26) (2025-06-19)
223
+
224
+
225
+ ### Bug Fixes
226
+
227
+ * update copyright year ([c6f265a](https://github.com/lensapp/lens-desktop-monorepo/commit/c6f265a3c786db4c607749b40c71cc0b1a59aca2))
228
+
229
+ ## 7.0.25 (2025-05-14)
230
+
231
+
232
+ ### ⚠ BREAKING CHANGES
233
+
234
+ * Upgrade electron and node
235
+
236
+ ### Features
237
+
238
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
239
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
240
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
241
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
242
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
243
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
244
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
245
+
246
+
247
+ ### Bug Fixes
248
+
249
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
250
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
251
+ * Support the use of all css variable names within `style` props ([d4b017a](https://github.com/lensapp/lens-desktop-monorepo/commit/d4b017af1d48c35ab5ac274c23645639c4fbe4a9))
252
+
253
+
254
+ ### Reverts
255
+
256
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
257
+
258
+
259
+ ### Miscellaneous Chores
260
+
261
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
262
+
263
+ ## [7.0.24](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.23...@k8slens/typescript@7.0.24) (2025-04-25)
264
+
265
+
266
+ ### Bug Fixes
267
+
268
+ * Support the use of all css variable names within `style` props ([d4b017a](https://github.com/lensapp/lens-desktop-monorepo/commit/d4b017af1d48c35ab5ac274c23645639c4fbe4a9))
269
+
270
+ ## [7.0.23](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.22...@k8slens/typescript@7.0.23) (2025-02-26)
271
+
272
+ ## 7.0.22 (2025-02-20)
273
+
274
+
275
+ ### ⚠ BREAKING CHANGES
276
+
277
+ * Upgrade electron and node
278
+
279
+ ### Features
280
+
281
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
282
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
283
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
284
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
285
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
286
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
287
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
288
+
289
+
290
+ ### Bug Fixes
291
+
292
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
293
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
294
+
295
+
296
+ ### Reverts
297
+
298
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
299
+
300
+
301
+ ### Miscellaneous Chores
302
+
303
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
304
+
305
+ ## [7.0.21](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.20...@k8slens/typescript@7.0.21) (2025-01-16)
306
+
307
+ ## [7.0.20](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.19...@k8slens/typescript@7.0.20) (2025-01-10)
308
+
309
+ ## [7.0.19](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.18...@k8slens/typescript@7.0.19) (2024-11-19)
310
+
311
+ ## [7.0.18](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.17...@k8slens/typescript@7.0.18) (2024-10-03)
312
+
313
+ ## [7.0.17](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.16...@k8slens/typescript@7.0.17) (2024-09-04)
314
+
315
+ ## [7.0.16](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.15...@k8slens/typescript@7.0.16) (2024-08-16)
316
+
317
+
318
+ ### Features
319
+
320
+ * print folder location for tsconfig errors and fix the build ([50fcafe](https://github.com/lensapp/lens-desktop-monorepo/commit/50fcafeef9b0293870ca49a98fc68f3a9f416b03))
321
+
322
+ ## [7.0.15](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.14...@k8slens/typescript@7.0.15) (2024-07-05)
323
+
324
+
325
+ ### ⚠ BREAKING CHANGES
326
+
327
+ * Upgrade electron and node
328
+
329
+ ### Miscellaneous Chores
330
+
331
+ * Upgrade electron and node ([baf840f](https://github.com/lensapp/lens-desktop-monorepo/commit/baf840fcb0a09231f4b287efc4cb5f7903c09fc1))
332
+
333
+ ## [7.0.14](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.13...@k8slens/typescript@7.0.14) (2024-06-03)
334
+
335
+ ## [7.0.13](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.12...@k8slens/typescript@7.0.13) (2024-05-14)
336
+
337
+
338
+ ### Features
339
+
340
+ * Introduce reusable way of having a before each that is also an action and an act ([105a38f](https://github.com/lensapp/lens-desktop-monorepo/commit/105a38f2731e4f3b6ccf0949d973355a47067f15))
341
+
342
+ ## [7.0.12](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.11...@k8slens/typescript@7.0.12) (2024-03-25)
343
+
344
+ ## [7.0.11](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.10...@k8slens/typescript@7.0.11) (2024-03-11)
345
+
346
+ ## [7.0.10](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.10) (2024-03-11)
347
+
348
+
349
+ ### Features
350
+
351
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
352
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
353
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
354
+
355
+ ## [7.0.9](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.9) (2024-03-11)
356
+
357
+
358
+ ### Features
359
+
360
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
361
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
362
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
363
+
364
+ ## [7.0.8](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.8) (2024-03-11)
365
+
366
+
367
+ ### Features
368
+
369
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
370
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
371
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
372
+
373
+ ## [7.0.7](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.7) (2024-03-07)
374
+
375
+
376
+ ### Features
377
+
378
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
379
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
380
+ * Catch wrong type imports at build time ([a2f3577](https://github.com/lensapp/lens-desktop-monorepo/commit/a2f35770b397b67f452ac7d82e60096a797c1913))
381
+
382
+ ## [7.0.6](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.6) (2024-02-23)
383
+
384
+
385
+ ### Features
386
+
387
+ * Add support for bundling globs of yml and yml.hb files ([8f0b33b](https://github.com/lensapp/lens-desktop-monorepo/commit/8f0b33b2ac8d3efec4a9d44d497144b4e25116b1))
388
+ * Add typing for importing globs of yml files ([5be8736](https://github.com/lensapp/lens-desktop-monorepo/commit/5be873677ddd0497fd80843f207ef3cfc77c4a6a))
389
+
390
+ ## [7.0.5](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.5) (2024-02-05)
391
+
392
+ ## [7.0.4](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.4) (2024-01-31)
393
+
394
+ ## [7.0.3](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.2...@k8slens/typescript@7.0.3) (2024-01-29)
395
+
396
+ ## [7.0.2](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@7.0.1...@k8slens/typescript@7.0.2) (2023-12-15)
397
+
398
+
399
+ ### Features
400
+
401
+ * Catch wrongly configured tsconfigs when building types ([e02f115](https://github.com/lensapp/lens-desktop-monorepo/commit/e02f1159b42a917ed1418b2bc2e95b3c2e8c620d))
402
+
403
+ ## [7.0.1](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.13...@k8slens/typescript@7.0.1) (2023-11-24)
404
+
405
+
406
+ ### Features
407
+
408
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
409
+
410
+
411
+ ### Bug Fixes
412
+
413
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
414
+
415
+
416
+ ### Reverts
417
+
418
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
419
+
420
+ ## [6.7.14](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.13...@k8slens/typescript@6.7.14) (2023-11-15)
421
+
422
+
423
+ ### Features
424
+
425
+ * Remove .d.ts files corresponding to test files from lens-build-types ([29d718a](https://github.com/lensapp/lens-desktop-monorepo/commit/29d718a1a3a1dda9a1602a6e68786bbc2cf98121))
426
+
427
+
428
+ ### Bug Fixes
429
+
430
+ * Don't try and incrementally build types as that breaks when switching branches ([74778d9](https://github.com/lensapp/lens-desktop-monorepo/commit/74778d970483be3fc56e9348aff247a8a51d37cf))
431
+
432
+
433
+ ### Reverts
434
+
435
+ * Revert "chore: Remove unnecessary prefix in CHANGELOGs" ([84d2ea6](https://github.com/lensapp/lens-desktop-monorepo/commit/84d2ea6550fde74450f43d3c34b6eae231881742))
436
+
1
437
  # Change Log
2
438
 
3
439
  All notable changes to this project will be documented in this file.
4
440
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
441
 
6
- # 6.5.0 (2023-05-26)
442
+ ## [6.7.13](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.12...@k8slens/typescript@6.7.13) (2023-09-07)
443
+
444
+
445
+ ### Bug Fixes
446
+
447
+ * Make sure that all packages are using moduleResoltion: Node ([8d62d3c](https://github.com/lensapp/lens-desktop-monorepo/commit/8d62d3ce647feac7b2629ed73e912b0edd69e040))
448
+
449
+
7
450
 
8
451
 
9
452
 
10
- # 6.5.0-alpha.13 (2023-05-16)
453
+ ## [6.7.12](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.11...@k8slens/typescript@6.7.12) (2023-08-29)
454
+
455
+ **Note:** Version bump only for package @k8slens/typescript
456
+
457
+
458
+
459
+
460
+
461
+ ## [6.7.11](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.10...@k8slens/typescript@6.7.11) (2023-08-14)
462
+
463
+ **Note:** Version bump only for package @k8slens/typescript
11
464
 
12
465
 
13
466
 
14
- # 6.5.0-alpha.4 (2023-04-12)
467
+
468
+
469
+ ## [6.7.10](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.9...@k8slens/typescript@6.7.10) (2023-08-03)
470
+
471
+ **Note:** Version bump only for package @k8slens/typescript
472
+
15
473
 
16
474
 
17
475
 
18
- # 6.5.0-alpha.1 (2023-03-14)
476
+
477
+ ## [6.7.9](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.8...@k8slens/typescript@6.7.9) (2023-08-03)
19
478
 
20
479
  **Note:** Version bump only for package @k8slens/typescript
21
480
 
@@ -23,14 +482,80 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
23
482
 
24
483
 
25
484
 
26
- # 6.5.0-alpha.3 (2023-05-16)
485
+ ## [6.7.8](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.7...@k8slens/typescript@6.7.8) (2023-08-01)
27
486
 
487
+ **Note:** Version bump only for package @k8slens/typescript
28
488
 
29
489
 
30
- # 6.5.0-alpha.4 (2023-04-12)
31
490
 
32
491
 
33
492
 
34
- # 6.5.0-alpha.1 (2023-03-14)
493
+ ## [6.7.7](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.6...@k8slens/typescript@6.7.7) (2023-07-31)
35
494
 
36
495
  **Note:** Version bump only for package @k8slens/typescript
496
+
497
+
498
+
499
+
500
+
501
+ ## [6.7.6](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.5...@k8slens/typescript@6.7.6) (2023-07-25)
502
+
503
+ **Note:** Version bump only for package @k8slens/typescript
504
+
505
+
506
+
507
+
508
+
509
+ ## [6.7.5](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.4...@k8slens/typescript@6.7.5) (2023-07-25)
510
+
511
+ **Note:** Version bump only for package @k8slens/typescript
512
+
513
+
514
+
515
+
516
+
517
+ ## [6.7.4](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.3...@k8slens/typescript@6.7.4) (2023-07-19)
518
+
519
+ **Note:** Version bump only for package @k8slens/typescript
520
+
521
+
522
+
523
+
524
+
525
+ ## [6.7.3](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.2...@k8slens/typescript@6.7.3) (2023-07-14)
526
+
527
+ **Note:** Version bump only for package @k8slens/typescript
528
+
529
+
530
+
531
+
532
+
533
+ ## [6.7.2](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.1...@k8slens/typescript@6.7.2) (2023-07-10)
534
+
535
+ **Note:** Version bump only for package @k8slens/typescript
536
+
537
+
538
+
539
+
540
+
541
+ ## [6.7.1](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.0...@k8slens/typescript@6.7.1) (2023-07-05)
542
+
543
+ **Note:** Version bump only for package @k8slens/typescript
544
+
545
+
546
+
547
+
548
+
549
+ ## [6.7.0](https://github.com/lensapp/lens-desktop-monorepo/compare/@k8slens/typescript@6.7.0...@k8slens/typescript@6.7.0) (2023-06-28)
550
+
551
+ ## 6.7.0 (2023-06-13)
552
+
553
+ ## 6.5.0 (2023-05-26)
554
+
555
+ ## 6.5.0-alpha.13 (2023-05-16)
556
+
557
+ ## 6.5.0-alpha.4 (2023-04-12)
558
+
559
+ ## 6.5.0-alpha.1 (2023-03-14)
560
+
561
+ ## 6.5.0-lensapp.0 (2023-03-07)
package/LICENSE CHANGED
@@ -1,11 +1,5 @@
1
- Copyright (c) 2022 OpenLens Authors.
2
-
3
- Portions of this software are licensed as follows:
4
-
5
- * All content residing under the "docs/" directory of this repository, if that
6
- directory exists, is licensed under "Creative Commons: CC BY-SA 4.0 license".
7
- * Content outside of the above mentioned directories or restrictions above is
8
- available under the "MIT" license as defined below.
1
+ Copyright (c) 2023 Mirantis Inc.
2
+ Copyright (c) 2020-2023 OpenLens Authors.
9
3
 
10
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
11
5
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -16,7 +16,8 @@ Base configuration for minimal duplication.
16
16
  **tsconfig.json**
17
17
  ```json
18
18
  {
19
- "extends": "@k8slens/typescript/config/base.json"
19
+ "extends": "@k8slens/typescript/config/base.json",
20
+ "include": ["**/*.ts", "**/*.tsx"],
20
21
  }
21
22
  ```
22
23
 
@@ -0,0 +1,138 @@
1
+ #!/usr/bin/env node
2
+
3
+ const child_process = require("child_process");
4
+ const util = require("util");
5
+ const { readFile } = require("fs/promises");
6
+ const { exists: existsWithCallback } = require("fs");
7
+ const json5 = require("json5");
8
+ const assert = require("assert");
9
+ const { flatMap, map, filter, values, reject, endsWith, get } = require("lodash/fp");
10
+
11
+ // Local async-aware pipeline (applies fns left-to-right, awaiting between steps).
12
+ // Deliberately not @k8slens/fp: the vendored ogre-tools packages build with this
13
+ // tool, so depending on them here would create a bootstrap cycle.
14
+ const pipeline = async (value, ...fns) => {
15
+ let acc = await value;
16
+
17
+ for (const fn of fns) {
18
+ acc = await fn(acc);
19
+ }
20
+
21
+ return acc;
22
+ };
23
+ const yargs = require("yargs");
24
+
25
+ const exec = util.promisify(child_process.exec);
26
+ const exists = util.promisify(existsWithCallback);
27
+
28
+ // "tsc --build" rather than the nx target that wraps it: nx defines that target's command as
29
+ // this exact string and runs it in this exact directory, so nx was only adding a daemon round
30
+ // trip per invocation. The project-reference walk that builds the dependencies' declarations
31
+ // is tsc's, not nx's, and is unaffected.
32
+ const getTscEmitCommand = () => `tsc --build --emitDeclarationOnly`;
33
+
34
+ const getTscTypeCheckTestFilesCommand = () =>
35
+ `tsc --build tsconfig.test.json`;
36
+
37
+ // No catch of its own: tsc writes its diagnostics to stdout, and main's handler already
38
+ // prints those. Catching here as well printed every error twice.
39
+ const compileTypes = () => exec(getTscEmitCommand());
40
+
41
+ const typeCheckTestFiles = async () => {
42
+ await exec(getTscTypeCheckTestFilesCommand());
43
+ };
44
+
45
+ const awaitAll = (promises) => Promise.all(promises);
46
+
47
+ const checkThatAllExportedTypesGotCompiled = async (packageJson) => {
48
+ const missingExportPaths = await pipeline(
49
+ packageJson.exports,
50
+ values,
51
+ flatMap(values),
52
+ filter(endsWith(".d.ts")),
53
+ map(async (exportPath) => ({
54
+ exportPath,
55
+ exists: await exists(exportPath),
56
+ })),
57
+ awaitAll,
58
+ reject("exists"),
59
+ map("exportPath"),
60
+ );
61
+
62
+ if (missingExportPaths.length) {
63
+ throw new Error(
64
+ `Tried to build types of "${packageJson.name}", but types "${missingExportPaths.join(
65
+ '", "',
66
+ )}" did not get built despite being an "exports" in package.json.`,
67
+ );
68
+ }
69
+ };
70
+
71
+ const checkTsconfig = async (args) => {
72
+ const tsconfig = await pipeline(`tsc --project ${args.tsconfig} --showConfig`, exec, get("stdout"), json5.parse);
73
+
74
+ assert(Array.isArray(tsconfig.include), "include MUST be an array in " + process.cwd());
75
+ assert(tsconfig.include.length > 0, "include MUST NOT be empty in " + process.cwd());
76
+ assert(
77
+ tsconfig.include.every((item) => typeof item === "string"),
78
+ "include MUST only contain strings in " + process.cwd(),
79
+ );
80
+ assert(
81
+ tsconfig.include.every((item) => item.length > 0),
82
+ "include MUST NOT contain empty strings in " + process.cwd(),
83
+ );
84
+ assert(
85
+ tsconfig.include.every((item) => !item.startsWith("..")),
86
+ "include MUST NOT paths to its parent directory in " + process.cwd(),
87
+ );
88
+ };
89
+
90
+ const main = async () => {
91
+ try {
92
+ const parsedArgs = yargs()
93
+ .options({
94
+ tsconfig: {
95
+ type: "string",
96
+ default: "tsconfig.json",
97
+ description: 'Custom tsconfig.json -file, defaults to "tsconfig.json"',
98
+ },
99
+ })
100
+ .options({
101
+ outDir: {
102
+ type: "string",
103
+ default: "dist",
104
+ description: 'Custom outDir, defaults to "dist"',
105
+ },
106
+ })
107
+ .options({
108
+ checkTypesTests: {
109
+ type: "boolean",
110
+ default: false,
111
+ description: 'Only check types for test files',
112
+ },
113
+ })
114
+ .parseSync(process.argv);
115
+
116
+ if (parsedArgs.checkTypesTests) {
117
+ await typeCheckTestFiles();
118
+ } else {
119
+ const packageJson = json5.parse(await readFile("./package.json", "utf-8"));
120
+
121
+ await checkTsconfig(parsedArgs);
122
+ await compileTypes();
123
+ await checkThatAllExportedTypesGotCompiled(packageJson);
124
+ }
125
+ } catch (error) {
126
+ if (error.stderr) {
127
+ console.error(error.stderr);
128
+ } else if (error.stdout) {
129
+ console.error(error.stdout);
130
+ } else {
131
+ console.error(error);
132
+ }
133
+
134
+ process.exit(1);
135
+ }
136
+ };
137
+
138
+ main();
@@ -0,0 +1,47 @@
1
+ #!/usr/bin/env node
2
+
3
+ const child_process = require("child_process");
4
+ const util = require("util");
5
+ const yargs = require("yargs");
6
+
7
+ const exec = util.promisify(child_process.exec);
8
+
9
+ const getTscCheckCommand = (tsconfig) =>
10
+ `tsc --noEmit --project ${tsconfig}`;
11
+
12
+ const typeCheck = async (tsconfig) => {
13
+ try {
14
+ await exec(getTscCheckCommand(tsconfig));
15
+ } catch (e) {
16
+ if (e.stdout) process.stderr.write(e.stdout);
17
+ throw e;
18
+ }
19
+ };
20
+
21
+ const main = async () => {
22
+ try {
23
+ const parsedArgs = yargs()
24
+ .options({
25
+ tsconfig: {
26
+ type: "string",
27
+ default: "tsconfig.json",
28
+ description: 'Custom tsconfig.json -file, defaults to "tsconfig.json"',
29
+ },
30
+ })
31
+ .parseSync(process.argv);
32
+
33
+ await typeCheck(parsedArgs.tsconfig);
34
+ } catch (error) {
35
+ if (error.stderr) {
36
+ console.error(error.stderr);
37
+ } else if (error.stdout) {
38
+ console.error(error.stdout);
39
+ } else {
40
+ console.error(error);
41
+ }
42
+
43
+ process.exit(1);
44
+ }
45
+ };
46
+
47
+ main();
package/config/base.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
2
3
  "compilerOptions": {
3
- "baseUrl": ".",
4
- "jsx": "react",
5
- "target": "ES2019",
6
- "module": "ESNext",
7
-
8
- "lib": [
9
- "ESNext",
10
- "DOM",
11
- "DOM.Iterable"
12
- ],
13
-
14
- "moduleResolution": "node16",
4
+ "composite": true,
5
+ "rootDir": "${configDir}",
6
+ "outDir": "${configDir}/dist",
7
+ "emitDeclarationOnly": true,
8
+ "declaration": true,
9
+ "declarationMap": true,
10
+ "jsx": "react-jsx",
11
+ "target": "ES2020",
12
+ "module": "NodeNext",
13
+ "disableSourceOfProjectReferenceRedirect": true,
14
+ "disableReferencedProjectLoad": true,
15
+ "lib": ["ES2025", "DOM", "DOM.Iterable"],
16
+ "moduleResolution": "NodeNext",
15
17
  "sourceMap": true,
16
18
  "strict": true,
17
19
  "noImplicitAny": true,
18
- "noUnusedLocals": true,
19
20
  "noImplicitReturns": true,
20
21
  "experimentalDecorators": true,
21
22
  "isolatedModules": true,
@@ -23,25 +24,41 @@
23
24
  "allowJs": false,
24
25
  "esModuleInterop": true,
25
26
  "allowSyntheticDefaultImports": true,
26
- "importsNotUsedAsValues": "error",
27
+ "verbatimModuleSyntax": false,
27
28
  "traceResolution": false,
28
29
  "resolveJsonModule": true,
29
- "useDefineForClassFields": true,
30
-
31
- "plugins": [
32
- {
33
- "name": "typescript-plugin-css-modules"
34
- }
35
- ]
30
+ "useDefineForClassFields": true
36
31
  },
37
32
 
38
33
  "ts-node": {
39
34
  "transpileOnly": true,
40
35
 
41
36
  "compilerOptions": {
42
- "module": "CommonJS"
37
+ "module": "NodeNext"
43
38
  }
44
39
  },
45
40
 
46
- "include": ["./styles.d.ts"]
41
+ "include": ["${configDir}/index.ts", "${configDir}/src/**/*.ts", "${configDir}/src/**/*.tsx"],
42
+
43
+ "exclude": [
44
+ "dist",
45
+ "node_modules",
46
+ "test",
47
+ "__mocks__",
48
+ "${configDir}/**/*.test.ts",
49
+ "${configDir}/**/*.test.tsx",
50
+ "${configDir}/dist",
51
+ "${configDir}/node_modules"
52
+ ],
53
+ "files": [
54
+ "./types/css.d.ts",
55
+ "./types/dom.d.ts",
56
+ "./types/font-face.d.ts",
57
+ "./types/json-to-pretty-yaml.d.ts",
58
+ "./types/mocks.d.ts",
59
+ "./types/react.d.ts",
60
+ "./types/react-table.config.d.ts",
61
+ "./types/selfsigned.d.ts",
62
+ "./types/jest.d.ts"
63
+ ]
47
64
  }
@@ -0,0 +1,20 @@
1
+ {
2
+ "extends": "@k8slens/typescript/config/base.json",
3
+ "compilerOptions": {
4
+ "composite": false,
5
+ "emitDeclarationOnly": false,
6
+ "declaration": false,
7
+ "declarationMap": false,
8
+ "noEmit": true,
9
+ "incremental": true,
10
+ "tsBuildInfoFile": "${configDir}/dist/tsconfig.test.tsbuildinfo",
11
+ "disableSourceOfProjectReferenceRedirect": false
12
+ },
13
+ "include": [
14
+ "${configDir}/**/*.test.ts",
15
+ "${configDir}/**/*.test.tsx",
16
+ "${configDir}/__mocks__/**/*.ts",
17
+ "${configDir}/__mocks__/**/*.tsx"
18
+ ],
19
+ "exclude": ["dist", "node_modules", "${configDir}/node_modules", "${configDir}/dist"]
20
+ }
@@ -0,0 +1,7 @@
1
+ import type * as CSS from "csstype";
2
+
3
+ declare module "csstype" {
4
+ export interface Properties {
5
+ [index: `--${string}`]: unknown;
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) 2023 Mirantis, Inc. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in package directory for more information.
4
+ */
5
+ export {};
6
+
7
+ declare global {
8
+ interface Element {
9
+ scrollIntoViewIfNeeded?(opt_center?: boolean): void;
10
+ }
11
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright (c) 2023 Mirantis, Inc. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in package directory for more information.
4
+ */
5
+ export {};
6
+
7
+ declare global {
8
+ const FontFace: FontFace;
9
+
10
+ interface Document {
11
+ fonts: FontFaceSet;
12
+ }
13
+
14
+ type CSSOMString = string;
15
+ type FontFaceLoadStatus = "unloaded" | "loading" | "loaded" | "error";
16
+ type FontFaceSetStatus = "loading" | "loaded";
17
+
18
+ class FontFace implements FontFaceDescriptors {
19
+ constructor(family: string, source: string | ArrayBuffer, descriptors?: FontFaceDescriptors);
20
+ readonly status: FontFaceLoadStatus;
21
+ readonly loaded: Promise<FontFace>;
22
+ variationSettings: CSSOMString;
23
+ display: CSSOMString;
24
+ load(): Promise<FontFace>;
25
+ }
26
+
27
+ interface FontFaceDescriptors {
28
+ family: CSSOMString;
29
+ style: CSSOMString;
30
+ weight: CSSOMString;
31
+ stretch: CSSOMString;
32
+ unicodeRange: CSSOMString;
33
+ variant: CSSOMString;
34
+ featureSettings: CSSOMString;
35
+ }
36
+
37
+ interface FontFaceSet extends Iterable<FontFace> {
38
+ readonly status: FontFaceSetStatus;
39
+ readonly ready: Promise<FontFaceSet>;
40
+ add(font: FontFace): void;
41
+ check(font: string, text?: string): Boolean; // might not work, throws exception
42
+ load(font: string, text?: string): Promise<FontFace[]>;
43
+ delete(font: FontFace): void;
44
+ clear(): void;
45
+ }
46
+ }
@@ -0,0 +1,2 @@
1
+ import "@testing-library/jest-dom";
2
+ import "@lensapp/jest";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Copyright (c) 2023 Mirantis, Inc. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in package directory for more information.
4
+ */
5
+ export = YAML;
6
+
7
+ // biome-ignore lint: TODO explain suppression
8
+ declare namespace YAML {
9
+ function stringify(source: string): string;
10
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Copyright (c) 2023 Mirantis, Inc. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in package directory for more information.
4
+ */
5
+ declare module "win-ca";
6
+ declare module "win-ca/api";
7
+
8
+ // Support import for custom module extensions
9
+ // https://www.typescriptlang.org/docs/handbook/modules.html#wildcard-module-declarations
10
+ declare module "*.module.scss" {
11
+ const classes: { [key: string]: string };
12
+ export default classes;
13
+ }
14
+ declare module "*.module.css" {
15
+ const classes: { [key: string]: string };
16
+ export default classes;
17
+ }
18
+ declare module "*.(ts|tsx)" {
19
+ const modules: object[];
20
+ export default modules;
21
+ export const filenames: string[];
22
+ }
23
+ declare module "*.(yml|yml.hb)" {
24
+ const modules: { default: string }[];
25
+ export default modules;
26
+ export const filenames: string[];
27
+ }
28
+ declare module "*.scss" {
29
+ const content: string;
30
+ export = content;
31
+ }
32
+ declare module "*.css" {
33
+ const content: string;
34
+ export = content;
35
+ }
36
+
37
+ // Packages expose their bundled stylesheet through a "./styles" (or "./tailwind-styles") export
38
+ // that resolves to a plain .css file, so it carries no type declarations of its own.
39
+ declare module "*/styles";
40
+ declare module "*/tailwind-styles";
41
+
42
+ // Declare everything what's bundled as webpack's type="asset/resource"
43
+ // Should be mocked for tests support in jestConfig.moduleNameMapper (currently in "/package.json")
44
+ declare module "*.svg" {
45
+ const content: string;
46
+ export = content;
47
+ }
48
+
49
+ declare module "*.jpg";
50
+ declare module "*.png";
51
+ declare module "*.eot";
52
+ declare module "*.woff";
53
+ declare module "*.woff2";
54
+
55
+ declare module "*.ttf" {
56
+ const content: string;
57
+ export = content;
58
+ }
59
+
60
+ declare var beforeEachWithActAndAction: (
61
+ cb: () => void | Generator<any, void, any> | AsyncGenerator<any, void, any>,
62
+ ) => void;
@@ -0,0 +1,125 @@
1
+ /**
2
+ * Copyright (c) 2023 Mirantis, Inc. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in package directory for more information.
4
+ */
5
+
6
+ import type {
7
+ UseColumnOrderInstanceProps,
8
+ UseColumnOrderState,
9
+ UseExpandedHooks,
10
+ UseExpandedInstanceProps,
11
+ UseExpandedOptions,
12
+ UseExpandedRowProps,
13
+ UseExpandedState,
14
+ UseFiltersColumnOptions,
15
+ UseFiltersColumnProps,
16
+ UseFiltersInstanceProps,
17
+ UseFiltersOptions,
18
+ UseFiltersState,
19
+ UseGlobalFiltersColumnOptions,
20
+ UseGlobalFiltersInstanceProps,
21
+ UseGlobalFiltersOptions,
22
+ UseGlobalFiltersState,
23
+ UseGroupByCellProps,
24
+ UseGroupByColumnOptions,
25
+ UseGroupByColumnProps,
26
+ UseGroupByHooks,
27
+ UseGroupByInstanceProps,
28
+ UseGroupByOptions,
29
+ UseGroupByRowProps,
30
+ UseGroupByState,
31
+ UsePaginationInstanceProps,
32
+ UsePaginationOptions,
33
+ UsePaginationState,
34
+ UseResizeColumnsColumnOptions,
35
+ UseResizeColumnsColumnProps,
36
+ UseResizeColumnsOptions,
37
+ UseResizeColumnsState,
38
+ UseRowSelectHooks,
39
+ UseRowSelectInstanceProps,
40
+ UseRowSelectOptions,
41
+ UseRowSelectRowProps,
42
+ UseRowSelectState,
43
+ UseRowStateCellProps,
44
+ UseRowStateInstanceProps,
45
+ UseRowStateOptions,
46
+ UseRowStateRowProps,
47
+ UseRowStateState,
48
+ UseSortByColumnOptions,
49
+ UseSortByColumnProps,
50
+ UseSortByHooks,
51
+ UseSortByInstanceProps,
52
+ UseSortByOptions,
53
+ UseSortByState,
54
+ } from "react-table";
55
+
56
+ declare module "react-table" {
57
+ // take this file as-is, or comment out the sections that don't apply to your plugin configuration
58
+
59
+ export interface TableOptions<D extends Record<string, unknown>>
60
+ extends UseExpandedOptions<D>,
61
+ UseFiltersOptions<D>,
62
+ UseGlobalFiltersOptions<D>,
63
+ UseGroupByOptions<D>,
64
+ UsePaginationOptions<D>,
65
+ UseResizeColumnsOptions<D>,
66
+ UseRowSelectOptions<D>,
67
+ UseRowStateOptions<D>,
68
+ UseSortByOptions<D>,
69
+ // note that having Record here allows you to add anything to the options, this matches the spirit of the
70
+ // underlying js library, but might be cleaner if it's replaced by a more specific type that matches your
71
+ // feature set, this is a safe default.
72
+ Record<string, any> {}
73
+
74
+ export interface Hooks<D extends Record<string, unknown> = Record<string, unknown>>
75
+ extends UseExpandedHooks<D>,
76
+ UseGroupByHooks<D>,
77
+ UseRowSelectHooks<D>,
78
+ UseSortByHooks<D> {}
79
+
80
+ export interface TableInstance<D extends Record<string, unknown> = Record<string, unknown>>
81
+ extends UseColumnOrderInstanceProps<D>,
82
+ UseExpandedInstanceProps<D>,
83
+ UseFiltersInstanceProps<D>,
84
+ UseGlobalFiltersInstanceProps<D>,
85
+ UseGroupByInstanceProps<D>,
86
+ UsePaginationInstanceProps<D>,
87
+ UseRowSelectInstanceProps<D>,
88
+ UseRowStateInstanceProps<D>,
89
+ UseSortByInstanceProps<D> {}
90
+
91
+ export interface TableState<D extends Record<string, unknown> = Record<string, unknown>>
92
+ extends UseColumnOrderState<D>,
93
+ UseExpandedState<D>,
94
+ UseFiltersState<D>,
95
+ UseGlobalFiltersState<D>,
96
+ UseGroupByState<D>,
97
+ UsePaginationState<D>,
98
+ UseResizeColumnsState<D>,
99
+ UseRowSelectState<D>,
100
+ UseRowStateState<D>,
101
+ UseSortByState<D> {}
102
+
103
+ export interface ColumnInterface<D extends Record<string, unknown> = Record<string, unknown>>
104
+ extends UseFiltersColumnOptions<D>,
105
+ UseGlobalFiltersColumnOptions<D>,
106
+ UseGroupByColumnOptions<D>,
107
+ UseResizeColumnsColumnOptions<D>,
108
+ UseSortByColumnOptions<D> {}
109
+
110
+ export interface ColumnInstance<D extends Record<string, unknown> = Record<string, unknown>>
111
+ extends UseFiltersColumnProps<D>,
112
+ UseGroupByColumnProps<D>,
113
+ UseResizeColumnsColumnProps<D>,
114
+ UseSortByColumnProps<D> {}
115
+
116
+ export interface Cell<D extends Record<string, unknown> = Record<string, unknown>>
117
+ extends UseGroupByCellProps<D>,
118
+ UseRowStateCellProps<D> {}
119
+
120
+ export interface Row<D extends Record<string, unknown> = Record<string, unknown>>
121
+ extends UseExpandedRowProps<D>,
122
+ UseGroupByRowProps<D>,
123
+ UseRowSelectRowProps<D>,
124
+ UseRowStateRowProps<D> {}
125
+ }
@@ -0,0 +1,5 @@
1
+ declare module "React" {
2
+ export interface CSSProperties {
3
+ [index: `--${string}`]: unknown;
4
+ }
5
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) 2023 Mirantis, Inc. All rights reserved.
3
+ * Licensed under MIT License. See LICENSE in package directory for more information.
4
+ */
5
+
6
+ declare module "selfsigned" {
7
+ export interface SelfSignedCert {
8
+ private: string;
9
+ public: string;
10
+ cert: string;
11
+ }
12
+
13
+ type GenerateAttributes = Array<any>;
14
+
15
+ interface GenerateOptions {
16
+ keySize?: number;
17
+ days?: number;
18
+ algorithm?: "sha1" | "sha256";
19
+ extensions?: any;
20
+ pkcs7?: boolean;
21
+ clientCertificate?: boolean;
22
+ clientCertificateCN?: string;
23
+ }
24
+
25
+ export function generate(GenerateAttributes, GenerateOptions): SelfSignedCert;
26
+ }
@@ -6,12 +6,8 @@ declare module "*.module.scss" {
6
6
  export default classes;
7
7
  }
8
8
 
9
- declare module "*.module.css" {
10
- const classes: { [key: string]: string };
11
- export default classes;
12
- }
13
-
14
9
  declare module "*.scss" {
15
10
  const content: string;
16
11
  export = content;
17
12
  }
13
+
package/package.json CHANGED
@@ -1,28 +1,57 @@
1
1
  {
2
2
  "name": "@k8slens/typescript",
3
+ "version": "7.3.1",
4
+ "lens": {
5
+ "env": "agnostic",
6
+ "layer": "infrastructure",
7
+ "role": "library",
8
+ "visibility": "public-for-all"
9
+ },
3
10
  "private": false,
4
- "version": "6.5.0",
5
11
  "description": "Typescript configuration for Lens packages.",
6
- "type": "commonjs",
7
- "publishConfig": {
8
- "access": "public",
9
- "registry": "https://registry.npmjs.org/"
10
- },
12
+ "homepage": "https://k8slens.dev",
11
13
  "repository": {
12
14
  "type": "git",
13
- "url": "git+https://github.com/lensapp/lens.git"
14
- },
15
- "author": {
16
- "name": "OpenLens Authors",
17
- "email": "info@k8slens.dev"
15
+ "url": "git+https://github.com/lensapp/lens-desktop-monorepo.git"
18
16
  },
19
17
  "license": "MIT",
20
- "homepage": "https://github.com/lensapp/lens",
18
+ "author": "Mirantis Inc. <info@k8slens.dev>",
19
+ "type": "commonjs",
20
+ "bin": {
21
+ "lens-types-build": "bin/build-types",
22
+ "lens-types-check": "bin/types-check"
23
+ },
24
+ "files": [
25
+ "bin",
26
+ "config",
27
+ "CHANGELOG.md"
28
+ ],
29
+ "scripts": {
30
+ "clean": ""
31
+ },
21
32
  "dependencies": {
22
- "typescript": "^4.9.3"
33
+ "json5": "^2.2.3",
34
+ "lodash": "^4.17.21",
35
+ "typescript-native": "npm:typescript@~7.0.2",
36
+ "yargs": "^17.7.2"
23
37
  },
24
38
  "devDependencies": {
25
- "typescript-plugin-css-modules": "^5.0.1"
39
+ "@lensapp/jest": "^7.2.0"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public",
43
+ "registry": "https://registry.npmjs.org/"
26
44
  },
27
- "gitHead": "79e4eaa39461488bea3a3d9e872d12ce94e09662"
45
+ "copyright": "© 2025 Mirantis Inc.",
46
+ "nx": {
47
+ "targets": {
48
+ "build:infrastructure": {
49
+ "inputs": [
50
+ "{projectRoot}/bin",
51
+ "{projectRoot}/config"
52
+ ],
53
+ "outputs": []
54
+ }
55
+ }
56
+ }
28
57
  }