Skip to content

Commit ad04966

Browse files
committed
chore: typecheck and lint the example folder
1 parent 5ffa654 commit ad04966

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
"clean": "rimraf ./dist/",
5252
"prebuild": "pnpm clean",
5353
"build": "tsc --build tsconfig.src.json --force",
54-
"typecheck": "tsc --build tsconfig.src.json tsconfig.test.json tsconfig.configs.json --verbose",
55-
"lint": "eslint ./*.{js,cjs,mjs,ts,cts,mts} ./src/ --ext .ts",
54+
"typecheck": "tsc --build tsconfig.json --verbose",
55+
"lint": "eslint ./*.{js,cjs,mjs,ts,cts,mts} ./src/ ./example/ --ext .ts",
5656
"test": "vitest --typecheck",
5757
"coverage": "vitest run --coverage --typecheck",
5858
"validate": "validate-package-exports --check --verify",

tsconfig.example.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"extends": "./tsconfig.base.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"rootDir": "./example/",
6+
"tsBuildInfoFile": "./cache/example.tsbuildinfo"
7+
},
8+
"include": ["example/**/*"]
9+
}

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
},
88
"references": [
99
{ "path": "./tsconfig.src.json" },
10+
{ "path": "./tsconfig.example.json" },
1011
{ "path": "./tsconfig.test.json" },
1112
{ "path": "./tsconfig.configs.json" }
1213
]

0 commit comments

Comments
 (0)