Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Does not work on Windows due to path delimiter issues #13

@marcuskrahl

Description

@marcuskrahl

The command gulp public-api:update fails on Windows with the error:

Error: Source file "dist\packages-dist\core\index.d.ts" not found

However the file exists. It is not found because the path string is made of Windows path delimiters \ instead of Unix delimiters /.

As a dirty hack you can change this.fileName = fileName; in the ResolvedDeclarationEmitter constructor to this.fileName = fileName.replace(/\\/g,"/");.
With this change the update command runs successfully.
However a more appropriate fix might be necessary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions