mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-12 02:15:01 +00:00
Set noEmit in tsconfig.json (#37928)
We use Vite to compile TS files, so tsc is used merely for type-checking. Setting noEmit to true makes sure that other tools which use tsc (like editor plugins) do not make tsc compile code. outDir is removed as it's not needed if we do not use tsc to compile code.
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@
|
||||
"tdd": "jest --watch",
|
||||
"lint": "yarn prettier-check && yarn eslint",
|
||||
"eslint": "eslint --quiet '+(e|web)/**/*.{ts,tsx,js,jsx,mts}'",
|
||||
"type-check": "NODE_OPTIONS='--max-old-space-size=4096' tsc --noEmit",
|
||||
"type-check": "NODE_OPTIONS='--max-old-space-size=4096' tsc",
|
||||
"prettier-check": "yarn prettier --check '+(e|web)/**/*.{ts,tsx,js,jsx,mts}'",
|
||||
"prettier-write": "yarn prettier --write --loglevel silent '+(e|web)/**/*.{ts,tsx,js,jsx,mts}'",
|
||||
"process-icons": "node web/packages/design/src/Icon/script/script.js & yarn prettier --loglevel silent --write 'web/packages/design/src/Icon/Icons/*.tsx'",
|
||||
|
||||
+2
-2
@@ -12,6 +12,7 @@
|
||||
"jsx": "react-jsx",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "bundler",
|
||||
"noEmit": true,
|
||||
"noEmitHelpers": true,
|
||||
"resolveJsonModule": true,
|
||||
"skipLibCheck": true,
|
||||
@@ -34,8 +35,7 @@
|
||||
"gen-proto-js/*": ["gen/proto/js/*"],
|
||||
"gen-proto-ts/*": ["gen/proto/ts/*"],
|
||||
"access-graph": ["e/web/teleport/src/AccessGraph/Loader.tsx"],
|
||||
},
|
||||
"outDir": "dist"
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"e/web/**/*.ts",
|
||||
|
||||
Reference in New Issue
Block a user