jscutlery / semver

Nx plugin to automate semantic versioning and CHANGELOG generation.
MIT License
719 stars 83 forks source link

How to pass postTargets as cli args ? #787

Closed bencat-sixense closed 4 months ago

bencat-sixense commented 4 months ago

I try to pass the --postTargets from the cli- instead of project.json.

No matter the format, I always get this error:

Error: Invalid Target String: [myTarget]

I've tried: --postTargets=["target1","target2"] --postTargets="target1,target2" --postTargets=target1

And many more...

Is it just possible to do that ?

Thanks for your help !

bencat-sixense commented 4 months ago

I found the problem:

I had to revert from

--postTargets=["target1","target2"]

to

--postTargets=["my-project-name:target1","my-project-name:target2"]

I close this issue :)