Skip to content

chore(tsconfig): drop deprecated baseUrl in favor of relative paths#4698

Open
gentslava wants to merge 1 commit into
Dokploy:canaryfrom
gentslava:chore/tsconfig-drop-baseurl
Open

chore(tsconfig): drop deprecated baseUrl in favor of relative paths#4698
gentslava wants to merge 1 commit into
Dokploy:canaryfrom
gentslava:chore/tsconfig-drop-baseurl

Conversation

@gentslava

Copy link
Copy Markdown
Contributor

What is this PR about?

baseUrl is deprecated in TypeScript and will stop working in TypeScript 7.0 — newer TypeScript versions surface a "Option 'baseUrl' is deprecated… Specify compilerOption '"ignoreDeprecations": "6.0"'" warning in the editor.

Every tsconfig in the repo only uses baseUrl together with paths, and all of those path mappings are already relative (./*, ../../packages/server/src/*, ./src/*). Since TypeScript 4.1 relative paths resolve from each tsconfig's own directory without baseUrl, so this simply removes baseUrl from all 6 tsconfig files. That clears the deprecation cleanly, without resorting to ignoreDeprecations.

Files touched:

  • apps/dokploy/tsconfig.json, apps/dokploy/tsconfig.server.json
  • packages/server/tsconfig.json, packages/server/tsconfig.server.json
  • apps/api/tsconfig.json
  • apps/schedules/tsconfig.json

No behavior change — only the now-redundant baseUrl option is removed.

Checklist

Before submitting this PR, please make sure that:

  • You created a dedicated branch based on the canary branch.
  • You have read the suggestions in the CONTRIBUTING.md file https://github.com/Dokploy/dokploy/blob/canary/CONTRIBUTING.md#pull-request
  • You have tested this PR in your local instance. Verified that path-alias resolution is unaffected: packages/server / apps/api / apps/schedules typecheck cleanly, the server build (tsc + tsc-alias) succeeds, @/ and @dokploy/* still resolve in apps/dokploy, and the vitest suite passes.

Issues related (if applicable)

n/a

Screenshots (if applicable)

n/a — config-only change.

baseUrl is deprecated and will stop working in TypeScript 7.0 (newer TS
versions surface a "Specify ignoreDeprecations: 6.0" warning). Every
tsconfig only uses baseUrl together with paths, and all path mappings are
already relative, so since TS 4.1 they keep resolving from each tsconfig's
own directory without baseUrl. Removes the deprecation without needing
ignoreDeprecations.

Verified locally: server typecheck + build (tsc + tsc-alias), api and
schedules typecheck, dokploy @/ and @dokploy/* resolution, and the vitest
suite all pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gentslava gentslava requested a review from Siumauricio as a code owner June 24, 2026 18:22
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant