Skip to content

Commit 384da08

Browse files
committed
chore: ensure test code is type-checked in packages/cli
1 parent e990a13 commit 384da08

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"scripts": {
3535
"prepack": "node ../../scripts/check-workspace-protocol.mjs",
3636
"prepublishOnly": "pnpm run build",
37-
"build": "tsc -p tsconfig.json",
38-
"typecheck": "tsc -p tsconfig.json --noEmit",
37+
"build": "tsc -p tsconfig.build.json",
38+
"typecheck": "tsc -p tsconfig.json",
3939
"test": "vitest run --passWithNoTests",
4040
"lint": "eslint src"
4141
},
@@ -44,4 +44,4 @@
4444
"commander": "^13.1.0",
4545
"fast-glob": "^3.3.3"
4646
}
47-
}
47+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
listMarkdownFiles,
66
listPromptFiles,
77
resolvePreferredPromptFiles,
8-
} from "../src/discovery.js";
8+
} from "../discovery.js";
99

1010
const FIXTURE_DOCS_DIR = path.resolve(import.meta.dirname, "../../../tests/fixtures/docs");
1111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { describe, expect, it } from "vitest";
2-
import { buildHeuristicManifest, suggestChunkBy } from "../src/fix.js";
2+
import { buildHeuristicManifest, suggestChunkBy } from "../fix.js";
33

44
describe("suggestChunkBy", () => {
55
it("returns file when no headings exist", () => {

packages/cli/tsconfig.build.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false
5+
},
6+
"exclude": ["node_modules", "src/test/**"]
7+
}

0 commit comments

Comments
 (0)