wclr / yalc

Work with yarn/npm packages locally like a boss.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yalc don't work with package that have @ in their name

rorp24 opened this issue · comments

I want to use a local package that will have an @ in it. I can publish the package in yalc, but when I want to add it, it give me this error:

$ yalc add @package-name
Could not find package `package-name` in store (C:\Users\me\AppData\Local\Yalc\packages\package-name), skipping.

Turn out when I add it in yalc, it is registered as C:\Users\me\AppData\Local\Yalc\packages\@package-name but the add command remove the @.

How can I solve this issue.

I use yalc 1.0.0-pre.53

commented

@rorp24 I am not sure why you would prefix a package name with @.
Usually, @ is used for scopes, not for names. Meaning, the full name should have a slash (/) on top of the preceeding @.

e.g. if you name it @a/b, it should work.

I use scoped package names and it works for me.
However, I have never tried naming a package just @a.

commented

Closing this.