A
avercet
Guest
so when i save a *.ts file with no tsconfig.json file in vs2019 compiles it to *.js in the root directory. I have added a ./src and ./dist directory and have edited the "outDir": "./dist", "rootDir": "./src",
and added a tsconfig.json file. Now, it doesn't compile on save anymore. I can run tsc in the root for it to compile successfully and place files accordingly. Are there any settings that allow the IDE to auto compile on save following the tsconfig.json file rules. i basically want a src and dist directory and when i save the src files the dist dir, javascript files are created in the src without webpack etc.
The auto compile worked fine until i added the tsconfig.json file. - as i say, if i run the tsc command it works as expected. i want the ide to obey the tsconfig.json file and do it automatically on save, but to the correct directories listed in tsconfig. what am i missing pls? any ideas? thanks
Continue reading...
and added a tsconfig.json file. Now, it doesn't compile on save anymore. I can run tsc in the root for it to compile successfully and place files accordingly. Are there any settings that allow the IDE to auto compile on save following the tsconfig.json file rules. i basically want a src and dist directory and when i save the src files the dist dir, javascript files are created in the src without webpack etc.
The auto compile worked fine until i added the tsconfig.json file. - as i say, if i run the tsc command it works as expected. i want the ide to obey the tsconfig.json file and do it automatically on save, but to the correct directories listed in tsconfig. what am i missing pls? any ideas? thanks
Continue reading...