chromaui / chromatic-cli

Chromatic CLI: `npx chromatic`
https://www.chromatic.com/docs/cli
MIT License
289 stars 70 forks source link

Fix `.env` parsing #1104

Closed codykaup closed 1 month ago

codykaup commented 1 month ago

Closes #1103

When fixing unicorn/prefer-module errors in #1061, I moved the import to the top of the file but since dotenv hasn't ran yet, the .env file is parsed after those imports. Simply moving those to dynamic imports fixes that issue!

📦 Published PR as canary version: 11.13.1--canary.1104.11444006930.0
:sparkles: Test out this PR locally via: ```bash npm install chromatic@11.13.1--canary.1104.11444006930.0 # or yarn add chromatic@11.13.1--canary.1104.11444006930.0 ```
github-actions[bot] commented 1 month ago

📦 Package Size: 5300 KB ⚠️ Compared to main: +36 KB 94f914ec8296ae838bddbaae6366f6fcc1d3d8ec (5264 KB)

codacy-production[bot] commented 1 month ago

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
:white_check_mark: +0.04% (target: -1.00%) :x: 0.00% (target: 80.00%)
Coverage variation details | | Coverable lines | Covered lines | Coverage | | ------------- | ------------- | ------------- | ------------- | | Common ancestor commit (94f914ec8296ae838bddbaae6366f6fcc1d3d8ec) | 8545 | 4677 | 54.73% | | | Head commit (ea6ae9e21caabe579e588b20d4d2eb0da544f522) | 8539 (-6) | 4677 (+0) | 54.77% (**+0.04%**) | **Coverage variation** is the difference between the coverage for the head and common ancestor commits of the pull request branch: ` - `
Diff coverage details | | Coverable lines | Covered lines | Diff coverage | | ------------- | ------------- | ------------- | ------------- | | Pull request (#1104) | 6 | 0 | **0.00%** | **Diff coverage** is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: `/ * 100%`

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

chromatic-ci-bot commented 1 month ago

:rocket: PR was released in v11.13.0 :rocket: