Skip to content

Commit

Permalink
Fix issue that prevent formatting Picture component
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Jul 28, 2022
1 parent dcdc289 commit 5536c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dev": "turbo run dev --no-deps --no-cache --parallel --scope=astro --scope=create-astro --scope=\"@astrojs/*\"",
"format": "pnpm run format:code",
"format:ci": "pnpm run format:imports && pnpm run format:code",
"format:code": "prettier -w . --cache",
"format:code": "prettier -w . --cache --plugin-search-dir=.",
"format:imports": "organize-imports-cli ./packages/*/tsconfig.json ./packages/*/*/tsconfig.json",
"test": "turbo run test --output-logs=new-only --concurrency=1",
"test:match": "cd packages/astro && pnpm run test:match",
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/image/components/Picture.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const { image, sources } = await getPicture({ src, widths, formats, aspectRatio

<picture {...attrs}>
{sources.map(attrs => (
<source {...attrs} {sizes}>))}
<source {...attrs} sizes={sizes}>))}
<img {...image} {loading} {decoding} {alt} />
</picture>

Expand Down

0 comments on commit 5536c51

Please sign in to comment.