compile-hero icon indicating copy to clipboard operation
compile-hero copied to clipboard

use project's tsconfig.json file

Open alacambra opened this issue 5 years ago • 6 comments

It looks like that compile hero is using strict compilation. I have configured my project to do not use it. Is compile hero using some defaults? Can they be changed? Thanks for your help and grate job 👍

alacambra avatar Aug 23 '20 19:08 alacambra

It looks like that compile hero is using strict compilation. I have configured my project to do not use it. Is compile hero using some defaults? Can they be changed? Thanks for your help and grate job 👍

Thank you for your suggestion, this has been included in my next update plan😁

Wscats avatar Aug 24 '20 03:08 Wscats

It looks like that compile hero is using strict compilation. I have configured my project to do not use it. Is compile hero using some defaults? Can they be changed? Thanks for your help and grate job 👍

Thank you for your suggestion, this has been included in my next update plan😁

I updated the feature of the plugin, now you can configure ts using tsconfig.json. Add or overwrite certain settings in the tsconfig.json file, you can create a new tsconfig.json in the same directory of your .ts file.

Here Example tsconfig.json file:

{
    "compilerOptions": {
        "alwaysStrict": true,
        "importHelpers": false
    }
}

Wscats avatar Aug 30 '20 07:08 Wscats

same issue here. where do I locate the tsconfig.json in my workspace and how do I tell compile-hero to use that?

beyondtheline avatar Sep 25 '20 13:09 beyondtheline

same issue here. where do I locate the tsconfig.json in my workspace and how do I tell compile-hero to use that?

create a new tsconfig.json in the same directory of your .ts file.

Wscats avatar Sep 26 '20 01:09 Wscats

same issue here. where do I locate the tsconfig.json in my workspace and how do I tell compile-hero to use that?

create a new tsconfig.json in the same directory of your .ts file.

So i have to put tsconfig.json under /js/ and also under /css/ aparently. Is it possible to just have one file in root folder?

alanxp avatar Nov 15 '20 00:11 alanxp

same issue here. where do I locate the tsconfig.json in my workspace and how do I tell compile-hero to use that?

create a new tsconfig.json in the same directory of your .ts file.

So i have to put tsconfig.json under /js/ and also under /css/ aparently. Is it possible to just have one file in root folder?

ts and tsconfig.json must be in the same directory, so if you want to compile and configure ts files, you need to create a tsconfig.json file in your ts file directory.

Wscats avatar Nov 15 '20 00:11 Wscats