typecheck
This commit is contained in:
+3
-2
@@ -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: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'",
|
"dev": "concurrently 'npm:dev:client' 'npm:dev:server'",
|
||||||
"build": "run-p build:client build: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",
|
"build:server": "tsc --project tsconfig.server.json",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build-only:client": "vite build",
|
"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",
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
|
||||||
"format": "prettier --write src/"
|
"format": "prettier --write src/"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"allowSyntheticDefaultImports": true,
|
"allowSyntheticDefaultImports": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"forceConsistentCasingInFileNames": true,
|
"forceConsistentCasingInFileNames": true,
|
||||||
|
"moduleResolution": "node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
/* Modules */
|
/* Modules */
|
||||||
"module": "ESNext", /* Specify what module code is generated. */
|
"module": "ESNext", /* Specify what module code is generated. */
|
||||||
"rootDir": "./server", /* Specify the root folder within your source files. */
|
"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. */
|
// "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. */
|
// "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. */
|
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
||||||
/* Completeness */
|
/* Completeness */
|
||||||
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
// "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": [
|
"include": [
|
||||||
"./server/**/*"
|
"./server/**/*"
|
||||||
|
|||||||
Reference in New Issue
Block a user