Skip to content

Support for the new "${configDir}" template variable coming in TS v5.5.0 #3782

@fabiospampinato

Description

@fabiospampinato

In TS v5.5.0 a new ${configDir} template variables will be supported.

Trying to bundle a project that uses that variables in its tsconfig.json with the following command with esbuild@0.21.4:

esbuild --bundle --minify --format=esm --platform=node src/bin.ts > dist/bin.js  

Results in the following warnings:

▲ [WARNING] Non-relative path "${configDir}/src" is not allowed when "baseUrl" is not set (did you forget a leading "./"?) [tsconfig.json]

    node_modules/tsex/tsconfig.json:47:12:
      47 │       "~": ["${configDir}/src"],
         ╵             ~~~~~~~~~~~~~~~~~~

▲ [WARNING] Non-relative path "${configDir}/src/*" is not allowed when "baseUrl" is not set (did you forget a leading "./"?) [tsconfig.json]

    node_modules/tsex/tsconfig.json:48:14:
      48 │       "~/*": ["${configDir}/src/*"]
         ╵               ~~~~~~~~~~~~~~~~~~~~

2 warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions