I am in need of assistance with compiling TypeScript files (ts) into JavaScript files (js) and mapping files (js.map) all within the same directory as the source file.
I have attempted to configure this in my tsconfig.json file using:
{
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"outDir": "./",
}
}
and also tried:
{
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"outDir": ".",
}
}
However, these configurations did not produce the desired results. I am seeking guidance on the correct configuration settings for achieving this. Is there a --outDir
parameter that can be set to compile everything in the same directory?
Additionally, I am curious if there are variable options available in PhpStorm that could assist with configuring TypeScript compilation.