Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect version number from cli? #405

Open
ManzDev opened this issue Sep 30, 2021 · 6 comments · May be fixed by #406
Open

Incorrect version number from cli? #405

ManzDev opened this issue Sep 30, 2021 · 6 comments · May be fixed by #406

Comments

@ManzDev
Copy link

ManzDev commented Sep 30, 2021

With postcss-cli 8.3.1 works fine:

$ npm install -D [email protected]
$ npx postcss --version
8.3.1

With postcss-cli 9.0.0+ don't works:

$ npm install -D [email protected]
$ npx postcss --version
1.0.0
@RyanZim
Copy link
Collaborator

RyanZim commented Sep 30, 2021

Yep, seems to be a known bug with our argument parser in ESM modules: yargs/yargs#1934

RyanZim added a commit that referenced this issue Sep 30, 2021
@RyanZim RyanZim linked a pull request Sep 30, 2021 that will close this issue
@RyanZim
Copy link
Collaborator

RyanZim commented Sep 30, 2021

PR: #406

@lk77
Copy link

lk77 commented Aug 31, 2022

I have the same issue it shows 0.0.0 when it's 10.0.0

@RyanZim
Copy link
Collaborator

RyanZim commented Aug 31, 2022

Yes, this is a known bug with a dependency we use; if anyone can work on fixing yargs/yargs#1934, it would be appreciated.

@franz-josef-kaiser
Copy link

Releases also lag behind tags somehow.

@RyanZim
Copy link
Collaborator

RyanZim commented May 30, 2024

@franz-josef-kaiser https://github.com/postcss/postcss-cli/blob/master/CHANGELOG.md has the updated info; I've stopped updating GH releases, as it's just duplicate work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants