Skip to content

Commit 2afa8be

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

3 files changed

Lines changed: 13 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"homepage": "https://github.com/webdeveric/styled-json-console/#readme",
4949
"packageManager": "pnpm@10.26.2+sha512.0e308ff2005fc7410366f154f625f6631ab2b16b1d2e70238444dd6ae9d630a8482d92a451144debc492416896ed16f7b114a86ec68b8404b2443869e68ffda6",
5050
"scripts": {
51-
"clean": "rimraf ./dist/",
51+
"clean": "rimraf ./dist/ ./cache/",
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)