Skip to content

fix: template variable not replaced in baseUrl of tsconfig#61

Merged
stormslowly merged 3 commits intomainfrom
fix/tsconfig_base_url_template_variable_not_replaced
Apr 8, 2025
Merged

fix: template variable not replaced in baseUrl of tsconfig#61
stormslowly merged 3 commits intomainfrom
fix/tsconfig_base_url_template_variable_not_replaced

Conversation

@stormslowly
Copy link
Copy Markdown
Collaborator

ref: close web-infra-dev/rslib#897

close #5

@stormslowly stormslowly enabled auto-merge (squash) April 7, 2025 09:04
@stormslowly stormslowly disabled auto-merge April 7, 2025 09:04
@stormslowly stormslowly enabled auto-merge (squash) April 7, 2025 09:04
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 7, 2025

CodSpeed Performance Report

Merging #61 will not alter performance

Comparing fix/tsconfig_base_url_template_variable_not_replaced (9e622e5) with main (cc908e8)

Summary

✅ 2 untouched benchmarks

@stormslowly stormslowly requested review from Copilot and hardfist April 7, 2025 12:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.

Files not reviewed (2)
  • fixtures/tsconfig/cases/paths_template_variable/tsconfig3.json: Language not supported
  • fixtures/tsconfig/tsconfig_template_variable_with_base_url.json: Language not supported
Comments suppressed due to low confidence (1)

src/tsconfig.rs:237

  • The removal of the trailing slash from the template variable (previously '${configDir}/') may cause incorrect path resolution in cases where a trailing slash is expected. Please verify that this change aligns with the intended behavior and add comments or tests to document the handling of both cases.
fn substitute_template_variable(directory: &Path, path: &mut String) {

@stormslowly stormslowly merged commit 018a909 into main Apr 8, 2025
21 checks passed
@stormslowly stormslowly deleted the fix/tsconfig_base_url_template_variable_not_replaced branch April 8, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: can not resolve path alias from tsconfig when using ${configDir} template variable support configDir template variable in typescript@5.5

3 participants