svelte-ux icon indicating copy to clipboard operation
svelte-ux copied to clipboard

Fix `npm create svelte-ux@latest` on Windows

Open techniq opened this issue 11 months ago • 5 comments

Looks to be an issue handling Window paths...

image

tested works on Mac

image

See discussion

techniq avatar Mar 11 '24 13:03 techniq

@jycouet thoughts?

techniq avatar Mar 26 '24 12:03 techniq

I have to look somewhere else, I think I fixed it already 🤔 RN I can't really look, I'll do in a few days.

Ping me again if I forget.

jycouet avatar Mar 27 '24 09:03 jycouet

No rush. Thanks @jycouet

techniq avatar Mar 27 '24 11:03 techniq

Still the same issue with version 0.3.3 on windows

Carsten-R avatar Mar 31 '24 23:03 Carsten-R

Actually, I didn't managed it... I just did this in another package: https://github.com/jycouet/kitql/blob/main/packages/create-kitql/bin.js#L195-L201

Here is the same function in svelte-ux: https://github.com/techniq/svelte-ux/blob/main/packages/create-svelte-ux/bin.js#L191-L193

I'm sure it's possible to have this working in all OS... But would be easier to have a windows to try things out. Someone wanna give a shoot? (Or should I boot my windows? ^^)

jycouet avatar Apr 01 '24 09:04 jycouet

I wrote a fix #353 for windows but I currently cannot test it other OSs

29th-Day avatar May 18 '24 11:05 29th-Day

Tested on Mac. Thanks @29th-Day!

image

techniq avatar May 18 '24 14:05 techniq

Just waiting on CI to catch up on the queue, then will publish as 0.4.0 (still use npm create svelte-ux@latest)

techniq avatar May 18 '24 14:05 techniq

Done. Thanks again @29th-Day (Gerald)

techniq avatar May 18 '24 14:05 techniq

Nice, thx a lot 👍

jycouet avatar May 18 '24 17:05 jycouet