Php storm automatically generates .js files from .ts

Hi everyone,

In my project phpstorm automatically genrates .js files into the project right under it's ts counterpart.

These files are excluded but makes my life difficult as they give errors while running tests and stuff.

If anyone has any idea how to stop this from happening, please help. this is my tsconfig file

{
"compilerOptions": {
"noUnusedLocals": true,
"module": "commonjs",
"esModuleInterop": true,
"target": "es6",
"noImplicitAny": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"sourceMap": true,
"resolveJsonModule": true,
"outDir": "dist",
"baseUrl": ".",
"paths": {
"*": ["node_modules/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts"]
}
0
1 comment

the built-in compiler server does respect the tsconfig.json file when compiling, so emitted .js and .map files should be placed in dist, not next to the source files.

Does it happen with all your .ts files, or with some certain ones? Do you have any other tsconfig.*.json files in your project? What do the Typescript settings in Settings | Languages & Frameworks | TypeScript look like?

0

Please sign in to leave a comment.