Skip to content

Commit 858d6d2

Browse files
committed
Fix checkProject option
1 parent 13c0828 commit 858d6d2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ Configuration can get specified in your `package.json` file under `ts-scripts`:
5555
- `src` - An array of source directories used for `format` and `lint` (default: `["src"]`)
5656
- `ignore` - An array of patterns to ignore for `format` and `lint` (default: `[]`)
5757
- `dist` - An array of output directories to clean before `build` (default: `["dist"]`)
58-
- `project` An array of `tsconfig.json` project files to build using TypeScript (default: `["tsconfig.json"]`)
59-
- `checkProject` An array of `tsconfig.json` project files to type check using TypeScript (default: `["tsconfig.json"]`)
58+
- `project` An array of TSConfig files to build using TypeScript (default: `["tsconfig.json"]`)
59+
- `checkProject` An array of TSConfig files to type check using TypeScript (default: `["tsconfig.json"]`)
6060
- `test` An array of test configuration objects (default: `[{}]`)
6161
- `dir` The directory to read tests from (default: `undefined`, root directory)
6262
- `config` The configuration file to use for this test (default: `undefined`, discovered by `vitest`)

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,11 +449,11 @@ const configSchema = object({
449449
ignore: arrayifySchema(string()).optional(),
450450
dist: arrayifySchema(string()).optional(),
451451
project: arrayifySchema(string()).optional(),
452+
checkProject: arrayifySchema(string()).optional(),
452453
test: arrayifySchema(
453454
object({
454455
dir: string().optional(),
455456
config: string().optional(),
456-
project: string().optional(),
457457
})
458458
).optional(),
459459
});
@@ -472,7 +472,7 @@ export async function getConfig(cwd: string): Promise<Config> {
472472
ignore: arrayify(schema.ignore ?? []),
473473
dist: arrayify(schema.dist ?? "dist"),
474474
project: arrayify(schema.project ?? "tsconfig.json"),
475-
checkProject: arrayify(schema.project ?? "tsconfig.json"),
475+
checkProject: arrayify(schema.checkProject ?? "tsconfig.json"),
476476
test: arrayify(schema.test ?? {}).map((testSchema) => ({
477477
dir: testSchema.dir,
478478
config: testSchema.config,

0 commit comments

Comments
 (0)