chore: don't emit code when verifying types in CI (#1380)
All checks were successful
Build / build (20) (push) Successful in 42s
Build / build (22) (push) Successful in 1m17s
Build / build (18) (push) Successful in 1m15s
Build Docker image / docker (push) Successful in 33s

Reviewed-on: #1380
Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com>
Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
Sainan 2025-03-30 05:02:42 -07:00 committed by Sainan
parent f7ada5a7e5
commit c376ff25f3
3 changed files with 4 additions and 3 deletions

View File

@ -17,5 +17,5 @@ jobs:
node-version: ${{ matrix.version }}
- run: npm ci
- run: cp config.json.example config.json
- run: npm run build
- run: npm run verify
- run: npm run lint

View File

@ -6,7 +6,8 @@
"scripts": {
"start": "node --import ./build/src/pathman.js build/src/index.js",
"dev": "ts-node-dev --openssl-legacy-provider -r tsconfig-paths/register src/index.ts ",
"build": "tsc && copyfiles static/webui/** build",
"build": "tsc --incremental && copyfiles static/webui/** build",
"verify": "tsc --noEmit",
"lint": "eslint --ext .ts .",
"lint:fix": "eslint --fix --ext .ts .",
"prettier": "prettier --write .",

View File

@ -3,7 +3,7 @@
/* Visit https://aka.ms/tsconfig to read more about this file */
/* Projects */
"incremental": true /* Save .tsbuildinfo files to allow for incremental compilation of projects. */,
// "incremental": true /* Save .tsbuildinfo files to allow for incremental compilation of projects. */,
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */