Skip to content

Commit 9f9374c

Browse files
fix: components imports paths (#15107)
1 parent bf18385 commit 9f9374c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/astro/components/Code.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { ThemePresets } from '@astrojs/markdown-remark';
33
import type { ShikiTransformer, ThemeRegistration, ThemeRegistrationRaw } from 'shiki';
44
import { bundledLanguages } from 'shiki/langs';
55
import { getCachedHighlighter } from '../dist/core/shiki.js';
6-
import type { CodeLanguage } from '../dist/types/public';
7-
import type { HTMLAttributes } from '../types';
6+
import type { CodeLanguage } from '../dist/types/public/index.js';
7+
import type { HTMLAttributes } from '../types.js';
88
99
interface Props extends Omit<HTMLAttributes<'pre'>, 'lang'> {
1010
/** The code to highlight. Required. */

packages/astro/components/Image.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
import { getImage, imageConfig, type LocalImageProps, type RemoteImageProps } from 'astro:assets';
3-
import type { UnresolvedImageTransform } from '../dist/assets/types';
3+
import type { UnresolvedImageTransform } from '../dist/assets/types.js';
44
import { AstroError, AstroErrorData } from '../dist/core/errors/index.js';
5-
import type { HTMLAttributes } from '../types';
5+
import type { HTMLAttributes } from '../types.js';
66
77
// The TypeScript diagnostic for JSX props uses the last member of the union to suggest props, so it would be better for
88
// LocalImageProps to be last. Unfortunately, when we do this the error messages that remote images get are complete nonsense

packages/astro/components/Picture.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type {
88
ImageOutputFormat,
99
UnresolvedImageTransform,
1010
} from '../dist/types/public/index.js';
11-
import type { HTMLAttributes } from '../types';
11+
import type { HTMLAttributes } from '../types.js';
1212
1313
export type Props = (LocalImageProps | RemoteImageProps) & {
1414
formats?: ImageOutputFormat[];

0 commit comments

Comments
 (0)