policyfly / vue-script-tsc

A lightning fast TypeScript type checker for Vue SFC Script tags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option for running without emit

danielwaltz opened this issue · comments

Hello!

Tried out this package in my project and really like the speed of type checking, but noticed that by default it's generating and writing files to the file system in my source code.

Is there a way to run this where the files are checked in memory, or maybe in a separate cache folder?

Thanks for your work on this!

Thanks, glad you like it.

Are you using the compilerOptions.noEmit option in your tsconfig.json? That should prevent the output you're seeing. See the following from one of the text fixtures (in particular line 8):

"compilerOptions": {
"target": "es6",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "src-clean",
"strict": true,
"noEmit": true
},

That was the problem! Adding "noEmit": true to my tsconfig.json solved it. Thank you for the quick response! I'll go ahead and close this but leave it around in case others run into this problem like I did.