Skip to content

Commit

Permalink
fix(web): add missing option to tsconfig file (#1513)
Browse files Browse the repository at this point in the history
There were a lot of `Cannot write file '<path>.js' because it would
overwrite input file.` TypeScript complaints apparently because the lack
of the [`outDir`](https://www.typescriptlang.org/tsconfig/#outDir)
option in the _tsconfig.json_ file to avoid the `.js` files overwrite.

This PR sets the `outDir` to the same directory than webpack build,
although another option would be to simply exclude `.js` having in mind
that the goal is to migrate all of them to `.ts`. Anyway, it's a
temporary problem already solved with the mentioned `outDir` option.
  • Loading branch information
dgdavid authored Jul 30, 2024
2 parents 55d8a70 + dad71be commit fb123c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"compilerOptions": {
"baseUrl": "./",
"outDir": "dist/",
"isolatedModules": true,
"target": "esnext",
"moduleResolution": "node",
Expand Down

0 comments on commit fb123c5

Please sign in to comment.