Skip to content

Commit

Permalink
chore: prevent relative import paths
Browse files Browse the repository at this point in the history
Some IDEs (such as VS Code) are aware of the `baseUrl'
property, and will auto-complete imports using the base
URL as a prefix in the import, instead of a relative URL.

This creates problems for consumers of the library, as the path
is no longer relative to the top level project base (I think).

Even if this is untrue, it's best to stick with a single,
consistent approach.

As an example, see a20ad80 which had to correct one such
problem.

See also #974
  • Loading branch information
mefellows committed Nov 14, 2022
1 parent a20ad80 commit 94584bf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist",
"baseUrl": "src",
"sourceMap": true,
"noLib": false,
"noImplicitReturns": true,
Expand Down

0 comments on commit 94584bf

Please sign in to comment.