@naturalcycles/dev-lib 20.22.1 → 20.22.2

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.
@@ -17,7 +17,8 @@ const commands = [
17
17
  { name: 'bt', fn: bt, desc: 'Build & Test: run "typecheck" (via oxlint) and then "test".' },
18
18
  {
19
19
  name: 'typecheck',
20
- fn: typecheckWithOxlint,
20
+ // fn: typecheckWithOxlint,
21
+ fn: typecheckWithTSC, // todo: attempt tsgo
21
22
  desc: 'Run typecheck via oxlint --type-aware',
22
23
  },
23
24
  {
@@ -157,6 +158,7 @@ runScript(async () => {
157
158
  });
158
159
  async function check() {
159
160
  await lintAllCommand();
161
+ await typecheckWithTSC(); // unfortunately still needed since oxlint doesn't catch all ts errors
160
162
  runTest();
161
163
  }
162
164
  async function quickCheck() {
@@ -164,15 +166,19 @@ async function quickCheck() {
164
166
  runTest();
165
167
  }
166
168
  async function bt() {
167
- await typecheckWithOxlint();
169
+ // Still using tsc, as oxlint is found to fail in certain cases
170
+ // todo: attempt to use tsgo!
171
+ // await typecheckWithOxlint()
172
+ await typecheckWithTSC();
168
173
  runTest();
169
174
  }
170
- async function typecheckWithOxlint() {
175
+ async function _typecheckWithOxlint() {
171
176
  requireOxlintConfig();
172
177
  const fix = !CI;
173
178
  runOxlint(fix);
174
179
  }
175
180
  async function typecheckWithTSC() {
181
+ // todo: try tsgo
176
182
  await runTSCInFolders(['src', 'scripts', 'e2e'], ['--noEmit']);
177
183
  }
178
184
  async function cleanDist() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.22.1",
4
+ "version": "20.22.2",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@eslint/js": "^9",