Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Typings/Paths for react/index.d.ts are not correctly generated  #455

@erkenberg

Description

@erkenberg

Describe the bug

npm run build generates a react/index.d.ts which uses incorrect paths in the current version (1.2.1):

E.g. (occurs multiple times in the file):

export declare const VSCodeBadge: [...] <import("../dist/dist/index.js") ...

To reproduce

  1. Clone the repository
  2. run npm install && npm run build
  3. check the generated react/index.d.ts

Expected behavior

dist only appears once on the path, as it was the case before this commit acadb09:

export declare const VSCodeBadge: [...] <import("../dist/index.js") ...

Current behavior

Starting with the linked commit and later, dist appears twice in the path, which is incorrect, as the path ../dist/dist/... does not exist.

Desktop (please complete the following information):

  • OS Version: macOS 13.2.1
  • Toolkit Version: v1.2.1

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