postcss / postcss-cli

CLI for postcss
Other
836 stars 93 forks source link

Incorrect version number from cli? #405

Open ManzDev opened 3 years ago

ManzDev commented 3 years ago

With postcss-cli 8.3.1 works fine:

$ npm install -D postcss-cli@8.3.1
$ npx postcss --version
8.3.1

With postcss-cli 9.0.0+ don't works:

$ npm install -D postcss-cli@9.0.1
$ npx postcss --version
1.0.0
RyanZim commented 3 years ago

Yep, seems to be a known bug with our argument parser in ESM modules: https://github.com/yargs/yargs/issues/1934

RyanZim commented 3 years ago

PR: https://github.com/postcss/postcss-cli/pull/406

lk77 commented 2 years ago

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

RyanZim commented 2 years ago

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

franz-josef-kaiser commented 4 months ago

Releases also lag behind tags somehow.

RyanZim commented 4 months ago

@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.