yalc icon indicating copy to clipboard operation
yalc copied to clipboard

Can I chose the name of the package to publish?

Open Vanals opened this issue 3 years ago • 3 comments

Hi!

I wanto to link a build of my package to another. I build it, I go to /dist, I run yalc publish, and I get the message that my package has been published.

The name includes the version. I want to run this on a pipeline, and get the version would just increase complexity. Is there a way i can decide the name of the package I want to publish with yalc?

At the moment I get [email protected], where x.x.x is the version. Can i for example do something like yalc publish --name myNewName?

Thanks

Vanals avatar May 03 '22 09:05 Vanals

Maybe this could be added as a feature, not sure how often is needed

For now you can update name in package.json before publishing, I recently did so -)

wclr avatar May 03 '22 12:05 wclr

Maybe this could be added as a feature, not sure how often is needed

For now you can update name in package.json before publishing, I recently did so -)

The name I get in the package JSON has not version mentioned 🤔
"dependencies": { "newskit": "file:.yalc/newskit",

But the command suggested by yalc, to add the package, clearly mention the version.

PS: Tested it and I do not need to specify @x.x.x apparently!

Vanals avatar May 03 '22 15:05 Vanals

I probably didn't get your case.

wclr avatar May 03 '22 18:05 wclr