-
Hi there Any advice on how to run a standalone TypeScript type checker on a civet webapp project? In pure Typescript world, the recommendation seems to be to run I have got some nice type errors in civet files with Visual Studio + Civet language server + tsconfig.json as the code editor. But I wanted a standalone type checker to augment my use of esbuild + Civet esbuild plugin as the webapp build tool. The civet plugin transpiles to js and doesn't seem to error on type issues (and esbuild doesn't process typescript types any way). Many thanks Greg |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Eventually we plan to have a standalone tool for this: #61 In an esbuild context, I wonder if we could use https://www.npmjs.com/package/@jgoz/esbuild-plugin-typecheck together with #448. You're right that the esbuild plugin currently hard-codes |
Beta Was this translation helpful? Give feedback.
An update on this: The CLI tool can now do typechecking of Civet code via
civet --typecheck
. See https://civet.dev/getting-started#typecheckingI think it will work with imported js files (or ts files) but let us know if you run into trouble.