typecheck

This commit is contained in:
2023-08-04 17:10:34 +00:00
parent f2ad6ad897
commit a39543e718
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -8,11 +8,12 @@
"dev:server": "TS_NODE_PROJECT=\"tsconfig.server.json\" nodemon --watch 'server/**/*.ts' --exec 'node --experimental-specifier-resolution=node --loader ts-node/esm' server/index.ts",
"dev": "concurrently 'npm:dev:client' 'npm:dev:server'",
"build": "run-p build:client build:server",
"build:client": "run-p type-check build-only:client",
"build:client": "run-p type-check:client build-only:client",
"build:server": "tsc --project tsconfig.server.json",
"preview": "vite preview",
"build-only:client": "vite build",
"type-check": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"type-check:server": "tsc --noEmit -p tsconfig.server.json",
"type-check:client": "vue-tsc --noEmit -p tsconfig.app.json --composite false",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
"format": "prettier --write src/"
},
+1
View File
@@ -17,6 +17,7 @@
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"strict": true,
}
}
+2 -2
View File
@@ -26,7 +26,7 @@
/* Modules */
"module": "ESNext", /* Specify what module code is generated. */
"rootDir": "./server", /* Specify the root folder within your source files. */
"moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
"moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
// "baseUrl": ".", /* Specify the base directory to resolve non-relative module names. */
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -98,7 +98,7 @@
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
// "skipLibCheck": true, /* Skip type checking all .d.ts files. */
"skipLibCheck": true, /* Skip type checking all .d.ts files. */
},
"include": [
"./server/**/*"