Skip to content

[Bug]: dts no longer respects output.distPath.root since v0.5.1 #785

@Karibash

Description

@Karibash

Version

System:
    OS: macOS 15.3
    CPU: (11) arm64 Apple M3 Pro
    Memory: 98.45 MB / 36.00 GB
    Shell: 3.7.1 - /opt/homebrew/bin/fish
  Browsers:
    Chrome: 133.0.6943.127
    Safari: 18.3
  npmPackages:
    @rslib/core: 0.5.1 => 0.5.1

Details

After upgrading to v0.5.1, I noticed that the generated TypeScript declaration files (.d.ts) no longer respect output.distPath.root. In previous versions, the .d.ts files were placed under the configured output.distPath.root, but now they seem to be placed in a different location.

Expected Behavior

The declaration files should be placed under the directory specified in output.distPath.root.

Actual Behavior

The declaration files are generated outside of the expected output.distPath.root location.

Additional Information

This behavior was not observed in v0.5.0. It seems to be a regression introduced in v0.5.1. Could you confirm if this change was intentional or if it is a bug?

Reproduce link

https://codesandbox.io/p/devbox/great-elbakyan-njflsf

Reproduce Steps

  1. Configure output.distPath.root in the build settings.
  2. Run the build process.
  3. Observe that .d.ts files are not placed in the specified root directory.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions