glideapps / glideapps/ts-helper

Doesnt work on windows because of backslashes?

Open
#2 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
13
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Hello! Thank you for your project! There is an issue in Windows when I adding a root file with a -r flag.
So there is my command
```
npx "@glideapps/ts-helper" -p "C:/Users/usr/develop/company" -r "C:/Users/usr/develop/company/src/favorites/Favorites/EmptyFavorites.tsx" -c -v
```
When Im trying to execute the command I getting an `Assertion failed` error in my console.
Thats because its changing backslash somehow
In my console I see this:

![Image](https://github.com/user-attachments/assets/eecb1d65-901f-4780-ae05-5067afeb0f28)

```
Adding root file C:/Users/usr/develop/company/src/favorites/Favorites/EmptyFavorites.tsx
found false
file C:\Users\usr\develop\company\src\favorites\Favorites\EmptyFavorites.tsx
projectInfos [Map Iterator] {
{
projectDir: 'C:/Users/usr/develop/company',
...
```
so its cannot find a file because of diff between \ and / backslash

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.