Skip to content

Commit dec4be8

Browse files
committed
ci: check build for type errors when linting
ESLint does not check this so we build without emitting outputs to perform type checking.
1 parent 3de942c commit dec4be8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"dist/**/!(*.test).{js,d.ts}"
99
],
1010
"scripts": {
11-
"lint": "run-p format:check lint-es",
11+
"lint": "run-p format:check build:check lint-es",
1212
"lint:fix": "run-s format lint-es:fix",
1313
"lint-es": "eslint --ext .ts,.tsx,.js,.jsx,.json .",
1414
"lint-es:file": "eslint --ext .ts,.tsx,.js,.jsx,.json",
@@ -18,6 +18,7 @@
1818
"format:check": "prettier --ignore-path .eslintignore --check \"**/*.{js,jsx,vue,ts,css,less,scss,html,htm,json,md,markdown,yml,yaml}\"",
1919
"format:file": "prettier --write",
2020
"build": "tsc",
21+
"build:check": "tsc --noEmit",
2122
"test": "jest",
2223
"test:ci": "jest --ci --verbose",
2324
"test:staged": "jest --passWithNoTests --findRelatedTests $(git diff --staged --name-only)"

0 commit comments

Comments
 (0)