Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove baseUrl from tsconfigs #12981

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

tortmayr
Copy link
Contributor

@tortmayr tortmayr commented Oct 9, 2023

What it does

According to the tsconfig doc:

This feature was designed for use in conjunction with AMD module loaders in the browser, and is not recommended in any other context. As of TypeScript 4.1, baseUrl is no longer required to be set when using paths.

In addition, this options does not work well with auto import resolving of Typescript-LSPs (i.e. Theia/VS Code). Auto import might resolves to a statement starting with src ( e.g. import { ChannelMultiplexer } from 'src/common/message-rpc/channel';) which does not work well with inversify and can result in runtime errors.

Most of the packages don't use it anyways. This PR removes the remaining usages and adapts src imports.

Contributed on behalf of STMicroelectronics

How to test

Building & running the example application should still work as before

Follow-ups

Review checklist

Reminder for reviewers

According to the [tsconfig doc](https://www.typescriptlang.org/tsconfig#baseUrl):
This feature was designed for use in conjunction with AMD module loaders in the browser, and is not recommended in any other context. As of TypeScript 4.1, baseUrl is no longer required to be set when using paths.
In addition, this options does not work well with auto import resolving of Typescript-LSPs (i.e. Theia/VS Code).
Auto import might resolves to a statement starting with `src` ( e.g. ` 
import { ChannelMultiplexer } from 'src/common/message-rpc/channel';`) which does not work well with inversify and can result in runtime errors

Most of the packages don't use it anyways. This PR removes the remaining usages and adapts `src` imports.
Copy link
Contributor

@martin-fleck-at martin-fleck-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and I couldn't find any other places where the baseUrl is defined. CI is also happy so let's get this merged! Thank you, Tobias!

@tortmayr tortmayr merged commit 8e7b161 into eclipse-theia:master Nov 22, 2023
13 checks passed
ivy-cst added a commit to axonivy/inscription-client that referenced this pull request Nov 24, 2023
ivy-cst added a commit to axonivy/process-editor-client that referenced this pull request Nov 24, 2023
@vince-fugnitto vince-fugnitto added this to the 1.44.0 milestone Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants