Closed codykaup closed 1 month ago
Coverage variation | Diff coverage |
---|---|
:white_check_mark: -0.16% (target: -1.00%) | :x: 3.70% (target: 80.00%) |
Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more
📦 Package Size: 5268 KB ✅ Compared to main: 0 KB bd798a15c2736daf4cec5be50fcb826cf992e502 (5268 KB)
This fixes a couple issues around versioning in our CLI output.
--version
shows the project'spackage.json
version and not the CLI versionIncorrect version information on build
This one stems from a timing issue between
auto shipit
and our build process. We actually build the CLI before we callauto shipit
(which is whatauto
recommends). However,auto
figures out what the version will be during it's deployment step. Therefore, we need toauto shipit --dry-run
to get the latest version without deployingpackage.json
auto shipit
againIncorrect version from
--version
We use meow for our CLI flags and it tries to figure out the version for you, if it's not set. Therefore, calling
npx chromatic --version
will just print the version in your project instead of the CLI version. Simply setting this value when building fixes that issue!📦 Published PR as canary version:
11.11.1--canary.1079.11182593192.0
:sparkles: Test out this PR locally via: ```bash npm install chromatic@11.11.1--canary.1079.11182593192.0 # or yarn add chromatic@11.11.1--canary.1079.11182593192.0 ```