Skip to content

Commit 0897d95

Browse files
authored
chore: update test types npm script and CI job (#315)
1 parent 44b445b commit 0897d95

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ jobs:
7070
npm install
7171
npm run build
7272
73+
- name: Run TypeScript Compiler
74+
run: npx tsc
75+
7376
- name: Test types (core)
7477
working-directory: packages/core
7578
run: |

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"fmt": "prettier --write .",
1414
"fmt:check": "prettier --check .",
1515
"test:jsr": "npm run test:jsr --workspaces --if-present",
16-
"test:types": "tsc"
16+
"test:types": "tsc && npm run test:types --workspaces --if-present"
1717
},
1818
"workspaces": [
1919
"packages/*"

packages/migrate-config/src/migrate-config-cli.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import fsp from "node:fs/promises";
2424
import path from "node:path";
2525
import { migrateConfig, migrateJSConfig } from "./migrate-config.js";
26+
// @ts-ignore: No types available
2627
import { Legacy } from "@eslint/eslintrc";
2728

2829
//-----------------------------------------------------------------------------

packages/migrate-config/src/migrate-config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//-----------------------------------------------------------------------------
99

1010
import * as recast from "recast";
11+
// @ts-ignore: No types available
1112
import { Legacy } from "@eslint/eslintrc";
1213
import camelCase from "camelcase";
1314
import pluginsNeedingCompat from "./compat-plugins.js";

0 commit comments

Comments
 (0)