Skip to content

Commit

Permalink
fix(types): correct rootDir in tsconfig.json
Browse files Browse the repository at this point in the history
It looks like the default `rootDir` was `"."`, but for some reason,
adding the `src/version.js` file changed the `rootDir` to `"./src/"`.

Fixes: 9a42e3c
Fixes: #803
  • Loading branch information
aloisklink committed Dec 3, 2024
1 parent f98b6f9 commit 6fddb94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
// next to the .js files
// We can't use `dist/` as Vite will automatically overwrite it.
"outDir": "dist-types",
"rootDir": ".",
// go to js file when using IDE functions like
// "Go to Definition" in VSCode
"declarationMap": true,
Expand Down

0 comments on commit 6fddb94

Please sign in to comment.