HipsterBrown/xs-dev

teardown does not remove xsbug symlink (macOS)

phoddie opened this issue · 2 comments

After a successfully xs-dev setup, executing...

xs-dev teardown

...leaves the xsbug symlink the Applications folder. When reinstalling, that results in a warnings:

ℹ xsbug.app symlink already exists

Thanks for looking into this. This fix didn't work for me. I tracked it down to this line in teardown.js:

if ((0, os_1.type)() === 'darwin') {

Running macOS 12.6 , the value of (0, os_1.type)() is "Darwin" not "darwin".

I'm also curious why (0, os_1.type)() isn't just os_1.type().

Ah I forgot about the capitalization from os.type(), which I usually normalize with .toLowerCase(). That's what happens when I add some logic after manually testing 😞