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

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

Open
marcuskrahl opened this issue Nov 29, 2016 · 1 comment
Open

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

marcuskrahl opened this issue Nov 29, 2016 · 1 comment

Comments

@marcuskrahl
Copy link

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.

@steidinger
Copy link

steidinger commented Feb 15, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants