Skip to content

Commit

Permalink
add type-check script
Browse files Browse the repository at this point in the history
  • Loading branch information
patreeceeo committed Nov 11, 2023
1 parent 5045b09 commit 88e3ca2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion git_hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ -n "$staged_ts_file_paths" ]; then
yarn prettier $staged_ts_file_paths --write
# type check
# shellcheck disable=SC2086
if ! yarn tsc --noEmit; then
if ! yarn type-check; then
exit 1
fi

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "nodemon start.ts",
"build": "parcel build",
"test": "NODE_ENV=test ts-node --transpileOnly --esm --experimentalSpecifierResolution=node test.ts",
"test-dev": "NODE_OPTIONS=\"--max_old_space_size=8192\" NODE_ENV=test nodemon --transpileOnly --experimentalSpecifierResolution=node test.ts -w \"src/**/*.ts\""
"test-dev": "NODE_OPTIONS=\"--max_old_space_size=8192\" NODE_ENV=test nodemon --transpileOnly --experimentalSpecifierResolution=node test.ts -w \"src/**/*.ts\"",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@parcel/config-default": "^2.10.0",
Expand Down

0 comments on commit 88e3ca2

Please sign in to comment.