From f17f4e197343006a85ad7837cab0e02f459b8c3e Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 10 May 2022 14:21:35 -0600 Subject: [PATCH 1/3] rename dts to ts file --- packages/astro/src/core/build/{types.d.ts => types.ts} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename packages/astro/src/core/build/{types.d.ts => types.ts} (85%) diff --git a/packages/astro/src/core/build/types.d.ts b/packages/astro/src/core/build/types.ts similarity index 85% rename from packages/astro/src/core/build/types.d.ts rename to packages/astro/src/core/build/types.ts index 30ea53901589..bddf61742af0 100644 --- a/packages/astro/src/core/build/types.d.ts +++ b/packages/astro/src/core/build/types.ts @@ -7,9 +7,9 @@ import type { ComponentInstance, SSRLoadedRenderer, } from '../../@types/astro'; -import type { ViteConfigWithSSR } from '../../create-vite'; -import type { LogOptions } from '../../logger'; -import type { RouteCache } from '../../render/route-cache.js'; +import { LogOptions } from '../logger/core'; +import { RouteCache } from '../render/route-cache'; +import { ViteConfigWithSSR } from '../create-vite'; export type ComponentPath = string; export type ViteID = string; From d9fe8b630a5db2e585f08c208c95d7493078fed9 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 10 May 2022 14:31:47 -0600 Subject: [PATCH 2/3] Create new-carrots-cough.md --- .changeset/new-carrots-cough.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/new-carrots-cough.md diff --git a/.changeset/new-carrots-cough.md b/.changeset/new-carrots-cough.md new file mode 100644 index 000000000000..3855009e9c8c --- /dev/null +++ b/.changeset/new-carrots-cough.md @@ -0,0 +1,5 @@ +--- +"astro": patch +--- + +Fix an `import from '../core/build/types';` error From 415a86e9845689adb3359f98057279f0e2484ee8 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Tue, 10 May 2022 14:35:28 -0600 Subject: [PATCH 3/3] add back missing types --- packages/astro/src/core/build/types.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/core/build/types.ts b/packages/astro/src/core/build/types.ts index bddf61742af0..0d89c6c3052d 100644 --- a/packages/astro/src/core/build/types.ts +++ b/packages/astro/src/core/build/types.ts @@ -7,9 +7,9 @@ import type { ComponentInstance, SSRLoadedRenderer, } from '../../@types/astro'; -import { LogOptions } from '../logger/core'; -import { RouteCache } from '../render/route-cache'; -import { ViteConfigWithSSR } from '../create-vite'; +import type { LogOptions } from '../logger/core'; +import type { RouteCache } from '../render/route-cache'; +import type { ViteConfigWithSSR } from '../create-vite'; export type ComponentPath = string; export type ViteID = string;