You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
I had the same problem using the cli on Windows and used path.normalize to fix the problem locally. Running the tests on Windows resulted in a few errors due to the different line endings on Windows. I've managed to get the unit and integration tests to run without errors.
steidinger
added a commit
to steidinger/ts-api-guardian
that referenced
this issue
Feb 15, 2017
The command
gulp public-api:update
fails on Windows with the error: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 theResolvedDeclarationEmitter
constructor tothis.fileName = fileName.replace(/\\/g,"/");
.With this change the update command runs successfully.
However a more appropriate fix might be necessary.
The text was updated successfully, but these errors were encountered: