Skip to content

[Bug]: Failed to clean DTS output path #405

@chenjiahan

Description

@chenjiahan

Version

Rslib 0.0.17

Details

The DTS output folder will not be cleaned if dts.distPath is not the dist folder.

  • Example:
export default {
  lib: [
    {
      dts: {
        distPath: './dist-types',
      },
    },
  ],
}

Reproduce link

https://github.com/web-infra-dev/rsbuild/tree/main/packages/core

Reproduce Steps

  1. pnpm i
  2. cd packages/core
  3. pnpm run build

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions