From 7c5c4106d7b9d73103eb6e899f39125e630280ff Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Thu, 14 Jul 2022 14:33:10 -0400 Subject: [PATCH] Use a .ts file to export built-in components so they're typed (#3927) * Use a .ts file to export built-in components so they automatically have types * Add changeset --- .changeset/perfect-games-shop.md | 5 +++++ packages/astro/components/{index.js => index.ts} | 0 packages/astro/package.json | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/perfect-games-shop.md rename packages/astro/components/{index.js => index.ts} (100%) diff --git a/.changeset/perfect-games-shop.md b/.changeset/perfect-games-shop.md new file mode 100644 index 000000000000..432b094829b2 --- /dev/null +++ b/.changeset/perfect-games-shop.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Updated `astro/components` exports to a `.ts` file so it's automatically typed diff --git a/packages/astro/components/index.js b/packages/astro/components/index.ts similarity index 100% rename from packages/astro/components/index.js rename to packages/astro/components/index.ts diff --git a/packages/astro/package.json b/packages/astro/package.json index 12fbf678e7a4..ae4499184e0b 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -35,7 +35,7 @@ "./app": "./dist/core/app/index.js", "./app/node": "./dist/core/app/node.js", "./client/*": "./dist/runtime/client/*", - "./components": "./components/index.js", + "./components": "./components/index.ts", "./components/*": "./components/*", "./debug": "./components/Debug.astro", "./internal/*": "./dist/runtime/server/*",